Exemplo n.º 1
0
        private void tabForms_SelectedIndexChanged(object sender,
                                                   EventArgs e)
        {
            List <Form> F_inPage = new List <Form>();

            foreach (TabPage tp in tabForms.TabPages)
            {
                if (!(tp == tabForms.SelectedTab))
                {
                    F_inPage = est.Forms[tp];
                    Estensione es = GetEst(F_inPage[F_inPage.Count - 1]);
                    es.nAttivato = 1;
                }
            }

            F_inPage = est.Forms[tabForms.SelectedTab];
            F_inPage[F_inPage.Count - 1].Select();
        }
Exemplo n.º 2
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.est        = new Estensione(this.components);
     this.SuspendLayout();
     //
     // FormBase
     //
     this.est.SetAggiornaForm(this, "");
     this.ClientSize      = new System.Drawing.Size(284, 261);
     this.ControlBox      = false;
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "FormBase";
     this.est.SetNomeForm(this, "");
     this.Load += new System.EventHandler(this.FormBase_Load);
     this.ResumeLayout(false);
 }