Beispiel #1
0
        public void Edit()
        {
            if (SelectGroup == null || SelectGroup.Key == Keys.None)
            {
                return;
            }

            if (SelectGroup.Commands == null)
            {
                SelectGroup.Commands = new ObservableCollection <JYCommand>();
            }
            EditView ev = new EditView(SelectGroup);

            ev.ShowDialog();
            SelectGroup.GetMyDescribe();
        }
Beispiel #2
0
 public EditViewModel(EditView vm, ObservableCollection <JYCommand> cmdList, Keys key)
 {
     View                = vm;
     ThisKey             = key;
     AddJYCommand        = new DelegateCommand(AddJYC);
     RemoveJYCommand     = new DelegateCommand(RemoveJYC);
     AddMapKeyCommand    = new DelegateCommand(AddMapKey);
     RemoveMapKeyCommand = new DelegateCommand(RemoveMapKey);
     OKCommand           = new DelegateCommand(OK);
     ReverseCommand      = new DelegateCommand(Reverse);
     UpMapKeyCommand     = new DelegateCommand(UpMapKey);
     DownMapKeyCommand   = new DelegateCommand(DownMapKey);
     IsChoosePKTextBox   = true;
     JYComandList        = cmdList;
     if (JYComandList.Count != 0)
     {
         SelectJYComand = JYComandList[0];
     }
 }