Commit MetaInfo

Revisiond16f70a92b9610a634111a73aa484118e7cb7d76 (tree)
Time2009-10-06 14:53:28
AuthorFace
CommiterFace

Log Message

Added minor publication logic.

Change Summary

Incremental Difference

diff -r 329cb3b698a5 -r d16f70a92b96 src/COIClient/ClientForm.cs
--- a/src/COIClient/ClientForm.cs Mon Oct 05 22:33:49 2009 +0200
+++ b/src/COIClient/ClientForm.cs Tue Oct 06 07:53:28 2009 +0200
@@ -1433,7 +1433,7 @@
14331433
14341434 private void Upload()
14351435 {
1436- var upload = new UploadForm(branchButton);
1436+ var upload = new UploadForm(branchButton, uri.IsFile);
14371437 var result = DialogResult.None;
14381438 upload.StartPosition = FormStartPosition.CenterParent;
14391439 Invoke(new MethodInvoker(delegate { result = upload.ShowDialog(); }));
diff -r 329cb3b698a5 -r d16f70a92b96 src/COIClient/UploadForm.Designer.cs
--- a/src/COIClient/UploadForm.Designer.cs Mon Oct 05 22:33:49 2009 +0200
+++ b/src/COIClient/UploadForm.Designer.cs Tue Oct 06 07:53:28 2009 +0200
@@ -86,6 +86,7 @@
8686 this.branchComboBox.Size = new System.Drawing.Size(160, 21);
8787 this.branchComboBox.TabIndex = 3;
8888 this.toolTipProvider.SetToolTip(this.branchComboBox, "Branch name on remote repository");
89+ this.branchComboBox.SelectedIndexChanged += new System.EventHandler(this.branchComboBox_SelectedIndexChanged);
8990 //
9091 // PublishCheckBox
9192 //
diff -r 329cb3b698a5 -r d16f70a92b96 src/COIClient/UploadForm.cs
--- a/src/COIClient/UploadForm.cs Mon Oct 05 22:33:49 2009 +0200
+++ b/src/COIClient/UploadForm.cs Tue Oct 06 07:53:28 2009 +0200
@@ -7,9 +7,11 @@
77 {
88 public partial class UploadForm : Form
99 {
10- public UploadForm(ToolStripDropDownButton branchButton)
10+ private bool local;
11+ public UploadForm(ToolStripDropDownButton branchButton, bool local)
1112 {
1213 InitializeComponent();
14+ this.local = local;
1315 for(int i=0;i<branchButton.DropDownItems.Count-1;i++)
1416 {
1517 var branch = branchButton.DropDownItems[i].Text;
@@ -27,11 +29,20 @@
2729
2830 public FormResult Result { get; private set; }
2931
30- private void UploadForm_Load(object sender, EventArgs e)
32+ public bool Publish { get { return PublishCheckBox.Checked; } }
33+
34+ private void branchComboBox_SelectedIndexChanged(object sender, EventArgs e)
3135 {
32-
36+ if (branchComboBox.SelectedIndex>0)
37+ {
38+ PublishCheckBox.Checked = true;
39+ PublishCheckBox.Enabled = false;
40+ }
41+ else
42+ {
43+ PublishCheckBox.Checked = local;
44+ PublishCheckBox.Enabled = !local;
45+ }
3346 }
34-
35- public bool Publish { get { return PublishCheckBox.Checked; } }
3647 }
3748 }
diff -r 329cb3b698a5 -r d16f70a92b96 src/COIClient/UploadForm.resx
--- a/src/COIClient/UploadForm.resx Mon Oct 05 22:33:49 2009 +0200
+++ b/src/COIClient/UploadForm.resx Tue Oct 06 07:53:28 2009 +0200
@@ -120,13 +120,4 @@
120120 <metadata name="toolTipProvider.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
121121 <value>14, 11</value>
122122 </metadata>
123- <metadata name="toolTipProvider.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
124- <value>14, 11</value>
125- </metadata>
126- <metadata name="toolTipProvider.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
127- <value>14, 11</value>
128- </metadata>
129- <metadata name="toolTipProvider.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
130- <value>14, 11</value>
131- </metadata>
132123 </root>
\ No newline at end of file
Show on old repository browser