private async void _viewModel_DicOpAction(object sender, CommandArgs args) { switch (args.command) { case "Open": VisualStateManager.GoToState(this, "CompleteInfo", true); break; case "Close": VisualStateManager.GoToState(this, "BrifeInfo", true); if (!VocabularySemantic.IsZoomedInViewActive) { VocabularySemantic.ToggleActiveView(); } break; case "ReName": _viewModel.NewName = null; _viewModel.Tiptext = "请输入新的词库名称"; _lastCommand = "ReName"; await NewDialog.ShowAsync(); break; case "ReMove": _viewModel.Tiptext = "确认删除吗?"; _lastCommand = "ReMove"; await MessageDialog.ShowAsync(); break; } }
private async void _viewModel_CommandActions(object sender, CommandArgs args) { _viewModel.NewName = null; _viewModel.Tiptext = "请输入新建词库的名称"; _lastCommand = "NewDic"; var res = await NewDialog.ShowAsync(); }