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;
            }
        }
Beispiel #2
0
        private void PartnerListForm_Load(object sender, EventArgs e)
        {
            gcPartnerList.DataSource = PartnerSeed.SeedList();

            parent.ChangeVisibility_ActionListRibbonGroup(false);

            parent.ChangeEnableOption_bbMarkAsSentInvoice(false);
            parent.ChangeEnableOption_bbPayInvoice(false);
            parent.ChangeEnableOption_bbStornoInvoice(false);
            parent.ChangeEnableOption_bbCancelInvoice(false);
            parent.ChangeEnableOption_bbEditDataInvoice(false);
            parent.ChangeEnableOption_LoginAsUser(false);

            parent.ChangeEnableOption_bbOpenClientInvoice(false);
            parent.ChangeEnableOption_bbAnnounceInvoice(false);

            parent.ChangeEnableOption_bbCancelCommand(false);
            parent.ChangeEnableOption_bbSaveCommand(false);
            parent.ChangeEnableOption_bbCreateShipperCommand(false);

            parent.ChangeEnableOption_Filter(false);
        }