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