-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainForm.Designer.cs
More file actions
278 lines (264 loc) · 16.9 KB
/
Copy pathMainForm.Designer.cs
File metadata and controls
278 lines (264 loc) · 16.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
namespace PushPull
{
partial class MainForm
{
private System.ComponentModel.IContainer components = null;
protected override void Dispose(bool disposing)
{
if (disposing && (components != null)) components.Dispose();
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.menuStrip = new System.Windows.Forms.MenuStrip();
this.menuFile = new System.Windows.Forms.ToolStripMenuItem();
this.menuNewProject = new System.Windows.Forms.ToolStripMenuItem();
this.menuEditProject = new System.Windows.Forms.ToolStripMenuItem();
this.menuRemoveProject = new System.Windows.Forms.ToolStripMenuItem();
this.menuFileSep = new System.Windows.Forms.ToolStripSeparator();
this.menuSettings = new System.Windows.Forms.ToolStripMenuItem();
this.menuSettingsSep = new System.Windows.Forms.ToolStripSeparator();
this.menuExit = new System.Windows.Forms.ToolStripMenuItem();
this.menuLocal = new System.Windows.Forms.ToolStripMenuItem();
this.menuDeleteLocalSelected = new System.Windows.Forms.ToolStripMenuItem();
this.menuDeleteAllLocal = new System.Windows.Forms.ToolStripMenuItem();
this.menuLocalSep = new System.Windows.Forms.ToolStripSeparator();
this.menuOpenFolder = new System.Windows.Forms.ToolStripMenuItem();
this.menuRemote = new System.Windows.Forms.ToolStripMenuItem();
this.menuDeleteRemoteSelected = new System.Windows.Forms.ToolStripMenuItem();
this.menuDeleteAllRemote = new System.Windows.Forms.ToolStripMenuItem();
this.menuRemoteSep = new System.Windows.Forms.ToolStripSeparator();
this.menuOpenOnGitHub = new System.Windows.Forms.ToolStripMenuItem();
this.menuHelp = new System.Windows.Forms.ToolStripMenuItem();
this.menuAbout = new System.Windows.Forms.ToolStripMenuItem();
this.toolStrip = new System.Windows.Forms.ToolStrip();
this.lblProjectStrip = new System.Windows.Forms.ToolStripLabel();
this.cboProject = new System.Windows.Forms.ToolStripComboBox();
this.toolSep1 = new System.Windows.Forms.ToolStripSeparator();
this.btnRefresh = new System.Windows.Forms.ToolStripButton();
this.toolSep2 = new System.Windows.Forms.ToolStripSeparator();
this.btnPushAll = new System.Windows.Forms.ToolStripButton();
this.btnPushAllWithComment = new System.Windows.Forms.ToolStripButton();
this.toolSep3 = new System.Windows.Forms.ToolStripSeparator();
this.btnPullAll = new System.Windows.Forms.ToolStripButton();
this.splitContainer = new System.Windows.Forms.SplitContainer();
this.lblLocal = new System.Windows.Forms.Label();
this.listLocal = new System.Windows.Forms.ListView();
this.colLocalName = new System.Windows.Forms.ColumnHeader();
this.colLocalSize = new System.Windows.Forms.ColumnHeader();
this.colLocalModified = new System.Windows.Forms.ColumnHeader();
this.colLocalStatus = new System.Windows.Forms.ColumnHeader();
this.lblRemote = new System.Windows.Forms.Label();
this.listRemote = new System.Windows.Forms.ListView();
this.colRemoteName = new System.Windows.Forms.ColumnHeader();
this.colRemoteSize = new System.Windows.Forms.ColumnHeader();
this.colRemoteSha = new System.Windows.Forms.ColumnHeader();
this.colRemoteStatus = new System.Windows.Forms.ColumnHeader();
this.contextMenuLocal = new System.Windows.Forms.ContextMenuStrip();
this.menuPushFolder = new System.Windows.Forms.ToolStripMenuItem();
this.menuViewDiffLocal = new System.Windows.Forms.ToolStripMenuItem();
this.menuLocalIgnoreSep = new System.Windows.Forms.ToolStripSeparator();
this.menuAddToIgnoreLocal = new System.Windows.Forms.ToolStripMenuItem();
this.contextMenuRemote = new System.Windows.Forms.ContextMenuStrip();
this.menuPullFolder = new System.Windows.Forms.ToolStripMenuItem();
this.menuViewDiffRemote = new System.Windows.Forms.ToolStripMenuItem();
this.menuRemoteIgnoreSep = new System.Windows.Forms.ToolStripSeparator();
this.menuAddToIgnoreRemote = new System.Windows.Forms.ToolStripMenuItem();
this.statusStrip = new System.Windows.Forms.StatusStrip();
this.statusLabel = new System.Windows.Forms.ToolStripStatusLabel();
this.statusLastPushed = new System.Windows.Forms.ToolStripStatusLabel();
// menuStrip
this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.menuFile, this.menuLocal, this.menuRemote, this.menuHelp });
this.menuFile.Text = "&File";
this.menuFile.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.menuNewProject, this.menuEditProject, this.menuRemoveProject,
this.menuFileSep, this.menuSettings, this.menuSettingsSep, this.menuExit });
this.menuSettings.Text = "&Settings...";
this.menuLocal.Text = "&Local";
this.menuLocal.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.menuDeleteLocalSelected, this.menuDeleteAllLocal, this.menuLocalSep, this.menuOpenFolder });
this.menuDeleteLocalSelected.Text = "Delete Selected Local Files...";
this.menuDeleteAllLocal.Text = "Delete All Local Files...";
this.menuOpenFolder.Text = "Open in Explorer";
this.menuRemote.Text = "&Remote";
this.menuRemote.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.menuDeleteRemoteSelected, this.menuDeleteAllRemote,
this.menuRemoteSep, this.menuOpenOnGitHub });
this.menuRemoteSep.Text = "-";
this.menuOpenOnGitHub.Text = "Open on GitHub";
this.menuDeleteRemoteSelected.Text = "Delete Selected Remote Files...";
this.menuDeleteAllRemote.Text = "Delete All Remote Files...";
this.menuNewProject.Text = "&New Project...";
this.menuEditProject.Text = "&Edit Project...";
this.menuRemoveProject.Text = "&Remove Project";
this.menuExit.Text = "E&xit";
this.menuHelp.Text = "&Help";
this.menuHelp.DropDownItems.Add(this.menuAbout);
this.menuAbout.Text = "&About...";
// toolStrip
this.lblProjectStrip.Text = "Project:";
this.cboProject.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cboProject.Size = new System.Drawing.Size(250, 25);
this.btnRefresh.Text = "Refresh";
this.btnRefresh.Image = Icons.Refresh;
this.btnRefresh.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.btnRefresh.ToolTipText = "Refresh - compare local files against GitHub and update the lists";
this.btnPushAll.Text = "Push";
this.btnPushAll.Image = Icons.Push;
this.btnPushAll.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.btnPushAll.ToolTipText = "Push - upload all new and changed local files to GitHub";
this.btnPushAllWithComment.Text = "Push+";
this.btnPushAllWithComment.Image = Icons.PushPlus;
this.btnPushAllWithComment.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.btnPushAllWithComment.ToolTipText = "Push with Comment - enter a commit message, then upload all new and changed local files to GitHub";
this.btnPullAll.Text = "Pull";
this.btnPullAll.Image = Icons.Pull;
this.btnPullAll.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.btnPullAll.ToolTipText = "Pull - download all new and changed remote files from GitHub to local";
this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.lblProjectStrip, this.cboProject, this.toolSep1,
this.btnRefresh, this.toolSep2,
this.btnPushAll, this.btnPushAllWithComment,
this.toolSep3, this.btnPullAll });
// splitContainer
this.splitContainer.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer.Orientation = System.Windows.Forms.Orientation.Vertical;
// local pane
this.lblLocal.Text = "Local";
this.lblLocal.Dock = System.Windows.Forms.DockStyle.Top;
this.lblLocal.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Bold);
this.lblLocal.Height = 20;
this.colLocalName.Text = "Name";
this.colLocalName.Width = 280;
this.colLocalSize.Text = "Size";
this.colLocalSize.Width = 70;
this.colLocalModified.Text = "Modified";
this.colLocalModified.Width = 130;
this.colLocalStatus.Text = "Status";
this.colLocalStatus.Width = 90;
this.listLocal.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.colLocalName, this.colLocalSize, this.colLocalModified, this.colLocalStatus });
this.listLocal.View = System.Windows.Forms.View.Details;
this.listLocal.FullRowSelect = true;
this.listLocal.GridLines = true;
this.listLocal.HideSelection = false;
this.listLocal.ShowGroups = true;
this.listLocal.Dock = System.Windows.Forms.DockStyle.Fill;
this.listLocal.OwnerDraw = false;
this.contextMenuLocal.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.menuPushFolder, this.menuViewDiffLocal, this.menuLocalIgnoreSep, this.menuAddToIgnoreLocal });
this.menuPushFolder.Text = "Push Selected";
this.menuViewDiffLocal.Text = "View Diff";
this.menuAddToIgnoreLocal.Text = "Add to Ignore List";
this.listLocal.ContextMenuStrip = this.contextMenuLocal;
this.splitContainer.Panel1.Controls.Add(this.listLocal);
this.splitContainer.Panel1.Controls.Add(this.lblLocal);
// remote pane
this.lblRemote.Text = "GitHub (Remote)";
this.lblRemote.Dock = System.Windows.Forms.DockStyle.Top;
this.lblRemote.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Bold);
this.lblRemote.Height = 20;
this.colRemoteName.Text = "Name";
this.colRemoteName.Width = 280;
this.colRemoteSize.Text = "Size";
this.colRemoteSize.Width = 70;
this.colRemoteSha.Text = "SHA";
this.colRemoteSha.Width = 80;
this.colRemoteStatus.Text = "Status";
this.colRemoteStatus.Width = 90;
this.listRemote.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.colRemoteName, this.colRemoteSize, this.colRemoteSha, this.colRemoteStatus });
this.listRemote.View = System.Windows.Forms.View.Details;
this.listRemote.FullRowSelect = true;
this.listRemote.GridLines = true;
this.listRemote.HideSelection = false;
this.listRemote.ShowGroups = true;
this.listRemote.Dock = System.Windows.Forms.DockStyle.Fill;
this.contextMenuRemote.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.menuPullFolder, this.menuViewDiffRemote, this.menuRemoteIgnoreSep, this.menuAddToIgnoreRemote });
this.menuPullFolder.Text = "Pull Selected";
this.menuViewDiffRemote.Text = "View Diff";
this.menuAddToIgnoreRemote.Text = "Add to Ignore List";
this.listRemote.ContextMenuStrip = this.contextMenuRemote;
this.splitContainer.Panel2.Controls.Add(this.listRemote);
this.splitContainer.Panel2.Controls.Add(this.lblRemote);
// statusStrip
this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.statusLabel, this.statusLastPushed });
this.statusLabel.Text = "Ready";
this.statusLabel.Spring = true;
this.statusLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.statusLastPushed.Text = "";
this.statusLastPushed.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
// MainForm
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1000, 620);
this.Text = "PushPull for GitHub";
this.Controls.Add(this.splitContainer);
this.Controls.Add(this.toolStrip);
this.Controls.Add(this.menuStrip);
this.Controls.Add(this.statusStrip);
this.MainMenuStrip = this.menuStrip;
this.MinimumSize = new System.Drawing.Size(700, 400);
}
private System.Windows.Forms.MenuStrip menuStrip;
private System.Windows.Forms.ToolStripMenuItem menuFile;
private System.Windows.Forms.ToolStripMenuItem menuNewProject;
private System.Windows.Forms.ToolStripMenuItem menuEditProject;
private System.Windows.Forms.ToolStripMenuItem menuRemoveProject;
private System.Windows.Forms.ToolStripSeparator menuFileSep;
private System.Windows.Forms.ToolStripMenuItem menuSettings;
private System.Windows.Forms.ToolStripSeparator menuSettingsSep;
private System.Windows.Forms.ToolStripMenuItem menuExit;
private System.Windows.Forms.ToolStripMenuItem menuLocal;
private System.Windows.Forms.ToolStripMenuItem menuDeleteLocalSelected;
private System.Windows.Forms.ToolStripMenuItem menuDeleteAllLocal;
private System.Windows.Forms.ToolStripSeparator menuLocalSep;
private System.Windows.Forms.ToolStripMenuItem menuOpenFolder;
private System.Windows.Forms.ToolStripMenuItem menuRemote;
private System.Windows.Forms.ToolStripMenuItem menuDeleteRemoteSelected;
private System.Windows.Forms.ToolStripMenuItem menuDeleteAllRemote;
private System.Windows.Forms.ToolStripSeparator menuRemoteSep;
private System.Windows.Forms.ToolStripMenuItem menuOpenOnGitHub;
private System.Windows.Forms.ToolStripMenuItem menuHelp;
private System.Windows.Forms.ToolStripMenuItem menuAbout;
private System.Windows.Forms.ToolStrip toolStrip;
private System.Windows.Forms.ToolStripLabel lblProjectStrip;
private System.Windows.Forms.ToolStripComboBox cboProject;
private System.Windows.Forms.ToolStripSeparator toolSep1;
private System.Windows.Forms.ToolStripButton btnRefresh;
private System.Windows.Forms.ToolStripSeparator toolSep2;
private System.Windows.Forms.ToolStripButton btnPushAll;
private System.Windows.Forms.ToolStripButton btnPushAllWithComment;
private System.Windows.Forms.ToolStripSeparator toolSep3;
private System.Windows.Forms.ToolStripButton btnPullAll;
private System.Windows.Forms.SplitContainer splitContainer;
private System.Windows.Forms.Label lblLocal;
private System.Windows.Forms.ListView listLocal;
private System.Windows.Forms.ColumnHeader colLocalName;
private System.Windows.Forms.ColumnHeader colLocalSize;
private System.Windows.Forms.ColumnHeader colLocalModified;
private System.Windows.Forms.ColumnHeader colLocalStatus;
private System.Windows.Forms.Label lblRemote;
private System.Windows.Forms.ListView listRemote;
private System.Windows.Forms.ColumnHeader colRemoteName;
private System.Windows.Forms.ColumnHeader colRemoteSize;
private System.Windows.Forms.ColumnHeader colRemoteSha;
private System.Windows.Forms.ColumnHeader colRemoteStatus;
private System.Windows.Forms.ContextMenuStrip contextMenuLocal;
private System.Windows.Forms.ToolStripMenuItem menuPushFolder;
private System.Windows.Forms.ToolStripMenuItem menuViewDiffLocal;
private System.Windows.Forms.ToolStripSeparator menuLocalIgnoreSep;
private System.Windows.Forms.ToolStripMenuItem menuAddToIgnoreLocal;
private System.Windows.Forms.ContextMenuStrip contextMenuRemote;
private System.Windows.Forms.ToolStripMenuItem menuPullFolder;
private System.Windows.Forms.ToolStripMenuItem menuViewDiffRemote;
private System.Windows.Forms.ToolStripSeparator menuRemoteIgnoreSep;
private System.Windows.Forms.ToolStripMenuItem menuAddToIgnoreRemote;
private System.Windows.Forms.StatusStrip statusStrip;
private System.Windows.Forms.ToolStripStatusLabel statusLabel;
private System.Windows.Forms.ToolStripStatusLabel statusLastPushed;
}
}