protected override void OnActivate(CancelEventArgs e)
        {
            ToolWindowPane   toolWindow = Package.GetToolWindow();
            ControlViewModel viewModel  = ToolWindow.GetViewModel(toolWindow);

            viewModel.SyncColumnSettings();

            base.OnActivate(e);
        }
예제 #2
0
 private void ToolInitialize()
 {
     try
     {
         ControlSettings = LoadSettings(this);
         var             toolWindow     = GetToolWindow();
         IPackageContext packageContext = this;
         var             viewModel      = ToolWindow.GetViewModel(toolWindow);
         var             buildContext   = new BuildContext(packageContext, viewModel);
         var             tool           = new Tool.Tool(packageContext, buildContext, buildContext, viewModel);
     }
     catch (Exception ex)
     {
         ex.TraceUnknownException();
     }
 }