Example #1
0
 public void AddPackage()
 {
     CurrentPackage = new Package();
     _isEditing     = false;
     AddPackageCommand.RaiseCanExecuteChanged();
     SavePackageCommand.RaiseCanExecuteChanged();
     DeletePackageCommand.RaiseCanExecuteChanged();
     CancelPackageCommand.RaiseCanExecuteChanged();
 }
Example #2
0
        public void SavePackage()
        {
            if (!_isEditing)
            {
                Packages.Add(CurrentPackage);
            }

            _isDirty = true;

            CurrentPackage = null;
            AddPackageCommand.RaiseCanExecuteChanged();
            SaveMachineCommand.RaiseCanExecuteChanged();
        }