Beispiel #1
0
 void PackageSourcesTreeViewRowActivated(object o, RowActivatedArgs args)
 {
     viewModel.IsEditingSelectedPackageSource = true;
     using (var dialog = new AddPackageSourceDialog(viewModel)) {
         dialog.ShowWithParent();
         UpdateEnabledButtons();
     }
 }
Beispiel #2
0
 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 ();
			}
		}