private void btnSave_Click(object sender, EventArgs e) { DialogResult dres = MessageBox.Show("با تغییر رنگ نامه های قبلی نیز به رنگ جدید تغییر می کنند، آیا ادامه می دهید", "", MessageBoxButtons.YesNo); if (dres.Equals(DialogResult.No)) { return; } for (int i = 0; i < cmbLetterStateId.Items.Count; i++) { ComboBoxItem item = (ComboBoxItem)cmbLetterStateId.Items[i]; if (item.CustomData != null && item.CustomData.Length > 0) { _basicInfoBL.updateCustomData(int.Parse(item.Value.ToString()), item.CustomData); } } ApplicationPropertiesBL appPropertiesBL = new ApplicationPropertiesBL(); int kk = appPropertiesBL.add(ApplicationPropertiesBL.COLOR_CONFIRMED_LETTER, ColorTranslator.ToHtml(pnlColorConfirmedLetter.BackColor)); kk = appPropertiesBL.add(ApplicationPropertiesBL.COLOR_REFERENCE_LIMIT, ColorTranslator.ToHtml(pnlReferenceColor.BackColor)); kk = appPropertiesBL.add(ApplicationPropertiesBL.REFERENCE_COUNT, txtReferLimit.Text); kk = appPropertiesBL.add(ApplicationPropertiesBL.CHEQUE_WITHNO_REPLY, ColorTranslator.ToHtml(pnlCheque.BackColor)); updateLetterColors(); updateChequeColors(); lblMsg.Text = "تغییرات دذخیره گردید"; }
private void button2_Click(object sender, EventArgs e) { SavePrivateSetting(); _applicationPropertiesBL = new ApplicationPropertiesBL(); _applicationPropertiesBL.add(ApplicationPropertiesBL.ALARM_LIST_REFRESH_TIME, cmbScheduleForRefresh.Items[cmbScheduleForRefresh.SelectedIndex].ToString()); this.Close(); }