public imgForm1() { InitializeComponent(); ShowInfo = new MsgInfoDelegate(MessageShowSub); if (!Directory.Exists("temp"))//如果不存在就创建 dir 文件夹 { Directory.CreateDirectory("temp"); } }
public Login() { InitializeComponent(); Init(uiStyleManager1); ShowInfo = new MsgInfoDelegate(MessageShowSub); SetStatic = new SetStaticDelegate(SetStaticSub); ShowProcess = new ProcessDelegate(ProcessBarRun); }
//Sunisoft.IrisSkin.SkinEngine s; private void LoginInit() { ShowInfo = new MsgInfoDelegate(MessageShowSub); SetStatic = new SetStaticDelegate(SetStaticSub); Bitmap bmp = (Bitmap)Bitmap.FromFile(Application.StartupPath + "//ico//Book.png"); Icon ic = Icon.FromHandle(bmp.GetHicon()); Icon = ic; loadpc.Location = new System.Drawing.Point((Width - loadpc.Width) / 2, (Height - loadpc.Height) / 2); //loadpc.Location = new System.Drawing.Point(0, 0); //loadpc.Width = Width; //loadpc.Height = Height; loadpc.BringToFront(); //FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; loadpc.Visible = true; }