Ejemplo n.º 1
0
        public FrmMain()
        {
            InitializeComponent();
            PowersInite();
            ShowTimer.Start();//开始预设显示
            string skinPath = Application.StartupPath + @"\Skins";

            lstContent.DataSource    = new DirectoryInfo(skinPath).GetFiles();
            lstContent.DisplayMember = "Name";
            lblEmpInfo.Text          = "登录信息: " + CurrentInfo.currentEmp.EmployeeName;
        }
Ejemplo n.º 2
0
 private void chart1_MouseMove(object sender, MouseEventArgs e)
 {
     chart1.ChartAreas[0].CursorX.SetCursorPixelPosition(new PointF(e.X, e.Y), true);
     chart1.ChartAreas[0].CursorY.SetCursorPixelPosition(new PointF(e.X, e.Y), true);
     //Application.DoEvents(); 使用此方法当有线程操作时会引发异常
     if (checkBox1.Checked == false)
     {
         if ((LeftHide || RightHide) && isfinish)
         {
             isfinish = false;
             ShowTimer.Start();
         }
     }
 }