private void stepViewer_BeforeViewNode(object sender, ViewNodeEventArgs e) { btnBack.Visibility = e.CanGoBack ? Visibility.Visible : Visibility.Hidden; if (e.NextNode is SimpleStepNode && e.NextNode.Next == null) { if (_stepSelectDevice.SelectedDevice != null) { _stepSelectDevice.SelectedDevice.Close(); } btnOK.Content = "Close"; btnBack.Content = "Restart"; //if (_stepSelectMode.SelectedBranch == selectMode.EditingMode.EditSaveComputer) //{ // string argument = @"/select, " + _packagePath; // Process.Start("explorer.exe", argument); //} } }
private void HandleActiveNodeChanged(object sender, ViewNodeEventArgs e) { _activeNodeChanges++; }