private void SaveSetting() { try { string _disposisi_template_path = txtDisposisiFile.Text.Replace("\\", "\\\\"); string _penyelesaian_template_file = txtPenyelesaianFile.Text.Replace("\\", "\\\\"); string _surat_keluar_template_file = txtSuratKeluar.Text.Replace("\\", "\\\\"); string _date_format = ddDateFormat.Text; string _option_highlight; _option_highlight = GetOptionHighlight(); AppDefaultSetting.UpdateLayoutPrintoutSetting(_disposisi_template_path, _penyelesaian_template_file, _date_format, _option_highlight, _surat_keluar_template_file); MessageBox.Show(this, "Data sudah di simpan.", "Data disimpan", MessageBoxButtons.OK, MessageBoxIcon.Information); this.Close(); } catch (Exception ex) { MessageBox.Show(this, "Terdapat kesalah, mohon periksa kembali.", "Duplicate Data", MessageBoxButtons.OK, MessageBoxIcon.Stop); } }