/ . : /. . 5.2 5.4.
.5.3
. 5.3.
. 5.4
:
namespace KlassVorm
{
public class cl_a
{
protected string s1;
protected int i;
public cl_a()
{
Form2 f2; //
f2=new Form2();
f2.ShowDialog();
s1=f2.textBox1.Text; //
i=Convert.ToInt32(f2.textBox2.Text);
} } }
namespace KlassVorm
{
public class cl_b: KlassVorm.cl_a
{
protected double x,z;
public cl_b()
{
Form3 f3; //
f3=new Form3();
f3.ShowDialog();
x=Convert.ToDouble(f3.textBox1.Text);
}
public void compute()
{
z=i*x;
Form3 f3; //
f3=new Form3();
f3.textBox1.Text=s1;
f3.textBox2.Text=" "+z;
// ,
f3.ShowDialog();
} } }
. .
. 5.2.
private void button3_Click(object sender, System.EventArgs e)
{
Close();
}
private void button1_Click(object sender, System.EventArgs e)
{ // ,
c1=new cl_b();
}
private void button2_Click(object sender, System.EventArgs e)
{ // ,
c1.compute();
}
cl_b c1;
1. .
2. - Windows?
C# Microsoft Visual Studio 2005. , , !
1. .. C++/C# Visual Studio.NET 2003. .: , 2004. 352 .
2. . C#: . .: . 2003.- 512 .
3. .. Visual Studio.NET 2003. .: , 2003. 688 .
4. . #. .: "", 2004. 752 .
5. ., . # . .: , 2005. 472 .
6. # : 2 . -. . - , 2005.
7. . #. .: - , 2005. 879 .
C#.
..
01741 11.05.2000
60´90 1/16
. . . 200 .
103055, , ., . 3