void PackageSourcesTreeViewRowActivated(object o, RowActivatedArgs args) { viewModel.IsEditingSelectedPackageSource = true; using (var dialog = new AddPackageSourceDialog(viewModel)) { dialog.ShowWithParent(); UpdateEnabledButtons(); } }
void AddButtonClicked(object sender, EventArgs e) { viewModel.IsEditingSelectedPackageSource = false; using (var dialog = new AddPackageSourceDialog(viewModel)) { if (dialog.ShowWithParent() == Xwt.Command.Ok) { UpdateSelectedPackageSource(); } UpdateEnabledButtons(); } }
void PackageSourcesTreeViewRowActivated (object o, RowActivatedArgs args) { viewModel.IsEditingSelectedPackageSource = true; using (var dialog = new AddPackageSourceDialog (viewModel)) { dialog.ShowWithParent (); UpdateEnabledButtons (); } }
void AddButtonClicked (object sender, EventArgs e) { viewModel.IsEditingSelectedPackageSource = false; using (var dialog = new AddPackageSourceDialog (viewModel)) { if (dialog.ShowWithParent () == Xwt.Command.Ok) { UpdateSelectedPackageSource (); } UpdateEnabledButtons (); } }