Пример #1
0
 private void AddChildFile(File f)
 {
     f.RemoveCommand.Attach(param => this.OnRemoveFile(param), param => this.CanDoRemoveFile(param));
     Children.Add(f);
 }
Пример #2
0
        private void OnRemoveFile(File f)
        {
            if (JadeControls.GuiUtils.ConfirmYNAction("Do you want remove File " + f.DisplayName + "?") == false)
                return;

            if (Children.Contains(f) && _data.RemoveItem(f.DisplayName))
            {
                Children.Remove(f);
                _workspace.Modified = true;
                OnPropertyChanged("Children");
                return;
            }
        }
Пример #3
0
 private bool CanDoRemoveFile(File f)
 { 
     return true; 
 }
Пример #4
0
 private void AddChildFile(File f)
 {
     Children.Add(f);
 }