Exemple #1
0
 private void tableReadToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (m_FormTableRead == null)
     {
         m_FormTableRead = new FormTableRead();
         m_FormTableRead.EventGetTable += m_FormTableRead_EventGetTable;
         m_FormTableRead.EventMessage  += m_FormTableRead_EventMessage;
     }
     if (m_FormTableRead.IsDisposed)
     {
         m_FormTableRead = new FormTableRead();
         m_FormTableRead.EventGetTable += m_FormTableRead_EventGetTable;
         m_FormTableRead.EventMessage  += m_FormTableRead_EventMessage;
     }
     m_FormTableRead.Show(dockPanel, DockState.DockLeft);
 }
Exemple #2
0
        void m_FormTableRead_EventGetTable(FormTableRead sender, DataTable resultdt)
        {
            if (resultdt == null)
            {
                return;
            }
            if (dockPanel.InvokeRequired)
            {
                this.Invoke(new DelegateReadSAPTable(m_FormTableRead_EventGetTable), new object[] { sender, resultdt });
            }
            else
            {
                var localdt = resultdt;
                m_FormSAPDataTable            = new FormSAPDataTable();
                m_FormSAPDataTable.DataTable  = localdt;
                m_FormSAPDataTable.TableName  = sender.TableName;
                m_FormSAPDataTable.SystemName = sender.SystemName;
                m_FormSAPDataTable.DockHandler.Show(this.dockPanel, DockState.Document);

                ShowLogWindow();
            }
        }