private void tbarSetting_Click(object sender, EventArgs e) { // Show Setting dialog frmSetting objSettingDlg = new frmSetting(); objSettingDlg.ShowDialog(); // Reload data if (objSettingDlg.isChange == true) { objSettingConfig = objSettingDlg.objSettingConfig; objStruct.GenerateAllCommand(objSettingConfig.allItems); } }