Example #1
0
 static void Main()
 {
     PersonData personData = new PersonData();
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new Forms.FormMain(ref personData));
 }
Example #2
0
 public FormMain(ref PersonData personData)
     : this()
 {
     if (personData == null)
     {
         throw new ArgumentNullException("Идентификатор \"personData\"" +
             "переданный в конструктор объекта класса FormMain" +
             "содержит нулевую ссылку");
     }
     else
     {
         this.personData = personData;
     }
 }