Example #1
0
        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            if (objGeneralDba == null)
            {
                objGeneralDba = new GeneralDba();
            }
            machines = objGeneralDba.GetAllMachines();

            machines.Add(filterMachineLabel);
            filterMachine.ItemsSource   = machines;
            filterMachine.SelectedValue = filterMachineLabel;

            List <string> notifCategories = Enum.GetNames(typeof(NotificationData.errorCategory)).ToList();

            notifCategories.Add(filterCategoryLabel);
            filterCategory.ItemsSource   = notifCategories;
            filterCategory.SelectedValue = filterCategoryLabel;
            filterStartDate.Value        = CommonMethods.AbsoluteStart(DateTime.Now);
            filterEndDate.Value          = CommonMethods.AbsoluteEnd(DateTime.Now);
            FilterGrid();
        }