/* ----- Bottom button ----- */ private void excelBtn_Click(object sender, EventArgs e) { selectResult result = HKSelectForm.showSelectForm("导出目前名单", "导出总名单"); if (result.confirm) { excelBtn_SelectConfirm(result.title); } }
private selectResult createRowAddSelectForm() { HKSelectForm selectForm = new HKSelectForm(); selectForm.checkBackColor = Color.DarkMagenta; selectForm.addRadio("手工录入"); selectForm.addRadio("Excel导入(覆盖)"); selectForm.addRadio("Excel导入(添加)"); selectForm.Width = 450; selectForm.Height = 150; return(selectForm.showSelect()); }
private void ColorPanel_Click(object sender, EventArgs e) { selectResult result = HKSelectForm.showSelectForm("默认", "拾取颜色"); if (result.confirm) { if (result.title.Equals("默认")) { colorPanel.BackColor = Color.Transparent; } else { ColorDialog colorDialog = new ColorDialog(); colorDialog.ShowDialog(); colorPanel.BackColor = colorDialog.Color; } } }