private void btnCount_Click(object sender, System.EventArgs e) { // this.frmParent.UpdateLastDidSomethingAt(); this.frmStock = new frmCountByDocument(this); //UpdateLastDidSomethingAt(); try { // Cursor.Current = Cursors.WaitCursor; // Cursor.Show(); this.frmStock.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); frmStart.HandleException(ex, true); } this.frmStock = null; this.Refresh(); }
public frmStockCountMain(string sDoc, string sXML, string sPlantName, string psPlant, frmCountByDocument pfrmParent) { #region Start Logger logger mylog = new logger(); mylog.makelog("Starting Stock Count Main"); #endregion InitializeComponent(); this.sIBLNR = sDoc; this.frmParent = pfrmParent; this.txtEdit.Font = this.dgOverview.Font; this.txtSernrEdit.Font = this.dgSerial.Font; this.txtPlant.Text = sPlantName; this.sPlant = psPlant; this.cmdPost.BackColor = System.Drawing.Color.LightGreen; this.BuildGrid(); this.BuildVarianceGrid(); this.BuildSernrTab(); this.LoadData(sXML); this.RefreshSAPGateway(); }