public override void Run() { #if STANDALONE if (!resourcesRegistered) { resourcesRegistered = true; ResourceService.RegisterStrings("ICSharpCode.AddInManager.StringResources", typeof(ShowCommand).Assembly); } #endif ManagerForm.ShowForm(); }
public static void ShowForm() { if (instance == null) { instance = new ManagerForm(); #if !STANDALONE instance.Owner = ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.MainForm; #endif instance.Show(); } else { instance.Activate(); } }
public static void ShowForm() { if (instance == null) { instance = new ManagerForm(); #if STANDALONE instance.Show(); #else instance.Show(ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.MainWin32Window); #endif } else { instance.Activate(); } }
protected override void OnClosed(EventArgs e) { base.OnClosed(e); instance = null; }
public ICSharpCode.SharpDevelop.Gui.IViewContent CreateContentForFile(string fileName) { ManagerForm.ShowForm(); ManagerForm.Instance.ShowInstallableAddIns(new string[] { fileName }); return(null); }