Exemplo n.º 1
0
 /// <summary>
 /// (Re)populates the identities table from the database.
 /// </summary>
 public void GetIdentities()
 {
     Identities               = Db.GetTable("Identity", QueryString.Identity.Select);
     cbIdentity.DataSource    = null;
     cbIdentity.DataSource    = Identities;
     cbIdentity.DisplayMember = "Name";
 }
Exemplo n.º 2
0
        private void EnableTimesheet()
        {
            dgvTimesheet.Enabled      = true;
            mnuTimesheetClose.Enabled = true;
            btnTaskToggle.Enabled     = true;
            txtTaskName.Enabled       = true;
            lblTaskName.Enabled       = true;
            btnTaskSave.Enabled       = false;

            ActiveTask = new Task();

            source = new BindingSource();

            _table = timesheet.GetTable("tasks", QueryString.Task.Select);

            source.DataSource = _table;

            dgvTimesheet.DataSource = source;

            this.FormClosed += FrmMain_FormClosed;
        }