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; } } }
public Lending() { InitializeComponent(); searchAndFIlterService = new SearchAndFilterService(); }
public Selection() { InitializeComponent(); searchAndFilterService = new SearchAndFilterService(); //initliaise checkinCheckoutService = new CheckinCheckoutService(); }