Esempio n. 1
0
 private void UserControl2_Load(object sender, EventArgs e)
 {
     label3.Text = "";
     label4.Text = "";
     form6.fun();
     mModel = MessageModel.instance();
 }
Esempio n. 2
0
 Thread CheckCon;                        //检查网络的线程
 //ShowEventHandle showEvent = null;
 #endregion
 /// <summary>
 /// 窗体加载方法
 /// </summary>
 /// <param name="sender">本窗体</param>
 /// <param name="e"></param>
 private void Form1_Load(object sender, EventArgs e)
 {
     this.SetBounds((Screen.GetBounds(this).Width / 2) - (this.Width / 2),
                    (Screen.GetBounds(this).Height / 2) - (this.Height / 2),
                    this.Width, this.Height, BoundsSpecified.Location); // 窗体剧中
     Win32.AnimateWindow(this.Handle, 2000, Win32.AW_BLEND);            //窗体渐变
     form2             = new Window2cs();
     mModel            = MessageModel.instance();
     huaTongWebService = new WebReference.Service();
     timer1.Enabled    = true;
 }
Esempio n. 3
0
        private void Form2_Load(object sender, EventArgs e)
        {
            fun1();
            this.SetBounds((Screen.GetBounds(this).Width / 2) - (this.Width / 2),
                           (Screen.GetBounds(this).Height / 2) - (this.Height / 2),
                           this.Width, this.Height, BoundsSpecified.Location);
            Win32.AnimateWindow(this.Handle, 2000, Win32.AW_BLEND);

            mModel     = MessageModel.instance();
            webService = new WebReference.Service();

            //Thread t = new Thread(new ThreadStart(initForm2));
            //t.Start();
        }
Esempio n. 4
0
        private void Window2cs_Load(object sender, EventArgs e)
        {
            hWebService         = new WebReference.Service();
            mModel              = MessageModel.instance();
            mModel.TimerFlag1   = false;
            mModel.TimerFlag2   = false;
            mModel.TimerFlag3   = false;
            mModel.Isform3Alive = false;
            label5.Text         = "0";
            label4.Text         = "0";
            label7.Text         = "0";
            mModel.IsSave       = false;

            string pathtime = DateTime.Now.ToString("yyyy-MM-dd");

            ConnectToSerip();
            if (!Directory.Exists("D:\\Products\\" + pathtime))
            {
                Directory.CreateDirectory("D:\\Products\\" + pathtime);
            }
        }
Esempio n. 5
0
 private void Form3_Load(object sender, EventArgs e)
 {
     hWebservice         = new WebReference.Service();
     mModel              = MessageModel.instance();
     mModel.Isform3Alive = true;
 }
Esempio n. 6
0
 private void UserControl1_Load(object sender, EventArgs e)
 {
     mModel = MessageModel.instance();
 }