Пример #1
0
        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);
                //}
            }
        }
Пример #2
0
 private void HandleActiveNodeChanged(object sender, ViewNodeEventArgs e)
 {
     _activeNodeChanges++;
 }