//Событие нажатия на заголовок таблицы
        private void dataGrid_Subscriber_MouseColumnHeaderClick(object sender, MouseColumnHeaderEventArgs e)
        {
            switch (e.ColumnIndex)
            {
            case 0:
                SortSubscriberByID();
                break;

            case 1:
                SortSubscriberByLastName();
                break;

            case 2:
                SortSubscriberByFirstName();
                break;

            case 3:
                SortSubscriberByMiddleName();
                break;

            case 4:
                SortSubscriberByAddress();
                break;
            }
        }
Beispiel #2
0
        //Событие нажатия на заголовок таблицы
        private void dataGrid_Subscription_MouseColumnHeaderClick(object sender, MouseColumnHeaderEventArgs e)
        {
            switch (e.ColumnIndex)
            {
            case 0:
                SortSubscriptionByID();
                break;

            case 1:
                SortSubscriptionBySubscriberID();
                break;

            case 2:
                SortSubscriptionByEditionStr();
                break;

            case 3:
                SortSubscriptionByDateCreate();
                break;

            case 4:
                SortSubscriptionByDateExpiration();
                break;
            }
        }
Beispiel #3
0
        //Событие нажатия на заголовок таблицы
        private void dataGrid_MainTable_MouseColumnHeaderClick(object sender, MouseColumnHeaderEventArgs e)
        {
            switch (e.ColumnIndex)
            {
            case 0:
                SortMainTableByID();
                break;

            case 1:
                SortMainTableByOperationStr();
                break;

            case 2:
                SortMainTableByMailingStr();
                break;

            case 3:
                SortMainTableBySubscriptionID();
                break;

            case 4:
                SortMainTableBySenderAddress();
                break;

            case 5:
                SortMainTableByRecipientAddress();
                break;

            case 6:
                SortMainTableByWeightPackage();
                break;

            case 7:
                SortMainTableByDateOperation();
                break;

            case 8:
                SortMainTableByPrice();
                break;
            }
        }