Esempio n. 1
0
 private void ConfigureSuperGrid()
 {
     MembershipSupergrid.ApplyProjectDefaults();
     MembershipSupergrid.IdentifyingColumn              = OBJECT;
     MembershipSupergrid.PrimaryGrid.MultiSelect        = false;
     MembershipSupergrid.DisplayNumberOfItems           = true;
     MembershipSupergrid.PrimaryGrid.DefaultRowHeight   = 30;
     MembershipSupergrid.PrimaryGrid.MouseEditMode      = MouseEditMode.SingleClick;
     MembershipSupergrid.PrimaryGrid.ColumnAutoSizeMode = ColumnAutoSizeMode.AllCells;
 }
Esempio n. 2
0
        private DataTable LoadDataTask()
        {
            try
            {
                IsRefreshing = true;

                MembershipSupergrid.SuspendLayout();

                return(GetDataTable());
            }
            catch (Exception ex)
            {
                Trace.WriteError("()", Trace.GetMethodName(), CLASSNAME, ex);
                return(null);
            }
        }
Esempio n. 3
0
 private void OnContinuationFunction(Task <DataTable> t)
 {
     try
     {
         _guiThread.Invoke(() =>
         {
             _loadDataResult = t.Result;
             MembershipSupergrid.SuspendLayout();
             MembershipSupergrid.PrimaryGrid.Footer.Text = " ";
             MembershipSupergrid.RefreshData(_loadDataResult);
             MembershipSupergrid.ResumeLayout(false);
             MembershipSupergrid.PerformLayout();
         });
     }
     catch (Exception ex)
     {
         Trace.WriteError("()", nameof(OnContinuationFunction), CLASSNAME, ex);
     }
     finally
     {
         IsRefreshing = false;
     }
 }