void HandleButtonEditClicked(object sender, EventArgs e)
        {
            var editDialog = new CSharpFormattingProfileDialog(policy);

            MessageService.ShowCustomDialog(editDialog);
            editDialog.Destroy();
        }
			public ComboboxEditedHandler (CSharpFormattingProfileDialog dialog, Gtk.TreeStore model)
			{
				this.dialog = dialog;
				this.model = model;
			}
			public CellRendererToggledHandler (CSharpFormattingProfileDialog dialog, Gtk.TreeView treeView, Gtk.TreeStore model)
			{
				this.dialog = dialog;
				this.model = model;
				this.treeView = treeView;
			}
 public ComboboxEditedHandler(CSharpFormattingProfileDialog dialog, TreeStore model)
 {
     this.dialog = dialog;
     this.model  = model;
 }
 public CellRendererToggledHandler(CSharpFormattingProfileDialog dialog, TreeView treeView, TreeStore model)
 {
     this.dialog   = dialog;
     this.model    = model;
     this.treeView = treeView;
 }
		void HandleButtonEditClicked (object sender, EventArgs e)
		{
			var editDialog = new CSharpFormattingProfileDialog (policy);
			MessageService.ShowCustomDialog (editDialog);
			editDialog.Destroy ();
		}
		void HandleButtonEditClicked (object sender, EventArgs e)
		{
			if (comboboxProfiles.Active < 0)
				return;
			var p = policies[comboboxProfiles.Active];
			bool isFromService =!p.IsBuiltIn && FormattingProfileService.Profiles.Contains (p);
			if (isFromService)
				FormattingProfileService.Remove (p);
			var editDialog = new CSharpFormattingProfileDialog (p);
			MessageService.ShowCustomDialog (editDialog);
			editDialog.Destroy ();
			if (isFromService)
				FormattingProfileService.AddProfile (p);
			InitComboBox ();
		}