/// <summary> /// Class constructor /// </summary> public FormRecreateRepos() { InitializeComponent(); ClassWinGeometry.Restore(this); }
/// <summary> /// Form is closing. /// </summary> private void FormCustomizeToolsFormClosing(object sender, FormClosingEventArgs e) { ClassWinGeometry.Save(this); }
/// <summary> /// Form is closing. /// </summary> private void FormGitRunFormClosing(object sender, FormClosingEventArgs e) { ClassWinGeometry.Save(this); }
/// <summary> /// Form is closing. /// </summary> private void FormChangelistFilterFormClosing(object sender, FormClosingEventArgs e) { ClassWinGeometry.Save(this); }
public FormStash() { InitializeComponent(); ClassWinGeometry.Restore(this); }
/// <summary> /// Form is closing. /// </summary> private void FormDeleteBranchFormClosing(object sender, FormClosingEventArgs e) { ClassWinGeometry.Save(this); Properties.Settings.Default.ForceDeleteBranch = checkForce.Checked; }
/// <summary> /// Form is closing. /// </summary> private void FormRevisionHistoryFormClosing(object sender, FormClosingEventArgs e) { ClassWinGeometry.Save(this); }
/// <summary> /// Form is closing. /// </summary> private void FormNewRepoStep1FormClosing(object sender, FormClosingEventArgs e) { ClassWinGeometry.Save(this); }
public FormNewRepoStep2() { InitializeComponent(); ClassWinGeometry.Restore(this); }
/// <summary> /// Form is closing /// </summary> private void FormHttpsAuth_FormClosing(object sender, FormClosingEventArgs e) { ClassWinGeometry.Save(this); }
/// <summary> /// This is the main entry point to the application main form. /// </summary> public FormMain() { InitializeComponent(); ClassWinGeometry.Restore(this); // Initialize panels // Left panel: splitContainer2.Panel1.Controls.Add(PanelView); PanelView.Dock = DockStyle.Fill; // Right set of panels: foreach (var panel in PanelsR) { var tabPage = new TabPage(panel.Key) { Name = panel.Key, Tag = panel.Key, ToolTipText = panel.Key + " (" + PanelsRShortcuts[panel.Key] + ")" }; panel.Value.Dock = DockStyle.Fill; tabPage.Controls.Add(panel.Value); rightTabControl.TabPages.Add(tabPage); } // Show or hide command line menuViewCommandLine.Checked = cmdBox.Visible = Properties.Settings.Default.ShowCommandLine; UpdateRightPaneTabsShowState(); // Enable SSH only if the PuTTY support class has been instantiated if (App.Putty != null) { btSsh.Enabled = true; menuMainManageKeys.Enabled = true; } // We prevent Log window form closing by getting a FormClosing event within which we set "e.Cancel" to True App.Log.FormClosing += LogWindowToolStripMenuItemClick; menuViewLogWindow.Checked = Properties.Settings.Default.ShowLogWindow; // Add all callback handlers App.Refresh += FormMainRefresh; // Refresh, when any component wants to update the global state App.PrintStatusMessage += PrintStatus; // Print a line of status message App.StatusBusy += SetBusy; // Busy flag set or reset // Register toolbar file buttons with the View panel PanelView.RegisterToolstripFileButtons(new Dictionary <PanelView.FileOps, ToolStripButton> { { PanelView.FileOps.Add, btAdd }, { PanelView.FileOps.Update, btUpdate }, { PanelView.FileOps.UpdateAll, btUpdateAll }, { PanelView.FileOps.Revert, btRevert }, { PanelView.FileOps.Delete, btDelete }, { PanelView.FileOps.DeleteFs, btDeleteFs }, { PanelView.FileOps.Edit, btEdit } }); PrintStatus("GitForce version " + ClassVersion.GetVersion(), MessageType.General); // Arm the timer that will check for the result of the new version test // Since the network access, implemented in ClassVersion, can take some time to // provide with the version check result, we will simply repaint our icon after a delay Timer versionCheckTimer = new Timer { Interval = 10000, Enabled = true }; versionCheckTimer.Tick += VersionCheckTimerTick; }
/// <summary> /// Form is closing. /// </summary> private void FormSwitchToBranchFormClosing(object sender, FormClosingEventArgs e) { ClassWinGeometry.Save(this); }