private void LoadCompletionPhase() { try { gridPhase.DataSource = BLLCompletionPhase.GetAll(); } catch (Exception ex) { MessageBox.Show("Lỗi lấy danh sách công đoạn hoàn thành.\n" + ex.Message, "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void GetPhases() { cbPhase.DataSource = BLLCompletionPhase.GetAll(); cbPhase.DisplayMember = "Name"; cbPhase.ValueMember = "Id"; }