private void AddTaskView_Load(object sender, EventArgs e) { //ct = new List<Category>(); ct = cat.GetAll(LogIn.user_ID); for (int i = 0; i < ct.Count; i++) { cBCategory.Items.Add(ct[i].Name); } }
private void UpdateAddTaskInfo_Load(object sender, EventArgs e) { CategorySer catService = new CategorySer(); List <Category> catList = catService.GetAll(LogIn.user_ID); for (int i = 0; i < catList.Count; i++) { cBCategory.Items.Add(catList[i].Name); } }
public void CategoryListShow() { flowLayoutPanel2.Controls.Clear(); CategorySer catS = new CategorySer(); List <Category> catList = catS.GetAll(LogIn.user_ID); for (int i = 0; i < catList.Count; i++) { if (catList[i].Name.Equals("Inbox") || catList[i].Name.Equals("Today") || catList[i].Name.Equals("Next 7 Day")) { continue; } pUC = new ProjectUserControl(); pUC.ProjectName = catList[i].Name; pUC.ProjectColor = catList[i].Color; flowLayoutPanel2.Controls.Add(pUC); } }