protected DataTable Rebind(RefreshBindingSourceEventArgs e)
 {
     refreshBindingSource(this, e);
     if (dataGridView.Controls.Count > 0)
     {
         dataGridView.Controls[0].Enabled = true;
     }
     if (dataGridView.Controls.Count > 1)
     {
         dataGridView.Controls[1].Enabled = true;
     }
     return(e.DataTable);
 }
Пример #2
0
        protected override System.Data.DataTable Rebind()
        {
            RefreshBindingSourceEventArgs e;

            switch (showState)
            {
            case ShowState.ShowFuture:
                e = new RefreshBindingSourceEventArgs(Form1.SelectedFuture, groupByPrice);
                break;

            case ShowState.ShowAll:
            default:
                e = new RefreshBindingSourceEventArgs(null, groupByPrice);
                break;
            }

            return(Rebind(e));
        }
Пример #3
0
        //protected override bool UsingTotalCost
        //{
        //    get
        //    {
        //        return Utilities.UsingTaxLots && (Utilities.OptionPriceDiscrepancyCount == 0);
        //    }
        //}
        protected override DataTable  Rebind()
        {
            RefreshBindingSourceEventArgs e;

            switch (showState)
            {
            case ShowState.ShowOption:
                e = new RefreshBindingSourceEventArgs(Form1.SelectedUnderlying, Form1.SelectedOption);
                break;

            case ShowState.ShowStock:
                e = new RefreshBindingSourceEventArgs(Form1.SelectedUnderlying, null);
                break;

            case ShowState.ShowAll:
            default:
                e = new RefreshBindingSourceEventArgs(null, null);
                break;
            }

            return(Rebind(e));
        }