Пример #1
0
        public Form1()
        {
            InitializeComponent();

            John = new Guy() { Name = "John", Cash = 3000 };
            Bob = new Guy { Name = "Bob", Cash = 5000 };
        }
Пример #2
0
 public Form1()
 {
     InitializeComponent();
     guy1 = new Guy() { Name = "John", Cash = 3000 };
     guy2 = new Guy() { Name = "Bob", Cash = 5000 };
     UpdateScreen();
 }