当前位置: 首页>>代码示例>>C#>>正文


C# ext_DisconnectMode类代码示例

本文整理汇总了C#中ext_DisconnectMode的典型用法代码示例。如果您正苦于以下问题:C# ext_DisconnectMode类的具体用法?C# ext_DisconnectMode怎么用?C# ext_DisconnectMode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ext_DisconnectMode类属于命名空间,在下文中一共展示了ext_DisconnectMode类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnDisconnection

 /// <summary>Implements the OnDisconnection method of the IDTExtensibility2 interface. Receives notification that the Add-in is being unloaded.</summary>
 /// <param term='disconnectMode'>Describes how the Add-in is being unloaded.</param>
 /// <param term='custom'>Array of parameters that are host application specific.</param>
 /// <seealso class='IDTExtensibility2' />
 public void OnDisconnection(ext_DisconnectMode disconnectMode, ref Array custom)
 {
     if (events != null)
     {
         events.BeforeExecute -= OnPaste;
     }
 }
开发者ID:trasa,项目名称:presentations,代码行数:11,代码来源:Connect.cs

示例2: OnDisconnection

 /// <summary>Implements the OnDisconnection method of the IDTExtensibility2 interface. Receives notification that the Add-in is being unloaded.</summary>
 /// <param term='disconnectMode'>Describes how the Add-in is being unloaded.</param>
 /// <param term='custom'>Array of parameters that are host application specific.</param>
 /// <seealso class='IDTExtensibility2' />
 public void OnDisconnection(ext_DisconnectMode disconnectMode, ref Array custom) {
     //Definition of handlers for solution events
     if (disconnectMode != ext_DisconnectMode.ext_dm_UISetupComplete &&
         disconnectMode != ext_DisconnectMode.ext_dm_HostShutdown) {
         addinEventSink.OnDisconnect();
     }
 }
开发者ID:Dashboard-X,项目名称:JIRA_Connector_1.0.0_Beta_1,代码行数:11,代码来源:Connect.cs

示例3: OnDisconnection

 /// <summary>
 /// アドインがOneNoteから切断された際に呼ばれます
 /// </summary>
 /// <param name="RemoveMode"></param>
 /// <param name="custom"></param>
 /// <remarks>アドインの終了処理を行います</remarks>
 public void OnDisconnection(ext_DisconnectMode RemoveMode, ref Array custom)
 {
     cli.Dispose();
     this.cli = null;
     GC.Collect();
     GC.WaitForPendingFinalizers();
 }
开发者ID:fantasticswallow,项目名称:tanets-blue,代码行数:13,代码来源:Connect.cs

示例4: OnDisconnection

        public void OnDisconnection(ext_DisconnectMode disconnectMode, ref Array custom)
        {
            //if (disconnectMode == ext_DisconnectMode.ext_dm_HostShutdown
            //    || disconnectMode == ext_DisconnectMode.ext_dm_UserClosed)
            //{
            //    _gitPlugin.DeleteCommands();
            //    _gitPlugin.DeleteCommandBar(GitToolBarName);
            //    //Place the command on the tools menu.
            //    //Find the MenuBar command bar, which is the top-level command bar holding all the main menu items:
            //    var menuBarCommandBar = ((CommandBars)_applicationObject.CommandBars)["MenuBar"];

            //    CommandBarControl toolsControl;
            //    try
            //    {
            //        toolsControl = menuBarCommandBar.Controls["Git"];
            //        if (toolsControl != null)
            //        {
            //            toolsControl.Delete();
            //        }
            //    }
            //    catch
            //    {
            //    }
            //}
        }
开发者ID:robin521111,项目名称:gitextensions,代码行数:25,代码来源:Connect.cs

示例5: OnDisconnection

        public void OnDisconnection(ext_DisconnectMode RemoveMode, ref Array custom)
        {
 		// If this is not because of host shutdown(removed by user for example) we call OnBeginShutdown at hand
    		if (RemoveMode != ext_DisconnectMode.ext_dm_HostShutdown)
        		OnBeginShutdown(ref custom);

$ApplicationDestroy$
        }
开发者ID:vnkolt,项目名称:NetOffice,代码行数:8,代码来源:Addin.cs

示例6: OnDisconnection

			public void OnDisconnection(ext_DisconnectMode disconnectMode, ref Array custom)
			{
				if(null == m_plugin)
					return;

				Log.Debug("Disconnect called...");
				((Options)m_plugin.Options).Save();
				Log.ClearHandlers();
			}
开发者ID:transformersprimeabcxyz,项目名称:_To-Do-unreal-3D-niftyplugins-ben-marsh,代码行数:9,代码来源:Connect.cs

示例7: OnDisconnection

        /// <summary>Implements the OnDisconnection method of the IDTExtensibility2 interface. Receives notification that the Add-in is being unloaded.</summary>
        /// <param term='disconnectMode'>Describes how the Add-in is being unloaded.</param>
        /// <param term='custom'>Array of parameters that are host application specific.</param>
        /// <seealso class='IDTExtensibility2' />
        public void OnDisconnection(ext_DisconnectMode disconnectMode, ref Array custom)
        {
            System.Diagnostics.Trace.WriteLine(string.Format("Event: OnDisconnection, disconnectMode: {0}", disconnectMode));
            CommandBar mdiDocCommandBar =
                        ((CommandBars)_applicationObject.CommandBars)["Easy MDI Document Window"];

            //mdiDocCommandBar.Controls["Close All Documents"].Delete();
            mdiDocCommandBar.Controls["Display All Commands"].Delete();
        }
开发者ID:mintberry,项目名称:stackrecaller,代码行数:13,代码来源:Connect.cs

示例8: OnDisconnection

        public void OnDisconnection(ext_DisconnectMode disconnectMode, ref Array custom)
        {
            if (_listener == null)
                return;

            _listener.BeforeSave -= DocumentListener_BeforeSave;
            _listener.Dispose();
            _listener = null;
        }
开发者ID:mkoscielniak,项目名称:VSAutoFormatter,代码行数:9,代码来源:Addin.cs

示例9: OnDisconnection

        /// <summary>Implements the OnDisconnection method of the IDTExtensibility2 interface. Receives notification that the Add-in is being unloaded.</summary>
        /// <param term='disconnectMode'>Describes how the Add-in is being unloaded.</param>
        /// <param term='custom'>Array of parameters that are host application specific.</param>
        /// <seealso class='IDTExtensibility2' />
        public void OnDisconnection(ext_DisconnectMode disconnectMode, ref Array custom)
        {
            switch (disconnectMode)
            {
                case ext_DisconnectMode.ext_dm_HostShutdown:
                case ext_DisconnectMode.ext_dm_UserClosed:

                    SwitchAddin.Instance.DestroyUserInterface();

                    break;
            }
        }
开发者ID:JackWangCUMT,项目名称:switch,代码行数:16,代码来源:Connect.cs

示例10: OnDisconnection

 public void OnDisconnection(ext_DisconnectMode RemoveMode, ref Array custom)
 {
     try
     {
         if (null != _application)
             _application.Dispose();
     }
     catch (Exception exception)
     {
         OfficeRegistry.LogErrorMessage(_hostApplicationName, _progId, "Error occured in OnDisconnection. ", exception);
     }
 }
开发者ID:swatt6400,项目名称:NetOffice,代码行数:12,代码来源:Addin.cs

示例11: catch

 void IDTExtensibility2.OnDisconnection(ext_DisconnectMode RemoveMode, ref Array custom)
 {
     try
     {
         if (null != _excelApplication)
             _excelApplication.Dispose();
     }
     catch (Exception exception)
     {
         string message = string.Format("An error occured.{0}{0}{1}", Environment.NewLine, exception.Message);
         MessageBox.Show(message, _progId, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
开发者ID:swatt6400,项目名称:NetOffice,代码行数:13,代码来源:Addin.cs

示例12: OnDisconnection

		public void OnDisconnection(ext_DisconnectMode disconnectMode, ref Array custom)
		{
			if (disconnectMode == ext_DisconnectMode.ext_dm_UserClosed)
			{
				try
				{
					LogHelper.LogDebug("Performing cleanup");
					this.Cleanup();
				}
				catch (Exception ex)
				{
					MessageBox.Show(ex.Message, "CodeKeep");
				}
			}
		}
开发者ID:bcokur,项目名称:mydotnetsamples,代码行数:15,代码来源:Connect.cs

示例13: OnDisconnection

        public void OnDisconnection(ext_DisconnectMode removeMode, ref Array custom)
        {
            try
            {
                _appDomain.DomainUnload -= HandleAppDomainChange;
                _appDomainManager.Dispose();
            }
            catch
            {
            }
            Notify("Unloaded. Goodbye.");

            _appDomainManager = null;
            _dte = null;
            _appDomain = null;
        }
开发者ID:modulexcite,项目名称:openwrap,代码行数:16,代码来源:OpenWrapVisualStudioAddIn.cs

示例14: RemoveGui

 void IDTExtensibility2.OnDisconnection(ext_DisconnectMode RemoveMode, ref Array custom)
 {
     try
     {
         if (null != _wordApplication)
         {
             // word ignores the temporary parameter in created menus(not toolbars) and save menu settings to normal.dot 
             RemoveGui();
             _wordApplication.Dispose();
         }
     }
     catch (Exception exception)
     {
         string message = string.Format("An error occured.{0}{0}{1}", Environment.NewLine, exception.Message);
         MessageBox.Show(message, _prodId, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
开发者ID:vnkolt,项目名称:NetOffice,代码行数:17,代码来源:Addin.cs

示例15: OnDisconnection

        /// <summary>
        /// Implements the OnDisconnection method of the IDTExtensibility2 interface. Receives notification that the Add-in is being unloaded.
        /// </summary>
        /// <param name="disconnectMode">Describes how the Add-in is being unloaded.</param>
        /// <param name="custom">Array of parameters that are host application specific.</param>
        /// <seealso cref="IDTExtensibility2"/>
        public void OnDisconnection(ext_DisconnectMode disconnectMode, ref Array custom)
        {
            EngineManager.Dispose();

            if (disconnectMode == ext_DisconnectMode.ext_dm_UserClosed) {
                // Delete the Commands
                CommandHelper.RemoveCommand(this.App, COMMANDNAMESPACE + "." + POPUP_MENU_NAME_MINIFIER);
                CommandHelper.RemoveCommand(this.App, COMMANDNAMESPACE + "." + POPUP_MENU_NAME_JSHINT);
                CommandHelper.RemoveCommand(this.App, COMMANDNAMESPACE + "." + POPUP_MENU_NAME_CSSLINT);

                // Remove the controls from the CommandBars
                CommandHelper.RemoveCommandControl(this.App, "Item", POPUP_MENU_NAME_MINIFIER);
                CommandHelper.RemoveCommandControl(this.App, "Item", POPUP_MENU_NAME_JSHINT);
                CommandHelper.RemoveCommandControl(this.App, "Item", POPUP_MENU_NAME_CSSLINT);
            }
        }
开发者ID:cbilson,项目名称:chirpy,代码行数:22,代码来源:Chirp.cs


注:本文中的ext_DisconnectMode类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。