Example #1
0
        private void 锁定ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.worker = null;
            this.toolStripStatusLabel1.Text = "当前用户:已注销";
            this.关闭所有窗口ToolStripMenuItem_Click(null, null);

            Form_start f = new Form_start();
            if (f.ShowDialog(this) != DialogResult.OK)
            {
                this.Close();
                return;
            }
            this.toolStripStatusLabel1.Text = "当前操作员:" + this.worker.xm;
            //this.本日时段ToolStripMenuItem_Click(null, null);
        }
Example #2
0
 private void Form_main_Shown(object sender, EventArgs e)
 {
     this.backgroundWorker1 = new BackgroundWorker();
     this.backgroundWorker1.DoWork += new DoWorkEventHandler(this.GetPrinter);
     this.backgroundWorker1.RunWorkerAsync(this);
     Form_start f = new Form_start();
     if (f.ShowDialog(this) != DialogResult.OK)
     {
         this.Close();
         return;
     }
     this.toolStripStatusLabel1.Text = "当前操作员:" + this.worker.xm;
 }