private void DataListControl_Load(object sender, EventArgs e) { switch (dataSeed) { case InvoiceSeed invoicesSeed: { gcDataList.DataSource = InvoiceSeed.SeedList(); break; } case ClientSeed clientsSeed: { gcDataList.DataSource = ClientSeed.SeedList(); break; } case ShipperSeed shippersSeed: { gcDataList.DataSource = ShipperSeed.SeedList(); break; } case PartnerSeed partnersSeed: { gcDataList.DataSource = PartnerSeed.SeedList(); break; } default: break; } }
private void InvoiceListForm_Load(object sender, EventArgs e) { gCInvoiceList.DataSource = InvoiceSeed.SeedList(); parent.ChangeVisibility_ActionListRibbonGroup(true); parent.ChangeEnableOption_bbCancelCommand(false); parent.ChangeEnableOption_bbSaveCommand(false); parent.ChangeEnableOption_bbCreateShipperCommand(false); parent.ChangeEnableOption_Filter(true); parent.ChangeEnableOption_LoginAsUser(false); }