Exemple #1
0
 private void RequestCloseTab(TabPage page, PluginCloseInfo info)
 {
     var plugin = page.GetPlugin();
     plugin.ClosingPlugin(info);
     if (info.Cancel)
     {
         return;
     }
     CloseTab(page);
 }
Exemple #2
0
        private void UpdateTabConnection(TabPage tab)
        {
            tab.GetPlugin().UpdateConnection(service, currentConnectionDetail);

            tab.Text = string.Format("{0} ({1})",
                ((Lazy<IXrmToolBoxPlugin, IPluginMetadata>)tab.Tag).Metadata.Name,
                currentConnectionDetail != null
                    ? currentConnectionDetail.ConnectionName
                    : "Not connected");
        }
Exemple #3
0
 private void RequestCloseTab(TabPage page, PluginCloseInfo info)
 {
     info.Silent = currentOptions.CloseEachPluginSilently;
     var plugin = page.GetPlugin();
     plugin.ClosingPlugin(info);
     if (info.Cancel)
     {
         return;
     }
     CloseTab(page);
 }