コード例 #1
0
 void PackageSourcesTreeViewRowActivated(object o, RowActivatedArgs args)
 {
     viewModel.IsEditingSelectedPackageSource = true;
     using (var dialog = new AddPackageSourceDialog(viewModel)) {
         dialog.ShowWithParent();
         UpdateEnabledButtons();
     }
 }
コード例 #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();
     }
 }
コード例 #3
0
		void PackageSourcesTreeViewRowActivated (object o, RowActivatedArgs args)
		{
			viewModel.IsEditingSelectedPackageSource = true;
			using (var dialog = new AddPackageSourceDialog (viewModel)) {
				dialog.ShowWithParent ();
				UpdateEnabledButtons ();
			}
		}
コード例 #4
0
		void AddButtonClicked (object sender, EventArgs e)
		{
			viewModel.IsEditingSelectedPackageSource = false;
			using (var dialog = new AddPackageSourceDialog (viewModel)) {
				if (dialog.ShowWithParent () == Xwt.Command.Ok) {
					UpdateSelectedPackageSource ();
				}
				UpdateEnabledButtons ();
			}
		}