private void Maj_Inversion(object sender, CheckBox chb_bras, TextBox tb_val, int position) { if (tb_val == sender) { GestionObjet.Conv_chb_string(1, 0, chb_bras, tb_val.Text.Substring(position, 1)); } if (chb_bras == sender) { GestionObjet.String_replace(tb_val, GestionObjet.Conv_chb_string(1, 1, chb_bras), position); } }
//---------------------------------------------------------------------- //Affiche et rend active tout les controls //---------------------------------------------------------------------- private void SuperUserToolStripMenuItem_Click(object sender, EventArgs e) { List <Control> control_T = new List <Control>(); control_T = GestionObjet.Crealist(this); control_T.AddRange(GestionObjet.Trouver_controls_dun_type(this, typeof(Button))); foreach (Control ct in control_T) { ct.Enabled = true; } b_lancer_serveur.Enabled = true; b_Connection.Enabled = true; }
private void Init_tooltip() { this.tooltip = new ToolTip() { InitialDelay = 100, ReshowDelay = 100, AutoPopDelay = 5000, IsBalloon = true }; foreach (TTextBox tb in GestionObjet.Trouver_controls_dun_type(this.Gb_Principal, typeof(TTextBox))) { tooltip.SetToolTip(tb, tb.GeneText_ToolTip()); } }
/// <summary> /// Génére le tooltip et ses textes /// </summary> private void Init_tooltip() { // Create the ToolTip and associate with the Form container. tooltip = new ToolTip() { // Set up the delays for the ToolTip. InitialDelay = 100, ReshowDelay = 100, AutoPopDelay = 5000, //Forme de balon IsBalloon = true }; foreach (TTextBox tb in GestionObjet.Trouver_controls_dun_type(this.Gb_Principal, typeof(TTextBox))) { tooltip.SetToolTip(tb, tb.GeneText_ToolTip()); } }