public override bool ShutDown(PluginShutDownReason reason) { // Do anything your plugin needs to do to shut down // or don't shut down and return false this.RemoveAllMenuItems(); return true; }
public override bool ShutDown(PluginShutDownReason reason) { // Do anything your plugin needs to do to shut down // or don't shut down and return false return true; }
public bool ShutDown(PluginShutDownReason shutDownReason) { ToolStripMenuItem itemToAddTo = GetItem("Content"); itemToAddTo.DropDownItems.Remove(mMenuItem); return true; }
public bool ShutDown(PluginShutDownReason shutDownReason) { if (_menuStrip != null) { _menuStrip.Items.Remove(_menuItem); } return true; }
public bool ShutDown(PluginShutDownReason shutDownReason) { mTortoiseSvnManager = null; ToolStripMenuItem itemToRemoveFrom = mMenuStrip.GetItem("Plugins"); itemToRemoveFrom.DropDownItems.Remove(mUpdateItem); itemToRemoveFrom.DropDownItems.Remove(mCommitItem); itemToRemoveFrom.DropDownItems.Remove(mSplitter); return true;// We are okay to shut down }
public override bool ShutDown(PluginShutDownReason reason) { if (mTab != null) { mContainer.Controls.Remove(mTab); } mContainer = null; mTab = null; mControl = null; return true; }
public bool ShutDown(PluginShutDownReason shutDownReason) { ToolStripMenuItem itemToAddTo = ToolStripHelper.Self.GetItem(mMenuStrip, PluginsMenuItem); itemToAddTo.DropDownItems.Remove(mMenuItem); if (!mForm.Disposing && !mForm.IsDisposed) mForm.Hide(); return true; }
public bool ShutDown(PluginShutDownReason shutDownReason) { ToolStripMenuItem itemToAddTo = GetItem(PluginsMenuItem); itemToAddTo.DropDownItems.Remove(_menuItem); if(!_form.Disposing && !_form.IsDisposed) _form.Hide(); return true; }
public bool ShutDown(PluginShutDownReason shutDownReason) { if (mTab != null) { mTabControl.Controls.Remove(mTab); } mTabControl = null; mTab = null; mControl = null; return true; }
public override bool ShutDown(PluginShutDownReason shutDownReason) { mIsEnabled = false; foreach (var generator in mGeneratorList) { if (CodeWriter.CodeGenerators.Contains(generator)) { CodeWriter.CodeGenerators.Remove(generator); } } return true; }
internal static bool ShutDownPlugin(IPlugin pluginToShutDown, PluginShutDownReason shutDownReason) { bool doesPluginWantToShutDown = true; PluginContainer container; if (mGlobalInstance.mPluginContainers.ContainsKey(pluginToShutDown)) { container = mGlobalInstance.mPluginContainers[pluginToShutDown]; } else { container = mProjectInstance.mPluginContainers[pluginToShutDown]; } try { doesPluginWantToShutDown = container.Plugin.ShutDown(shutDownReason); } catch (Exception) { doesPluginWantToShutDown = true; } if (doesPluginWantToShutDown) { container.IsEnabled = false; } if (shutDownReason == PluginShutDownReason.UserDisabled) { if (!mPluginSettingsSave.DisabledPlugins.Contains(pluginToShutDown.UniqueId)) { mPluginSettingsSave.DisabledPlugins.Add(pluginToShutDown.UniqueId); mPluginSettingsSave.Save(PluginSettingsSaveFileName); } } return(doesPluginWantToShutDown); }
public override bool ShutDown(PluginShutDownReason shutDownReason) { // remove it //ReferencedFileRuntimeList.FileManagers.Add(new object); return(true); }
public bool ShutDown(PluginShutDownReason shutDownReason) { ToolStripMenuItem itemToAddTo = GetItem("Project"); itemToAddTo.DropDownItems.Remove(mUseContentPipeline); itemToAddTo.DropDownItems.Remove(mUseFromFile); return true; }
public bool ShutDown(PluginShutDownReason shutDownReason) { mIsEnabled = false; return(true); }
public abstract bool ShutDown(PluginShutDownReason shutDownReason);
public override bool ShutDown(PluginShutDownReason shutDownReason) { var toReturn = true; return(toReturn); }
public override bool ShutDown(PluginShutDownReason shutDownReason) { AtiManager.Self.RemoveAllAtis(); return true; }
public override bool ShutDown(PluginShutDownReason shutDownReason) { AtiManager.Self.RemoveAllAtis(); return(true); }
public override bool ShutDown(PluginShutDownReason shutDownReason) { CodeWriter.CodeGenerators.Remove(generator); return(true); }
public override bool ShutDown(PluginShutDownReason reason) { // Do anything your plugin needs to do to shut down // or don't shut down and return false if (mTab != null) { mContainer.Controls.Remove(mTab); } mContainer = null; mTab = null; mAchxControl = null; mTextureCoordinateControl = null; return true; }
public bool ShutDown(PluginShutDownReason reason) { return(true); }
public override bool ShutDown(PluginShutDownReason shutDownReason) { // todo - hide the window return(true); }
public override bool ShutDown(PluginShutDownReason reason) { base.RemoveTab(); return true; }
public bool ShutDown(PluginShutDownReason reason) { return true; }
public override bool ShutDown(PluginShutDownReason shutDownReason) { base.UnregisterAllCodeGenerators(); return(true); }
public override bool ShutDown(PluginShutDownReason shutDownReason) { return false; }
public override bool ShutDown(PluginShutDownReason shutDownReason) { RemoveAllMenuItems(); return(true); }
public static bool ShutDownPlugin(IPlugin pluginToShutDown, PluginShutDownReason shutDownReason) { bool doesPluginWantToShutDown = true; PluginContainer container; if (mGlobalInstance.mPluginContainers.ContainsKey(pluginToShutDown)) { container = mGlobalInstance.mPluginContainers[pluginToShutDown]; } else { container = mProjectInstance.mPluginContainers[pluginToShutDown]; } try { doesPluginWantToShutDown = container.Plugin.ShutDown(shutDownReason); } catch (Exception exception) { doesPluginWantToShutDown = true; } if (doesPluginWantToShutDown) { container.IsEnabled = false; foreach (Control control in container.Controls) { // If the plugin hasn't removed the containers then we // need to do the removal here - we don't want old UI floating // around. control.Parent.Controls.Remove(control); } } return doesPluginWantToShutDown; }
internal static bool ShutDownPlugin(IPlugin pluginToShutDown, PluginShutDownReason shutDownReason) { bool doesPluginWantToShutDown = true; PluginContainer container; if (mGlobalInstance.mPluginContainers.ContainsKey(pluginToShutDown)) { container = mGlobalInstance.mPluginContainers[pluginToShutDown]; } else { container = mProjectInstance.mPluginContainers[pluginToShutDown]; } try { doesPluginWantToShutDown = container.Plugin.ShutDown(shutDownReason); } catch (Exception) { doesPluginWantToShutDown = true; } if (doesPluginWantToShutDown) { container.IsEnabled = false; } if (shutDownReason == PluginShutDownReason.UserDisabled) { if (!mPluginSettingsSave.DisabledPlugins.Contains(pluginToShutDown.UniqueId)) { mPluginSettingsSave.DisabledPlugins.Add(pluginToShutDown.UniqueId); mPluginSettingsSave.Save(PluginSettingsSaveFileName); } } return doesPluginWantToShutDown; }
public override bool ShutDown(PluginShutDownReason shutDownReason) { HideCategoryUi(); return(true); }
public override bool ShutDown(PluginShutDownReason reason) { // Do anything your plugin needs to do to shut down // or don't shut down and return false return(true); }
public override bool ShutDown(PluginShutDownReason shutDownReason) { return(true); }
public bool ShutDown(PluginShutDownReason shutDownReason) { mIsEnabled = false; return true; }