示例#1
0
 private void TestGridTab_LoadGrid(TabPage page, SynTableData data, TableDataFrame grid)
 {
     if (tabControl1.SelectedTab == page)
     {
         if (AvailableCompareInfo)
         {
             var table = m_synItem.GetGridData(null, null, data, true);
             if (table != null)
             {
                 grid.TabularData = table;
             }
             else
             {
                 page.Controls.ShowProgress(true);
                 m_loadGrid.BeginInvoke(data, m_invoker.CreateInvokeCallback(LoadedGrid), null);
             }
         }
         else
         {
             tabControl1.SelectedTab = tabSourceAndTarget;
         }
     }
 }