Пример #1
0
        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);
        }
Пример #2
0
 public override object CreateNew()
 {
     return(NewAddonForm.Run(m_adtype));
 }