コード例 #1
0
        public void OnProperty(IObjectStream @object)
        {
            while (@object != null && @object.Type == eTypeObjectStream.Continue)
            {
                @object = @object.Prev;
            }

            if (@object == null)
            {
                return;
            }
            BaseForm form = null;

            if (((ObjectSequence)@object).Acquisition != null)
            {
                form = new AcquisitionPropertieForm(Document, @object);
            }
            else if (((ObjectSequence)@object).Table != null)
            {
                form = new TableEditForm(Document, ((ObjectSequence)@object).Table);
            }
            if (form != null)
            {
                form.ShowDialog( );
            }
        }
コード例 #2
0
ファイル: DiagramEditFrame.cs プロジェクト: janproch/datadmin
 private void AlterCurrentTable()
 {
     if (m_selectedTables.Count == 1 && m_conn != null && m_conn.Connection != null)
     {
         m_movingOrigin = null;
         if (TableEditForm.Run(m_conn.CloneSource(), m_selectedTables[0].Table, new AlterTableEditorPars()))
         {
             ReloadData();
             m_modified = true;
         }
         //MainWindow.Instance.OpenContent(new TableEditFrame(m_selectedTable.Table, m_conn.Connection.Dialect, m_conn.GetTable(m_selectedTable.Table.FullName)));
     }
 }