private void checkOutfield_Click(object sender, EventArgs e) { POSui peepee = new POSui(); peepee.Show(); this.Hide(); peepee.FormClosing += (obj, args) => { this.Show(); }; }
private void holdCust_Click_1(object sender, EventArgs e) { if (data.check == 0) { int i = 1; POSui hold = new POSui(i); data.check = 1; hold.Show(); this.Hide(); hold.FormClosing += (obj, args) => { data.check = 0; this.Show(); }; } }