Пример #1
0
 public imgForm1()
 {
     InitializeComponent();
     ShowInfo = new MsgInfoDelegate(MessageShowSub);
     if (!Directory.Exists("temp"))//如果不存在就创建 dir 文件夹
     {
         Directory.CreateDirectory("temp");
     }
 }
Пример #2
0
        public Login()
        {
            InitializeComponent();
            Init(uiStyleManager1);

            ShowInfo    = new MsgInfoDelegate(MessageShowSub);
            SetStatic   = new SetStaticDelegate(SetStaticSub);
            ShowProcess = new ProcessDelegate(ProcessBarRun);
        }
Пример #3
0
        //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;
        }