Exemple #1
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;
 }
Exemple #2
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();
        }
Exemple #3
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);
            }
        }
Exemple #4
0
 private void Form3_Load(object sender, EventArgs e)
 {
     hWebservice         = new WebReference.Service();
     mModel              = MessageModel.instance();
     mModel.Isform3Alive = true;
 }