private void btn_saleslist_Click(object sender, EventArgs e) { //sl.Show(); if (su == null) { su = new sales_list(); su.FormClosed += delegate { su = null; }; su.RefreshDgv += new sales_list.DoEvent(setsu); su.Show(); } else { su.WindowState = FormWindowState.Normal; su.Focus(); } }
public void setsu() { su = null; }
private void SalesList_Click(object sender, EventArgs e) { sales_list slist = new sales_list(); slist.Show(); }