예제 #1
0
        private void entitiesButton_Click(object sender, EventArgs e)
        {
            IEnvironmentContainer ec = EnvironmentContainer.Current;

            IEntity[] entities           = ec.EntityTypes;
            IEntity[] selection          = GetEntityTypes();
            ChecklistForm <IEntity> dial =
                new ChecklistForm <IEntity>(entities, selection);

            if (dial.ShowDialog() == DialogResult.OK)
            {
                m_EntityTypes = dial.Selection;
            }

            dial.Dispose();
        }
예제 #2
0
        private void tablesButton_Click(object sender, EventArgs e)
        {
            // If this is the first time the button has been clicked, load up current associations
            if (m_DefaultTables == null)
            {
                m_DefaultTables = m_Edit.DefaultTables;
            }

            // Grab the complete table list
            IEnvironmentContainer ec = EnvironmentContainer.Current;

            ITable[] tables = ec.Tables;

            ChecklistForm <ITable> dial = new ChecklistForm <ITable>(tables, m_DefaultTables);

            if (dial.ShowDialog() == DialogResult.OK)
            {
                m_DefaultTables = dial.Selection;
            }

            dial.Dispose();
        }