private async void UC_BulkInward_Load(object sender, System.EventArgs e) { CourierName.Items.Clear(); CourierName.Items.AddRange(await ShipmentLibrary.GetCourierNamesAsync()); inwardSingleShipmentBindingSource.DataSource = await ShipmentLibrary.GetInwardShipmentsAsync(); dg.ClearSelection(); }
private async void NewGodown_Click(object sender, System.EventArgs e) { using (FormNewCourierName f = new FormNewCourierName()) { if (f.ShowDialog() == DialogResult.OK) { CourierName.Items.Clear(); CourierName.Items.AddRange(await ShipmentLibrary.GetCourierNamesAsync()); } } }