private void CmdDispatcher(string command)
 {
     switch (command)
     {
         case "Create":
             LearningItem newitem = new LearningItem();
             NavigationService.NavigateForward(Form.EditLearningItem,new EditLearningItem_parameters() { LearningItem = newitem,IsItNewItem = true });
             break;
         case "Backup":
             NavigationService.NavigateForward(Form.Backup, new Backup_parameters() {mode = Backup_parameters.Mode.AppSetting,appsetting = ViewModelLocator.Instance.AppSetting });
             break;
         case "CreateInitialDatapack":
             SQL_XML_IOOperations io = new SQL_XML_IOOperations();
             io.CreateInitialDatapack();
             break;
         default:
             throw new NotImplementedException();
     }
 }
 private async void Delete(LearningItem LearingItem_)
 {
     bool res = await DialogService.Ask(Tx.T("MainWindow.Messages.ReallyDelete"));
     if (res)
     {
         SQL_XML_IOOperations io = new SQL_XML_IOOperations();
         io.DeleteLearningItem(LearingItem_);
     }
 }