Ejemplo n.º 1
0
 private void TVQuestions_BeforeSelect(object sender, TreeViewCancelEventArgs e)
 {
     RTBText.Clear();
     CB1.Checked = CB2.Checked = CB3.Checked = CB4.Checked = false;
     RTB1.Clear();
     RTB2.Clear();
     RTB3.Clear();
     RTB4.Clear();
 }
Ejemplo n.º 2
0
 private void TVQuestions_BeforeSelect(object sender, TreeViewCancelEventArgs e)
 {
     RTBText.Clear();
     CB1.Checked = CB2.Checked = CB3.Checked = CB4.Checked = false;
     RTB1.Clear();
     RTB2.Clear();
     RTB3.Clear();
     RTB4.Clear();
     if (TVQuestions.SelectedNode != null)
     {
         TVQuestions.SelectedNode.BackColor = Color.Transparent;
         TVQuestions.SelectedNode.ForeColor = SystemColors.ControlText;
     }
 }
Ejemplo n.º 3
0
        private void Form1_Click(object sender, EventArgs e)
        {
            Button tempButton = (Button)sender;

            bits.Text = tempButton.Name;
            if (tempButton.BackColor == Color.DarkGreen)
            {
                RTB2.Clear();
                RTB2.Text += "Tré \n";
            }
            if (tempButton.BackColor == Color.LightGreen)
            {
                RTB2.Clear();
                RTB2.Text += "grass \n";
            }

            if (tempButton.BackColor == Color.FromArgb(69, 36, 14) || tempButton.BackColor == Color.FromArgb(78, 47, 18) || tempButton.BackColor == Color.FromArgb(86, 51, 20))
            {
                RTB2.Clear();
                RTB2.Text += "Lítill kofi \n";
            }
            if (tempButton.BackColor == Color.Black)
            {
                RTB2.Clear();
                RTB2.Text += "Þú \n";
            }
            if (tempButton.BackColor == Color.Black && tempButton.Text == "gamall")
            {
                RTB2.Clear();
                RTB2.Text += "Gamall kall sem virðist vera í vanda \n";
            }
            if (tempButton.BackColor == Color.Blue)
            {
                RTB2.Clear();
                RTB2.Text += "vatn \n";
            }
            if (tempButton.BackColor == Color.Brown)
            {
                RTB2.Clear();
                RTB2.Text += "Brú \n";
            }
        }