private void button1_Click(object sender, EventArgs e) { SaveMask mask = new SaveMask(settings,-1); mask.FormClosing += mask_FormClosing; mask.ShowDialog(); }
private void maskList_DoubleClick(object sender, EventArgs e) { if (maskList.SelectedItem != null) { int selectedItem = maskList.SelectedIndex; SaveMask mask = new SaveMask(settings, selectedItem); mask.FormClosing += mask_FormClosing; mask.ShowDialog(); } }