Пример #1
0
        public WebClientControl AddNewSniper()
        {
            WebClientControl sniper = new WebClientControl();

            sniper.Initilize(this);
            return(sniper);
        }
Пример #2
0
        private void btnAddSniper_Click(object sender, EventArgs e)
        {
            WebClientControl webControl = SniperController.AddNewSniper();

            tabWebSnipers.TabPages.Add(tabIndexKey.ToString(), tabIndexKey.ToString());
            tabWebSnipers.TabPages[tabIndexKey.ToString()].Controls.Add(webControl);

            webControl.Dock = DockStyle.Fill;
            webControl.WebBind();

            tabIndexKey++;
        }