public static void Display(EventHandler handler, string charset = "", string path = "") { if (openedForm == null) { openedForm = new charsetEditForm(); } openedForm.init(handler, charset, path); }
private void okButton_Click(object sender, EventArgs e) { string charset = charsetTextBox.Text; string path = charsetPathTextBox.Text; openedForm = null; Close(); eventHandler(false, charset, path); }
private void charsetEditForm_FormClosed(object sender, FormClosedEventArgs e) { if (openedForm != null) { string charset = charsetTextBox.Text; string path = charsetPathTextBox.Text; openedForm = null; eventHandler(true, charset, path); } }