public Form1(Pacient myPac) { InitializeComponent(); initIt.Name = myPac.Name; initIt.Secname = myPac.Secname; initIt.Surname = myPac.Surname; }
static void Main() { Pacient myp = new Pacient(); myp.Name = "Ivan"; myp.pacg = 0; myp.Secname = "Ivanivich"; myp.Surname = "Ivanov"; myp.Age = 45; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1(myp)); }