private async void FormLoaded(object sender, EventArgs e) { Looper = new frmLooper(this); Looper.Show(this); await Sets.Refresh(); await Areas.Refresh(); Looper.Hide(); cmbArea.DataSource = Areas.Items; cmbSet.DataSource = Sets.Items; cmbArea.DisplayMember = "Name"; cmbArea.ValueMember = "AreaId"; cmbSet.DisplayMember = "Name"; cmbSet.ValueMember = "SetId"; cmbArea.SelectedIndex = cmbArea.FindStringExact(_this.AreaName); cmbSet.SelectedIndex = cmbSet.FindStringExact(_this.SetName); InitiailizeButtonContextMenu(); if (mode > 1) { GetImage(); GetBoms(); GetParts(); GetComponents(); } #if (DEBUG == true) pbQrCode.Visible = true; #endif files.Initialize(); }
private async void Reload() { looper.Show(this); await Keeper.Refresh(); source.DataSource = Keeper.Items; dgItems.DataSource = source; source.ResetBindings(false); looper.Hide(); page = 1; }
private async void frmResourceFinder_Load(object sender, EventArgs e) { Areas = new AreasKeeper(); await Areas.Refresh(); cmbArea.DataSource = Areas.Items; cmbArea.ValueMember = "AreaId"; cmbArea.DisplayMember = "Name"; Sets = new SetsKeeper(); await Sets.Refresh(); Places = new PlacesKeeper(); await Places.Refresh(null, 'a'); }