public void inputForm() { BL.Commen g = new BL.Commen(); if (txtInput.Text == "") { this.soluong = 0; } else { if (txtInput.Text.Length < 10) { if (g.CheckIsNumber(txtInput.Text) == true) { this.soluong = int.Parse(txtInput.Text.ToString()); this.Close(); } else { MessageBox.Show("Giá trị nhập vào không hợp lệ,vui lòng nhập lại", "Thông báo"); } } else { MessageBox.Show("Giá trị nhập vào quá lớn,vui lòng nhập lại", "Thông báo"); } } this.Close(); }