// Hàm xử lý sự kiện nút appsetting click // @return: true nếu form bấm nút ok // false nếu form bấm nút cancel. private void buttonAppSettingsHandleClick(object sender, ToolBarButtonClickEventArgs e) { AppSettingsForm form = new AppSettingsForm(MainForm.Settings); DialogResult rs = form.ShowDialog(); if (rs == DialogResult.Cancel) { MainForm.Settings.Reload(); } else if (rs == DialogResult.OK) { MainForm.Settings.Save(); var mainform = (sender as ToolBar).FindForm() as MainForm; mainform.InitTableLayout(); mainform.ReDrawMap(); } else { MainForm.Settings.Reload(); } }