~taktaktaktaktaktaktaktaktaktak/monodevelop-bzr/2.2

« back to all changes in this revision

Viewing changes to Dialogs/BranchSelectionDialog.cs

  • Committer: Levi Bard
  • Date: 2009-10-21 17:22:31 UTC
  • mfrom: (89.1.15)
  • Revision ID: taktaktaktaktaktaktaktaktaktak@gmail.com-20091021172231-1oeuq4y690bu8x1j
Merge tak for MD 2.2b2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
                        get{ return overwriteCB.Active; }
55
55
                }// Overwrite
56
56
                
 
57
                public bool OmitHistory {
 
58
                        get{ return omitCB.Active; }
 
59
                }// OmitHistory
 
60
 
 
61
                protected virtual void OnOmitCBToggled (object sender, System.EventArgs e)
 
62
                {
 
63
                        if (omitCB.Active) {
 
64
                                overwriteCB.Active = false;
 
65
                        }
 
66
                        overwriteCB.Sensitive = omitCB.Active;
 
67
                }// OnOmitCBToggled
 
68
                
57
69
                public BranchSelectionDialog(ICollection<string> branchLocations, string defaultLocation, string localDirectory, bool enableLocalPathSelection, bool enableRemember, bool enableOverwrite)
58
70
                {
59
71
                        this.Build();
90
102
                        if (!string.IsNullOrEmpty (localDirectory))
91
103
                                localPathButton.SetCurrentFolder (localDirectory);
92
104
                        localPathButton.Sensitive = enableLocalPathSelection;
 
105
                        omitCB.Visible = !enableLocalPathSelection;
93
106
                        defaultCB.Sensitive = enableRemember;
94
107
                        overwriteCB.Sensitive = enableOverwrite;
95
108
                }// constructor