// ----- активация ------- public void Activate() { if (frm == null) { frm = new DevicesForm(); frm.FormClosing += new System.Windows.Forms.FormClosingEventHandler(frm_FormClosing); } frm.Activate(); frm.Show(); }
// ----- инициализация ------ public void Initialize(IApplication application) { frm = new DevicesForm(); frm.FormClosing += new System.Windows.Forms.FormClosingEventHandler(frm_FormClosing); }