public ProgramOluşturForm(UyeBul uyeBulForm)
        {
            uyeBul         = uyeBulForm;
            fromUyeBulForm = true;
            InitializeComponent();
            string[] fazlaUzun;
            fazlaUzunLabel.Text = "";


            hesaplamalar        = uyeBul.pModel.hesaplamalar.Replace(';', ' ').Split('|');
            labelGuncelle1.Text = hesaplamalar[0];
            labelGuncelle2.Text = hesaplamalar[1];
            if (hesaplamalar[2].Length > 50)
            {
                fazlaUzun           = hesaplamalar[2].Split(',');
                labelGuncelle3.Text = fazlaUzun[0];
                fazlaUzunLabel.Text = fazlaUzun[1];
            }
            else
            {
                labelGuncelle3.Text = hesaplamalar[2];
            }


            string[] splittedFinalProgram;
            splittedFinalProgram = uyeBul.pModel.Program.Split('|');

            if (splittedFinalProgram.Length < 7)
            {
                MessageBox.Show("Bu üyenin programı bulunamamıştır! Yeni Programını oluşturmak için lütfen \"OK\" basiniz!", "Hata");
                pazartesiRchTextBox.Text  = "";
                saliRichTextBox.Text      = "";
                carsambaRichTextBox.Text  = "";
                persembeRİchTextBox.Text  = "";
                cumaRichTextBox.Text      = "";
                cumartesiRichTextBox.Text = "";
                pazaProgramRichBox.Text   = "";
                return;
            }

            pazartesiRchTextBox.Text  = splittedFinalProgram[0];
            saliRichTextBox.Text      = splittedFinalProgram[1];
            carsambaRichTextBox.Text  = splittedFinalProgram[2];
            persembeRİchTextBox.Text  = splittedFinalProgram[3];
            cumaRichTextBox.Text      = splittedFinalProgram[4];
            cumartesiRichTextBox.Text = splittedFinalProgram[5];
            pazaProgramRichBox.Text   = splittedFinalProgram[6];
        }
        /// <summary>
        /// PersonModel ve UyeBul form pass edilen bir constructor. Formdaki ilgili başlık kısımlarının
        /// üye bilgileri ile değişimi işlemi, global personmodelin p yi alması, timerın başlatılması
        /// ve designerda yapılan tasarımın hayata geçirilme işlemi burada yapılıyor.
        /// </summary>
        /// <param name="p"> UyeBulda bulunan üye buraya pass ediliyor. </param>
        /// <param name="bulForm"> UyeBul form kendisini bu constructora pass eder. </param>
        public UyeGirisiForm(PersonModel p, UyeBul bulForm)
        {
            bul = bulForm;

            InitializeComponent();

            isimLabel.Text     = p.Adı;
            soyisimLabel.Text  = p.Soyadı;
            tcLabel.Text       = p.id;
            telefonLabel.Text  = p.Telefon;
            emailLabel.Text    = p.EmailAdress;
            cinsiyetLabel.Text = p.Cinsiyet;
            kiloLabel.Text     = p.Kilo;
            boyLabel.Text      = p.Boy;
            yasLabel.Text      = p.Yas;
            saatLabel.Text     = "";

            pmodel = p;
            StartTimer();
        }
Example #3
0
 /// <summary>
 /// UyeBul formundan erişilen constructor. hangi değişkeni 1 yapılır. Ve görsel tasarım için InitializeComponent()
 /// çağırılır.
 /// </summary>
 /// <param name="uyeBul"> UyeBUl formu çağırırken kendini pass eder. </param>
 public LoginForm(UyeBul uyeBul)
 {
     bul   = uyeBul;
     hangi = 1;
     InitializeComponent();
 }