public void notifyClosing(Form form) { if (form == resto) { resto = null; } }
private void pbRestore_Click(object sender, EventArgs e) { if (resto != null) { MessageBox.Show("Only one restore window can be open at a time."); return; } resto = new wfRestore(this); resto.Show(); }
public void notifyClosing(Form form) { if (form==resto) resto = null; }