Beispiel #1
0
        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
                {
                }
            }
        }
Beispiel #2
0
        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
                {
                }
            }
        }
Beispiel #3
0
        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
                {
                }
            }
        }
Beispiel #4
0
 public fbangKH(FaKHTSCD bangKH)
 {
     InitializeComponent();
     _bangKH = bangKH;
 }