Exemplo n.º 1
0
 private void OnFinderPropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     FileLogger.Assert(sender == _finder);
     if (e.PropertyName == "HasWindow")
     {
         this.SetCanExecute(_finder.HasWindow);
     }
 }
Exemplo n.º 2
0
 private void OnFinderPropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     FileLogger.Assert(sender == this.MainWindow.Finder);
     switch (e.PropertyName)
     {
     case "HitCount":
         this.Update();
         break;
     }
 }
Exemplo n.º 3
0
 private void Update()
 {
     FileLogger.Assert(this.MainWindow.RootObject == _rootObject);
     this.SetCanExecute(!this.MainWindow.Tree.IsWaiting && this.MainWindow.RootObject != null && _rootObject.HasLevel(_depth));
 }
Exemplo n.º 4
0
 public override void Execute(object parameter)
 {
     FileLogger.Assert(this.MainWindow.RootObject != null);
     Clipboard.SetDataObject(this.MainWindow.RootObject?.PrettyValueString);
 }
Exemplo n.º 5
0
 public override void Execute(object parameter)
 {
     FileLogger.Assert(this.MainWindow.RootObject != null);
     this.MainWindow.Raw_TextBox.Text = this.MainWindow.RootObject?.PrettyValueString;
 }