Esempio n. 1
0
 private void button_addproject_Click(object sender, EventArgs e)
 {
     String[] token = textBox_projectname.Text.Split();
     string table="";
     for (int k = 0; k < token.Length; k++)
     {
         table += token[k];
     }
         if (textBox_projectname.Text.Equals(""))
         {
             MessageBox.Show("Please Enter the Project Title");
         }
         else
         {
             Project pj = new Project();
             int j = 0;
             String username1 = uname[counter[j]];
             String name1 = name[counter[j++]];
             String username2 = uname[counter[j]];
             String name2 = name[counter[j++]];
             String username3 = uname[counter[j]];
             String name3 = name[counter[j++]];
             if (username1.Equals(""))
             {
                 MessageBox.Show("Please Assign Atleast one people in the project!!!");
             }
             else
             {
                 pj.addingProject(table,textBox_projectname.Text, richTextBox_projectdescription.Text, username1, name1, username2, name2, username3, name3);
             }
         }
 }
Esempio n. 2
0
        private void Home_Load(object sender, EventArgs e)
        {
            Project pj = new Project();
            String[] info = pj.showingProject(username);
            int n = 0;
            int length = info.Length;

            if (info != null && info.Length > 0)
            {

                for (int i = 0; i < length; i++)
                {
                    lbl[i].Text = info[i];
                    lbl[i].Location = new Point(10, n);
                    lbl[i].Size = new System.Drawing.Size(300, 30);
                    listView_projects.Controls.Add(lbl[i]);

                    n = n + 40;
                }
            }
        }
Esempio n. 3
0
 private void button_edit_Click(object sender, EventArgs e)
 {
     Project pj = new Project();
     pj.editingProject(info, textBox_name.Text);
 }