//Call Purchasing Receipt via login private void cmdPMGR_Click(object sender, System.EventArgs e) { logger mylog = new logger(); mylog.makelog("Calling PMGR"); frmPMGM = new frmPMGM(); frmPMGM.SetParent(this); frmPMGM.SetToReturn(); UpdateLastDidSomethingAt(); try { Cursor.Current = Cursors.WaitCursor; Cursor.Show(); frmPMGM.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); HandleException(ex, true); } frmPMGM = null; this.Refresh(); }
private void btnIssue_Click(object sender, System.EventArgs e) { this.frmParent.UpdateLastDidSomethingAt(); this.frmStoreIssue = new frmPMGM(); this.frmStoreIssue.SetParent(this.frmParent); this.frmStoreIssue.SetToStores(); //UpdateLastDidSomethingAt(); try { Cursor.Current = Cursors.WaitCursor; Cursor.Show(); this.frmStoreIssue.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); frmStart.HandleException(ex, true); } this.frmStoreIssue = null; this.Refresh(); }