Ejemplo n.º 1
0
            private void UpdateText()
            {
                switch (Table)
                {
                case Table.MasterDesign:
                {
                    MasterDesign.Column textColumn = MasterDesign.GetColumn(TextColumnName);
                    MasterDesign.UpdateColumn(textColumn, TextBox.Text);
                    OriginalText = TextBox.Text;
                }
                break;

                case Table.DomainDesigns:
                {
                    DomainDesigns.Column textColumn = DomainDesigns.GetColumn(TextColumnName);
                    DomainDesigns.UpdateColumn(textColumn, TextBox.Text, Domain);
                    OriginalText = TextBox.Text;
                }
                break;
                }
            }
Ejemplo n.º 2
0
            private void UpdateFlag()
            {
                switch (Table)
                {
                case Table.MasterDesign:
                {
                    MasterDesign.Column flagColumn = MasterDesign.GetColumn(FlagColumnName);
                    MasterDesign.UpdateColumn(flagColumn, CheckBox.Checked);
                    OriginalFlag = CheckBox.Checked;
                }
                break;

                case Table.DomainDesigns:
                {
                    DomainDesigns.Column flagColumn = DomainDesigns.GetColumn(FlagColumnName);
                    DomainDesigns.UpdateColumn(flagColumn, CheckBox.Checked, Domain);
                    OriginalFlag = CheckBox.Checked;
                }
                break;
                }
            }