예제 #1
0
        public void setValue(string nameProject, List <ItemProjects> items)
        {
            item = new List <ItemProjects>(items);

            this.lbProjectName.Text = nameProject;
            this.txtTittle.Text     = nameProject;
            foreach (ItemProjects t in items)
            {
                ItemProject i = new ItemProject();
                i.setValue(t.STT, t.Content, t.check);
                this.flowLayoutPanel1.Controls.Add(i);
            }
        }
예제 #2
0
 private void btnCancel_Click(object sender, EventArgs e)
 {
     this.btnEdit.Visible       = true;
     this.btnTimer.Visible      = false;
     this.panel1.Visible        = false;
     this.lbProjectName.Visible = true;
     this.txtTittle.Visible     = false;
     this.lbComplete.Visible    = true;
     this.btnAdd.Visible        = false;
     this.lbTime.Visible        = true;
     btnOK.Visible     = false;
     btnDel.Visible    = false;
     btnCancel.Visible = false;
     this.flowLayoutPanel1.Controls.Clear();
     foreach (ItemProjects t in item)
     {
         ItemProject i = new ItemProject();
         i.setValue(t.STT, t.Content, t.check);
         this.flowLayoutPanel1.Controls.Add(i);
     }
 }