Bonjour,
Ce code ne se lance que quand je clique sur le bouton, se que je souhaite éviter puisque cela recharge tous. Je veux que quand je clique sur info,erreur,avertissement, il montre directement ce que je demande.
Pour le moment je suis oblige de selectionner un autre radio button et de recliquer sur start.
Voici mon Code
Merci d'avance !
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54 PluginLoader loader = new PluginLoader("Plugin"); public void aller(string nomPage) { _Plugins = new Dictionary<string, IPlugin>(); IEnumerable<IPlugin> plugins = loader.Plugins; foreach (IPlugin plugin in plugins) { if (nomPage == plugin.Name()) if (tous.Checked == true) { { richTextBox1.Text = ""; richTextBox1.SelectionColor = Color.Green; richTextBox1.SelectedText += plugin.Info(); richTextBox1.SelectionColor = Color.Yellow; richTextBox1.SelectedText += "\n" + plugin.Avertissement(); richTextBox1.SelectionColor = Color.Red; richTextBox1.SelectedText += "\n" + plugin.Erreur(); } } else if (erreur.Checked == true) { { richTextBox1.Text = ""; richTextBox1.SelectionColor = Color.Red; richTextBox1.SelectedText += plugin.Erreur(); } } else if (avertissement.Checked == true) { { richTextBox1.Text = ""; richTextBox1.SelectionColor = Color.Yellow; richTextBox1.SelectedText += plugin.Avertissement(); } } else if (information.Checked == true) { { richTextBox1.Text = ""; richTextBox1.SelectionColor = Color.Green; richTextBox1.SelectedText += plugin.Info(); } } } } private void start_Click(object sender, EventArgs e) { aller(tabControl1.SelectedTab.Text); }
Partager