public static NamedAddonInstance Run(AddonType type) { var win = new NewAddonForm(type); if (win.ShowDialogEx() == DialogResult.OK) { return(new NamedAddonInstance(win.m_addon, win.tbxNewName.Text)); } return(null); }
public override object CreateNew() { return(NewAddonForm.Run(m_adtype)); }