Exemplo n.º 1
0
        internal void Populate(NamingTypes type, string script)
        {
            Script      = script;
            CurrentType = type;
            SetText(script);

            if (CurrentType == NamingTypes.Entity)
            {
                labelHeader.Text      = "Script to assign name to entity from table";
                labelDescription.Text = "         public string GetName(Table table)";
            }
            else if (CurrentType == NamingTypes.Property)
            {
                labelHeader.Text      = "Script to assign name to property from column";
                labelDescription.Text = "         public string GetName(Column column)";
            }
            else
            {
                throw new NotImplementedException("Not handled yet: " + CurrentType.ToString());
            }

            if (!IntelliSenseIsInitialized)
            {
                SetupIntelliSense();
            }
        }
Exemplo n.º 2
0
        internal void Populate(NamingTypes type, string script)
        {
            Script = script;
            CurrentType = type;
            SetText(script);

            if (CurrentType == NamingTypes.Entity)
            {
                labelHeader.Text = "Script to assign name to entity from table";
                labelDescription.Text = "         public string GetName(Table table)";
            }
            else if (CurrentType == NamingTypes.Property)
            {
                labelHeader.Text = "Script to assign name to property from column";
                labelDescription.Text = "         public string GetName(Column column)";
            }
            else
                throw new NotImplementedException("Not handled yet: " + CurrentType.ToString());

            if (!IntelliSenseIsInitialized)
                SetupIntelliSense();
        }