public Driver(DTE dte, BuildType buildType, BackgroundBuild2 backgroundBuild, DriverUI ui) { _dte = dte; _solution = _dte.Solution; BuildType = buildType; _backgroundBuild = backgroundBuild; _ui = ui; _context = SynchronizationContext.Current; }
public Driver(DTE dte, SolutionOptions options, BackgroundBuild2 backgroundBuild, DriverUI ui) { _dte = dte; _solution = _dte.Solution; _options = options; _backgroundBuild = backgroundBuild; _ui = ui; _context = SynchronizationContext.Current; }
void connectDriver(SolutionOptions options) { if (_driver_ != null) { return; } var backgroundBuild = new BackgroundBuild2(_dte, _outputPane); var ui = new DriverUI(_dte, _outputWindow, _outputPane); var driver = new Driver(_dte, options, backgroundBuild, ui); _documentEvents.DocumentSaved += driver.onDocumentSaved; _buildEvents.OnBuildBegin += driver.onBuildBegin; _buildEvents.OnBuildDone += driver.onBuildDone; _buildSolutionEvent.BeforeExecute += driver.onBeforeBuildSolutionCommand; _buildSolutionEvent.AfterExecute += driver.onAfterBuildSolutionCommand; _driver_ = driver; Log.D("driver connected"); }
void connectDriver(BuildType buildType) { if (_driver_ != null) return; var backgroundBuild = new BackgroundBuild2(_dte, _outputPane); var ui = new DriverUI(_dte, _outputWindow, _outputPane); var driver = new Driver(_dte, buildType, backgroundBuild, ui); _documentEvents.DocumentSaved += driver.onDocumentSaved; _buildEvents.OnBuildBegin += driver.onBuildBegin; _buildEvents.OnBuildDone += driver.onBuildDone; _buildSolutionEvent.BeforeExecute += driver.onBeforeBuildSolutionCommand; _buildSolutionEvent.AfterExecute += driver.onAfterBuildSolutionCommand; _driver_ = driver; Log.D("driver connected"); }