public static void GetSingleTableFromDataBase(MPPO.Protocol.Interface.IMdiDataForm<DataRow> targetform,string command,string conStr,string tablename)
 {
     var data = MPPO.DataAccess.BasicOledbQuery.DebugGetTable(command, conStr,tablename);
     targetform.DataSource = data;
     targetform.DataMember = tablename;
     targetform.Caption = tablename;
 }
 public MdiSchmidtResultForm(MPPO.Protocol.Interface.IMdiDataForm<DataRow> dataform)
 {
     InitializeComponent();
     this.DataForm = dataform;
     this.MdiParent = dataform.MdiParent;
     this.MdiIndex = dataform.MdiIndex;
     this.Caption = dataform.Caption;
 }
 public static void ExportTableToExcel(MPPO.Protocol.Interface.IDataTable<DataRow> targettable, string filepath,Protocol.Structure.WaitObject wt)
 {
     try
     {
         MPPO.DataAccess.BasicExcelOperation.ExportToExcel(targettable, filepath, wt);
     }
     catch (Exception ex)
     {
         throw ex;
     }
     finally
     {
         GC.Collect();
     }
 }
 public static void CopyViewDataFromData(MPPO.Protocol.Interface.IMdiDataForm<DataRow> targetform,MPPO.Protocol.Interface.IDataTable<DataRow> data)
 {
     targetform.DataSource = data.Copy();
     targetform.Caption = data.Name;
 }
 private void registerDataForm(MPPO.Protocol.Interface.IMdiDataForm<DataRow> dataform)
 {
     if(this.ActiveDataForm!=null)
     {
         this.ActiveDataForm.MethodEnd -= showCostTime;
         this.ActiveDataForm.StateChanged -= showState;
     }
     this.stlCurrentForm.Caption = dataform.Text;
     this.stlFormState.Caption = dataform.State;
     this.ActiveDataForm = dataform;
     dataform.MethodEnd += showCostTime;
     dataform.StateChanged += showState;
 }