public UpdateForm(int id) { InitializeComponent(); this.StudentId = id; this.Business = new LogicLayer(); this.Load += UpdateForm_Load; this.btnSave.Click += BtnSave_Click; this.btnCancel.Click += BtnCancel_Click; }
public IndexForm() { InitializeComponent(); this.Business = new LogicLayer(); this.Load += IndexForm_Load; this.btnAdd.Click += btnCreate_Click; this.btnDelete.Click += btnDelete_Click; this.grdStudent.DoubleClick += grdStudents_DoubleClick; this.btnStatistic.Click += BtnStatistic_Click; txtSearch.Text = "Please enter code"; txtSearch.ForeColor = Color.Gray; this.txtSearch.Leave += TxtSearch_Leave; this.txtSearch.Enter += TxtSearch_Enter; this.btnSearch.Click += BtnSearch_Click; }
public StatisticForm() { this.Business = new LogicLayer(); InitializeComponent(); this.Load += StatisticForm_Load; }