private void simpleButton2_Click(object sender, EventArgs e) { FaKHTSCD cal; if (KhoaSo(Int32.Parse(spinEdit2.Value.ToString()))) { return; } for (int i = int.Parse(spinEdit1.Value.ToString()); i <= spinEdit2.Value; i++) { try { cal = new FaKHTSCD(i, namLv); if (cal.deleteBt()) { string msg = "Đã xóa bút toán khấu hao!"; if (Config.GetValue("Language").ToString() == "1") { msg = UIDictionary.Translate(msg); } XtraMessageBox.Show(msg); } } catch { } } }
private void simpleButton1_Click(object sender, EventArgs e) { if (spinEdit1.Value > spinEdit2.Value) { return; } if (KhoaSo(Int32.Parse(spinEdit2.Value.ToString()))) { return; } FaKHTSCD cal; for (int i = int.Parse(spinEdit1.Value.ToString()); i <= spinEdit2.Value; i++) { try { cal = new FaKHTSCD(i, namLv); fbangKH f = new fbangKH(cal); f.Text = this.Text; f.ShowDialog(); } catch { } } }
private void simpleButton2_Click(object sender, EventArgs e) { FaKHTSCD cal; for (int i = int.Parse(spinEdit1.Value.ToString()); i <= spinEdit2.Value; i++) { try { cal = new FaKHTSCD(i, namLv); if (cal.deleteBt()) { MessageBox.Show("Ok!"); } else { MessageBox.Show("Có lỗi"); } } catch { } } }
public fbangKH(FaKHTSCD bangKH) { InitializeComponent(); _bangKH = bangKH; }