private void ToolInitialize()
 {
     try
     {
         _controlSettings = LoadSettings(this);
         ToolWindowPane toolWindow = GetToolWindow();
         IPackageContext packageContext = this;
         ControlViewModel viewModel = ToolWindow.GetViewModel(toolWindow);
         var buildContext = new BuildContext(packageContext, viewModel.FindProjectItem);
         var tool = new Tool.Tool(packageContext, buildContext, buildContext, viewModel);
     }
     catch (Exception ex)
     {
         ex.TraceUnknownException();
     }
 }
Ejemplo n.º 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();
     }
 }
Ejemplo n.º 3
0
        public void RunAction(Script S, int Index, Tool.Tool T, Tool.Tools Tools, List<Tool.Options.OptionListItem> Options)
        {
            if ((S == null) || Busy || (T == null))
            {
                FireonActionCompleted(Index, false, "No script or busy, or no tool", "");
                return;
            }
            if (S.Actions.Count <= Index)
            {
                FireonActionCompleted(Index, false, "Invalid index", "");
                return;
            }

            Thread Thr = new Thread(ActionThread);

            ActiveOptions = Options;
            ActiveTool = T;
            ActionIndex = Index;
            ActiveScript = S;
            Toolset = Tools;
            Busy = true;

            Thr.Start();
        }