This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.ComponentModel; | |
using System.Drawing; | |
using System.Drawing.Drawing2D; | |
using System.Windows.Forms; | |
namespace MyControlLibrary | |
{ | |
public class LoadingProgress : Control | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//来自群聊天,因无法贴图片,看comment内容 | |
//具体请参考abp中的MustHaveTenantId实现 | |
//abp代码中搜索SetFilterScopedParameterValue关键字 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Abp.Domain.Entities; | |
namespace YnTxOA.SqlExecuterInterface | |
{ | |
public interface ISqlExecuter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class EfRepositoryBulkExtensions | |
{ | |
public static void BulkInsert<TEntity, TPrimaryKey>(this IRepository<TEntity, TPrimaryKey> repository, IEnumerable<TEntity> entities) | |
where TEntity : class, IEntity<TPrimaryKey>, new() | |
{ | |
var dbContext = repository.GetDbContext(); | |
dbContext.BulkInsert(entities); | |
} | |
public static async Task BulkInsertAsync<TEntity, TPrimaryKey>(this IRepository<TEntity, TPrimaryKey> repository, IEnumerable<TEntity> entities) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void showMultiTiff(string tiffFileName){ | |
FileStream tifFS = new FileStream( tiffFileName , FileMode.Open , FileAccess.Read ) ; | |
Image gim = Image.FromStream( tifFS ) ; | |
FrameDimension gfd = new FrameDimension(gim.FrameDimensionsList[0]); | |
int pageCount = gim.GetFrameCount( gfd ) ;//全体のページ数を得る | |
System.Diagnostics.Debug.WriteLine(pageCount); | |
Graphics g = pictureBox1.CreateGraphics(); | |
for(int i=0;i<pageCount;i++){ | |
gim.SelectActiveFrame(gfd, i); | |
g.DrawImage(gim, 0,0, pictureBox1.Width, pictureBox1.Height);//PictureBoxに表示してます |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.IO.Compression; | |
using System.Net; | |
using System.Net.Security; | |
using System.Security.Cryptography.X509Certificates; | |
using System.Text; | |
using System.Web; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LicenseInfo | |
{ | |
public LicenseInfo() | |
{ | |
KeySn = ""; | |
Date = DateTime.MinValue; | |
RegLimitDays = 0; | |
UseLimitDays = 0; | |
Offset = 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
查看此文:https://www.cnblogs.com/yongzhi/articles/1187149.html | |
同时看评论的图片帮助理解。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use [table_name] | |
go | |
CREATE TABLE #tablespaceinfo | |
( | |
nameinfo VARCHAR(500) , | |
rowsinfo BIGINT , | |
reserved VARCHAR(20) , | |
datainfo VARCHAR(20) , | |
index_size VARCHAR(20) , | |
unused VARCHAR(20) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class WaitForm : DevExpress.XtraWaitForm.WaitForm | |
{ | |
private static WaitForm waitForm; | |
/// <summary> | |
/// 标识等待窗口是否关闭 | |
/// </summary> | |
private static bool isClose = false; |