Exemplo n.º 1
0
 public Form1(Pacient myPac)
 {
     InitializeComponent();
     initIt.Name    = myPac.Name;
     initIt.Secname = myPac.Secname;
     initIt.Surname = myPac.Surname;
 }
Exemplo n.º 2
0
        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));
        }