public static void ShowNewFormEveryTime( ) { frmSampleAddIn frm = new frmSampleAddIn(); frm.StartPosition = FormStartPosition.CenterScreen; frm.Show(); }
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(); } }