protected void Page_Load(object sender, EventArgs e)
        {
            DataTable data = dbClass.GetProject_tbl();
            string    ID;
            string    Name;

            foreach (DataRow row in data.Rows)
            {
                ID   = row["Project_id"].ToString();
                Name = row["Project_Title"].ToString();
                ProjectDropDown.Items.Add(ID);
                ProjectDropDown.DataBind();
            }

            DataTable data1 = dbClass.GetMember_tbl();
            string    M_ID;
            string    M_Name;

            foreach (DataRow row in data1.Rows)
            {
                M_ID   = row["Mem_id"].ToString();
                M_Name = row["Mem_Name"].ToString();
                MemberDropDown.Items.Add(M_ID);
                MemberDropDown.DataBind();
            }
        }
Ejemplo n.º 2
0
        private void UpdateProjectDropDown(string _clientName)
        {
            ProjectDropDown.Items.Clear();
            ProjectDropDown.ResetText();

            var            _clientId = ClientController.GetClientByName(_clientName).Id;
            List <Project> _projects = ProjectController.GetProjectsByClientId(_clientId);

            foreach (var _project in _projects)
            {
                ProjectDropDown.Items.Add(_project.Name);
            }
        }
Ejemplo n.º 3
0
 private void ClearForm()
 {
     textBoxNotes.Clear();
     ClientDropDown.ResetText();
     ClientDropDown.Items.Clear();
     ProjectDropDown.ResetText();
     ProjectDropDown.Items.Clear();
     UpdateClientDropDown();
     addedTime = new TimeSpan(0, 0, 0);
     stopWatch.Reset();
     textBoxTime.Text = "00:00:00";
     button1.Text     = ">";
 }