private void FrmNonAdminTicket_Load(object sender, EventArgs e)
        {
            CboPriority.DataSource = PriorityDB.GetAllPriorities();

            if (Ticket == null)
            {
                BtnAddOrUpdate.Text     = "Add";
                DtpCreated.Value        = DateTime.Today;
                TxtTicketCreator.Text   = State.CurrUser.ToString();
                BtnViewComments.Enabled = false;
                CbxCompleted.Enabled    = false;
            }
            else
            {
                BtnAddOrUpdate.Text = "Update";
                PopulateFields();
            }
        }
Ejemplo n.º 2
0
 private void LoadPriorities()
 {
     CboPriorities.DataSource = null;
     CboPriorities.DataSource = PriorityDB.GetAllPriorities();
 }