Esempio n. 1
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            progressBar1.Value = progressBar1.Value + 1;
            //if (progressBar1.Value > 99)
            {
                progressBar1.Value   = 0;
                progressBar1.Visible = false;
                timer1.Enabled       = false;

                bool isValid = ValidateSearch();

                if (isValid == true)
                {
                    filterService          = new SearchAndFilterService();
                    filterService.SCID     = cmb_specice_category.SelectedIndex;
                    filterService.SSID     = cmb_specice_specifics.SelectedIndex;
                    filterService.SID      = cmb_specice_stage.SelectedIndex;
                    filterService.DCID     = cmb_density_category.SelectedIndex;
                    filterService.qunatity = Convert.ToInt32(numeric_qunaity_txt.Value);

                    DataTable dt = filterService.FilterSlides();
                    grd_slides_for_checkout.DataSource = dt;
                }
            }
        }
Esempio n. 2
0
 public Lending()
 {
     InitializeComponent();
     searchAndFIlterService = new SearchAndFilterService();
 }
Esempio n. 3
0
 public Selection()
 {
     InitializeComponent();
     searchAndFilterService = new SearchAndFilterService(); //initliaise
     checkinCheckoutService = new CheckinCheckoutService();
 }