Example #1
0
        public StorageProcedure(XCollection <SQLInboundChanel> channels)
        {
            InitializeComponent();
            channelSet = channels;
            channel    = new SQLInboundChanel();
            type       = "Add";
            this.Text  = "Add Storage Procedure";

            parameterPage = new ParameterPage(channel);
            statementPage = new StatementPage(channel);
            GetSPNameSet(channels);

            Initialization();
        }
Example #2
0
        public StorageProcedure(XCollection <SQLInboundChanel> channels, int index)
        {
            InitializeComponent();
            channelSet = channels;
            channel    = channels[index];
            type       = "Edit";
            this.Text  = "Edit Storage Procedure";

            parameterPage = new ParameterPage(channel);
            statementPage = new StatementPage(channel);
            GetSPNameSet(channels);

            ShowInformation();
        }
Example #3
0
        /// <summary>
        /// User for copy!
        /// </summary>
        /// <param name="channels"></param>
        /// <param name="ft"></param>
        public StorageProcedure(XCollection <SQLOutboundChanel> channels, SQLOutboundChanel ch)
        {
            InitializeComponent();
            channelSet          = channels;
            channel             = ch.Clone();
            channel.Rule.RuleID = ch.Rule.RuleID;
            type      = "Edit";
            this.Text = "Edit Storage Procedure";

            parameterPage = new ParameterPage(channel);
            statementPage = new StatementPage(channel);
            GetSPNameSet(channels);
            channel.SPName += "_Copy";

            InitializationCopy();

            //ShowInformation();
        }