//重命名 private async void Click_Rename(object sender, RoutedEventArgs e) { if (CategoryManage.CurrentFile != null) { RenameControl a = new RenameControl(); await DialogHost.Show(a); } }
// public async void rename_click() { if (CategoryManage.CurrentFile != null) { RenameControl a = new RenameControl(); await DialogHost.Show(a); this.DialogResult = true; CategoryManage.Update(); } }