コード例 #1
0
        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;
            }
        }
コード例 #2
0
        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);
        }