private void btnSave_Click(object sender, EventArgs e) { try { if (Static.ToLong(numRefreshTime.EditValue) >= 5) { _core.CacheSet("frmFinalStatements_Name", txtPanelName.EditValue); _core.CacheSet("frmFinalStatements_RefreshTime", numRefreshTime.EditValue); _core.CacheSet("frmFinalStatements_ReportNo", txtReportNo.EditValue); _core.CacheSet("frmFinalStatements_ViewType", cboViewType.EditValue); _core.CacheSet("frmFinalStatements_UnReadDay", numUnReadDay.EditValue); _core.CacheSet("frmFinalStatements_ReadDay", numReadDay.EditValue); _core.CacheSet("frmFinalStatements_RefreshTime", numRefreshTime.EditValue); _core.CacheSave(); MessageBox.Show("Амжилттай хадгалагдлаа"); this.Close(); } else { ErrorProvider.SetError(numRefreshTime, "5-с их утга оруулна уу."); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnSave_Click(object sender, EventArgs e) { try { if (Static.ToLong(numRefreshTime.EditValue) >= 5) { //Static.RegisterSave(_core.ApplicationPath, "Dashboard\\Project", "ReadDay", Static.ToInt(numReadDay.EditValue)); //Static.RegisterSave(_core.ApplicationPath, "Dashboard\\Project", "UnReadDay", Static.ToInt(numUnReadDay.EditValue)); //Static.RegisterSave(_core.ApplicationPath, "Dashboard\\Project", "RefreshTime", Static.ToInt(numRefreshTime.EditValue)); _core.CacheSet(this.Name + "_PROJECTREADDAY", Static.ToInt(numReadDay.EditValue)); _core.CacheSet(this.Name + "_PROJECTUNREADDAY", Static.ToInt(numUnReadDay.EditValue)); _core.CacheSet(this.Name + "_PROJECTRefreshTime", Static.ToInt(numRefreshTime.EditValue)); _core.CacheSave(); MessageBox.Show("Амжилттай хадгалагдлаа"); this.Close(); } else { ErrorProvider.SetError(numRefreshTime, "5-с их утга оруулна уу."); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnSave_Click(object sender, EventArgs e) { try { if (Static.ToLong(numRefreshTime.EditValue) >= 5) { _core.CacheSet("frmNewDeal_Amount", numAmount.EditValue); _core.CacheSet("frmNewDeal_UnReadDay", numUnReadDay.EditValue); _core.CacheSet("frmNewDeal_ReadDay", numAmount.EditValue); _core.CacheSet("frmNewDeal_RefreshTime", numRefreshTime.EditValue); _core.CacheSet("frmNewDeal_Type", cboType.EditValue); _core.CacheSave(); MessageBox.Show("Амжилттай хадгалагдлаа"); this.Close(); } else { ErrorProvider.SetError(numRefreshTime, "5-с их утга оруулна уу."); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnSave_Click(object sender, EventArgs e) { if (Static.ToLong(numRefreshTime.EditValue) >= 5) { _core.CacheSet("frmDealReport_RefreshTime", numRefreshTime.EditValue); _core.CacheSave(); this.Close(); } else { ErrorProvider.SetError(numRefreshTime, "5-с их утга оруулна уу."); } }
private void btnConnect_Click_1(object sender, EventArgs e) { string mstrRegPath = ISM.CUser.Remote.mstrRegPath; //Static.RegisterSave(RegPath, "MainOptions", "LockTimeOut", txtLockTimeOut.Text); //Static.RegisterSave(mstrRegPath, "Login", "CheckInterval", txtCheckInterval.Text); //Static.RegisterSave(mstrRegPath, "Login", "WaitTimeout", txtWaitTimeout.Text); //Static.RegisterSave(RegPath, "MainOptions", "TempPath", txtTempPath.Text); //Static.RegisterSave(RegPath, "MainOptions", "ReportPathIn", txtReportPathIn.Text); //Static.RegisterSave(RegPath, "MainOptions", "ReportPathOut", txtReportPathOut.Text); //Static.RegisterSave(RegPath, "MainOptions", "DynamicPathIn", txtDynamicPathIn.Text); //Static.RegisterSave(RegPath, "MainOptions", "DynamicPathOut", txtDynamicPathOut.Text); //Static.RegisterSave(RegPath, "MainOptions", "SlipsPathIn", txtSlipsPathIn.Text); //Static.RegisterSave(RegPath, "MainOptions", "SlipsPathOut", txtSlipsPathOut.Text); //Static.RegisterSave(RegPath, "MainOptions", "TerminalSkin", Static.ToStr(cboStyle.EditValue)); //Static.RegisterSave(RegPath, "MainOptions", "WindowType", Static.ToStr(cboWindowType.EditValue)); _core.CacheSet(this.Name + "_LockTimeOut", txtLockTimeOut.EditValue); _core.CacheSet(this.Name + "_CheckInterval", txtCheckInterval.EditValue); _core.CacheSet(this.Name + "_WaitTimeout", txtWaitTimeout.EditValue); _core.CacheSet(this.Name + "_TempPath", txtTempPath.EditValue); _core.CacheSet(this.Name + "_ReportPathIn", txtReportPathIn.EditValue); _core.CacheSet(this.Name + "_ReportPathOut", txtReportPathOut.EditValue); _core.CacheSet(this.Name + "_CustReportPathIn", txtCustReportPathIn.EditValue); _core.CacheSet(this.Name + "_DynamicPathIn", txtSlipsPathIn.EditValue); _core.CacheSet(this.Name + "_DynamicPathOut", txtSlipsPathOut.EditValue); _core.CacheSet(this.Name + "_SlipsPathIn", txtSlipsPathIn.EditValue); _core.CacheSet(this.Name + "_SlipsPathOut", txtSlipsPathOut.EditValue); _core.CacheSet(this.Name + "_TerminalSkin", cboStyle.EditValue); _core.CacheSet(this.Name + "_WindowType", cboWindowType.EditValue); _core.RemoteObject.CheckInterval = Static.ToInt(txtCheckInterval.Text); _core.RemoteObject.WaitTimeout = Static.ToInt(txtWaitTimeout.Text); _core.CacheSave(); _core.TempPath = txtTempPath.Text; _core.ReportPathIn = txtReportPathIn.Text; _core.ReportPathOut = txtReportPathOut.Text; _core.DynamicPathIn = txtDynamicPathIn.Text; _core.DynamicPathOut = txtDynamicPathOut.Text; _core.SlipsPathIn = txtSlipsPathIn.Text; _core.CustReportPathIn = txtCustReportPathIn.Text; _core.SlipsPathOut = txtSlipsPathOut.Text; _core.TerminalSkin = Static.ToStr(cboStyle.EditValue); _core.WindowType = Static.ToStr(cboWindowType.EditValue); defaultLookAndFeel1.LookAndFeel.SetSkinStyle(GetSkinName(Static.ToInt(cboStyle.EditValue))); this.Close(); }