Ejemplo n.º 1
0
        public WebClientControl AddNewSniper()
        {
            WebClientControl sniper = new WebClientControl();

            sniper.Initilize(this);
            return(sniper);
        }
Ejemplo n.º 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++;
        }