Пример #1
0
        public static void ShowNewFormEveryTime( )
        {
            frmSampleAddIn frm = new frmSampleAddIn();

            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.Show();
        }
Пример #2
0
 public static void ShowForm( )
 {
     if (_mainForm == null)
     {
         _mainForm = new frmSampleAddIn();
         _mainForm.StartPosition = FormStartPosition.CenterScreen;
         //HostServicesSingleton.HostServices.ShowForm(_mainForm, AddInDockState.Float);
         _mainForm.Show();
         _mainForm.TopMost = true;
     }
     else
     {
         _mainForm.Activate();
     }
 }