Ejemplo n.º 1
0
 private void LoadEventInfo()
 {
     x.ReadInventoryEventByName(cb_InvEvent.SelectedItem.ToString());
     if (x.ActiveEventId > 0)
     {
         rtb_ro_EventDescription.Text = x.ActiveEventDescription;
         tb_ro_QTYofTags.Text         = x.ActiveEventQtyofTags.ToString();
         tb_EventCreationDate.Text    = x.ActiveEventCreationDate.ToString("MM/dd/yyy");
         if (x.ActiveEventStatus)
         {
             tb_ro_EventStatus.Text = "Active";
             b_ChangeStatus.Text    = "Close";
         }
         else
         {
             tb_ro_EventStatus.Text = "Closed";
             b_ChangeStatus.Text    = "Activate";
         }
         foreach (Control b in this.Controls[0].Controls[0].Controls)
         {
             if (b is Button)
             {
                 ((Button)b).Enabled = true;
             }
         }
         tb_NTags.Enabled                = true;
         gb_AdminEvent.Enabled           = true;
         gb_BlankTags.Enabled            = true;
         gb_LoadTags.Enabled             = true;
         b_CreateIE.Enabled              = false;
         rb_JZ_Tags.Enabled              = !x.TicketCountLoaded;
         rb_EPDC_Tags.Enabled            = !x.TicketCountLoaded;
         b_tagsFromSQL.Enabled           = !x.TicketCountLoaded;
         b_MOtagsFromSQL.Enabled         = !x.MOTagsLoaded;
         rtb_ro_EventDescription.Enabled = false;
     }
 }
Ejemplo n.º 2
0
 private void LoadEventInfo()
 {
     x.ReadInventoryEventByName(cb_InvEvent.SelectedItem.ToString());
     if (x.ActiveEventStatus)
     {
         //active
         l_EventStatus.Text      = "ACTIVE";
         l_EventStatus.ForeColor = Color.Green;
     }
     else
     {
         //closed
         l_EventStatus.Text      = "CLOSED";
         l_EventStatus.ForeColor = Color.Red;
     }
 }