private void MergeToolFix_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(CommonLogic.GetGlobalMergeTool())) { if ( MessageBox.Show(this, _noMergeToolConfigured.Text, _noMergeToolConfiguredCaption.Text, MessageBoxButtons.YesNo) == DialogResult.Yes) { CommonLogic.SetGlobalMergeTool("kdiff3"); PageHost.LoadAll(); // apply settings to dialog controls (otherwise the later called SaveAndRescan_Click would overwrite settings again) } else { GotoPageGlobalSettings(); return; } } if (CommonLogic.IsMergeTool("kdiff3")) { CheckSettingsLogic.SolveMergeToolPathForKDiff(); } else if (_AutoConfigMergeTools.Any(tool => CommonLogic.IsMergeTool(tool))) { CheckSettingsLogic.AutoConfigMergeToolCmd(); SetGlobalPathSetting( string.Format("mergetool.{0}.cmd", CommonLogic.GetGlobalMergeTool()), CheckSettingsLogic.GetMergeToolCmdText()); } if (CommonLogic.IsMergeTool("kdiff3") && string.IsNullOrEmpty(GetGlobalSetting("mergetool.kdiff3.path"))) { MessageBox.Show(this, _kdiff3NotFoundAuto.Text); GotoPageGlobalSettings(); return; } SaveAndRescan_Click(null, null); }
private void SshConfig_Click(object sender, EventArgs e) { if (GitCommandHelpers.Plink()) { if (SshSettingsPage.AutoFindPuttyPaths()) { MessageBox.Show(this, _puttyFoundAuto.Text, _putty); } else { PageHost.GotoPage(SshSettingsPage.GetPageReference()); } } // original //// if (Putty.Checked) //// { //// if (AutoFindPuttyPaths()) //// MessageBox.Show(this, _puttyFoundAuto.Text, _puttyFoundAutoCaption.Text); //// else //// tabControl1.SelectTab(tpSsh); //// } }
protected override void ExecuteCommand() { PageHost.UpdateCurrentPageSource(PageSource.ADD_WAREHOUSE_IMPORT_PAGE); }
// TODO: needed somewhere? ////private void SetGlobalMergeToolText(string text) ////{ //// throw new NotImplementedException("GlobalMergeTool.Text = ..."); ////} private void GotoPageGlobalSettings() { PageHost.GotoPage(GitConfigSettingsPage.GetPageReference()); }
protected override void ExecuteCommand() { PageHost.UpdateCurrentPageSource(PageSource.OTHER_PAYMENT_MANAGEMENT_PAGE); }
protected override void OnInit(EventArgs e) { PageHost.Register(this, Context); base.OnInit(e); }
protected override void ExecuteCommand() { PageHost.UpdateCurrentPageSource(PageSource.WAREHOUSE_MANAGEMENT_PAGE); }
protected override void ExecuteCommand() { PageHost.UpdateCurrentPageSource(PageSource.HOME_PAGE); }
protected override void ExecuteCommand() { PageHost.UpdateCurrentPageSource(PageSource.PERSONAL_INFO_PAGE); }
protected override void ExecuteCommand() { PageHost.UpdateCurrentPageSource(PageSource.USER_INSTANTIATION_PAGE); }
protected override void ExecuteCommand() { PageHost.UpdateCurrentPageSource(PageSource.SUPPLIER_DEBT_PAGE); }
protected override void ExecuteCommand() { PageHost.UpdateCurrentPageSource(PageSource.SUPPLIER_IMPORT_HISTORY_PAGE); }
protected override void ExecuteCommand() { PageHost.UpdateCurrentPageSource(PageSource.CUSTOMER_TRANSACTION_HISTORY_PAGE); }
/// <summary> /// Gets the view for the specified page. /// </summary> public IApplicationComponentView GetPageView(ContainerPage page) { PageHost host = _mapPageToHost[page]; return(host.ComponentView); }
protected override void ExecuteCommand() { DbManager.Instance.RollBack(); PageHost.UpdateCurrentPageSource(PageSource.HOME_PAGE); }
protected override void ExecuteCommand() { MSW_DataFlowHost.Current.CurrentSelectedCustomerOrder = IMPViewModel.CurrentSelectedOrderOV.Order; PageHost.UpdateCurrentPageSource(PageSource.CUSTOMER_BILL_PAGE); }