示例#1
0
 public override void Run()
 {
                 #if STANDALONE
     if (!resourcesRegistered)
     {
         resourcesRegistered = true;
         ResourceService.RegisterStrings("ICSharpCode.AddInManager.StringResources", typeof(ShowCommand).Assembly);
     }
                 #endif
     ManagerForm.ShowForm();
 }
示例#2
0
		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();
			}
		}
示例#3
0
		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();
			}
		}
示例#4
0
 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();
     }
 }
示例#5
0
 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;
 }
示例#7
0
 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);
 }