-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathForm2.cs
More file actions
80 lines (69 loc) · 1.92 KB
/
Form2.cs
File metadata and controls
80 lines (69 loc) · 1.92 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace UDA_server_communication
{
public partial class Form2 : Form
{
private string Myval;
public string check1;
public string MyVal
{
get { return Myval; }
set { Myval = value; }
}
public Form2()
{
InitializeComponent();
button1.Enabled = false;
}
private void button1_Click(object sender, EventArgs e)
{
this.Hide();
var fr1 = new Form1(MyVal, 1);
fr1.Closed += (s, args) => this.Close();
fr1.Show();
}
//Alberto: secondo me c'è il controllo radio-group che ti permette di avere una callback sola che dice quale dei 5 è selezionato.
// Walter: Ho raggruppato i Radio-Buttons in un'unica groupbox invece che avere dei moduli separati
private void Form2_Load(object sender, EventArgs e)
{
}
private void radioButton1_CheckedChanged(object sender, EventArgs e)
{
if (radioButton1.Checked == true)
{
MyVal = "1";
button1.Enabled = true;
}
if (btn2.Checked == true)
{
MyVal = "2";
}
if (btn3.Checked == true)
{
MyVal = "3";
}
if (btn4.Checked == true)
{
MyVal = "4";
}
if (btn5.Checked == true)
{
MyVal = "5";
}
}
private void radioButton2_CheckedChanged(object sender, EventArgs e)
{
}
private void groupBox1_Enter(object sender, EventArgs e)
{
}
}
}