private void GetSalesInfo_Click(object sender, EventArgs e) { if (dgPayments[0, 0].Value != null) { GlobalClass.ConsignerID = int.Parse(dgPayments[0, iRow].Value.ToString()); Payments myp = new Payments(); PreSelected = true; myp.MdiParent = this.MdiParent; myp.Show(); } }
private void enterPaymentsToolStripMenuItem_Click(object sender, EventArgs e) { GlobalClass.ConsignerID = 0; Payments DS = new Payments(); DS.MdiParent = this; DS.Show(); }