Administrador.wfAdminitrador.NuevaBotonDesplegable C# (CSharp) Метод

NuevaBotonDesplegable() публичный Метод

public NuevaBotonDesplegable ( String Nombre, Form CargarForm, int Nivel ) : void
Nombre String
CargarForm System.Windows.Forms.Form
Nivel int
Результат void
        public void NuevaBotonDesplegable(String Nombre, Form CargarForm, int Nivel)
        {
            Titulo();
            tsdListaDesplegable = new ToolStripDropDownButton();
            tsdListaDesplegable.Name = Nivel.ToString();
            tsdListaDesplegable.Text = "  " + Nombre;
            tsdListaDesplegable.Tag = CargarForm;
            tsdListaDesplegable.Font = new Font("Century Gothic", 12);
            tsdListaDesplegable.TextAlign = ContentAlignment.MiddleLeft;
            tsdListaDesplegable.Click += new EventHandler(CargarFormulario);
            tsdListaDesplegable.ImageScaling = ToolStripItemImageScaling.None;
            tsdListaDesplegable.ImageAlign = ContentAlignment.MiddleLeft;
            tsdListaDesplegable.ForeColor = Color.LightGray;
            if (iPrivi <= Nivel)
            {
                MenuAdmin.Items.Add(tsdListaDesplegable);
            }
        }

Same methods

wfAdminitrador::NuevaBotonDesplegable ( String Nombre, Form CargarForm, int Nivel, Bitmap Imagen = null ) : void
wfAdminitrador::NuevaBotonDesplegable ( String Nombre, int Nivel, Bitmap Imagen = null ) : void