Ejemplo n.º 1
0
 private void bkWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     if ((((this.nCount_IF_BillCheck + this.nCount_IF_BillIn) + this.nCount_IF_BillOut) + this.nCount_IF_BillRemove) > 0)
     {
         if (this.frmPrompIODB == null)
         {
             this.frmPrompIODB = new frmPromptForIOMIDData();
             this.frmPrompIODB.ShowformClose         = new ShowFormClose(this.FormShowClose);
             this.frmPrompIODB.Location              = new Point((base.Left + base.Width) - this.frmPrompIODB.Width, (base.Top + base.Height) - this.frmPrompIODB.Height);
             this.frmPrompIODB.AppInformation        = this.ainfo;
             this.frmPrompIODB.UserInformation       = this.userInfo;
             this.frmPrompIODB.IsDoDBForeGround      = this.bIsUseMIDForeGround;
             this.frmPrompIODB.lbl_Count_Check.Text  = this.nCount_IF_BillCheck.ToString();
             this.frmPrompIODB.lbl_Count_In.Text     = this.nCount_IF_BillIn.ToString();
             this.frmPrompIODB.lbl_Count_Out.Text    = this.nCount_IF_BillOut.ToString();
             this.frmPrompIODB.lbl_Count_Remove.Text = this.nCount_IF_BillRemove.ToString();
             this.frmPrompIODB.TopMost = false;
             this.frmPrompIODB.TopMost = true;
             this.frmPrompIODB.Show();
         }
         else
         {
             this.frmPrompIODB.lbl_Count_Check.Text  = this.nCount_IF_BillCheck.ToString();
             this.frmPrompIODB.lbl_Count_In.Text     = this.nCount_IF_BillIn.ToString();
             this.frmPrompIODB.lbl_Count_Out.Text    = this.nCount_IF_BillOut.ToString();
             this.frmPrompIODB.lbl_Count_Remove.Text = this.nCount_IF_BillRemove.ToString();
             this.frmPrompIODB.Update();
             this.frmPrompIODB.TopMost = false;
             this.frmPrompIODB.TopMost = true;
         }
     }
     else
     {
         if (this.frmPrompIODB != null)
         {
             this.frmPrompIODB.Close();
         }
         this.frmPrompIODB = null;
     }
     if (!(this.bkWorker.CancellationPending || (this.frmPrompIODB == null)))
     {
         this.tmrMain.Enabled = true;
     }
 }
Ejemplo n.º 2
0
 private void FormShowClose(object sender)
 {
     this.frmPrompIODB.Dispose();
     this.frmPrompIODB    = null;
     this.tmrMain.Enabled = this.bIsUseIOMIDDB;
 }