private void TakvimClick(object sender, EventArgs e) { if (sender is Panel) { foreach (Control ctrl in (sender as Panel).Controls) { if (ctrl is ArsLabel && (ctrl as ArsLabel).ArTag == 99) { DateTime tarih = new DateTime(Convert.ToInt32((ctrl as ArsLabel).Text.Split('.')[2]), Convert.ToInt32((ctrl as ArsLabel).Text.Split('.')[1]), Convert.ToInt32((ctrl as ArsLabel).Text.Split('.')[0])).AddDays(1); //if (tarih > DateTime.Now) //{ if (ArsLibrary.appForm != null) { RezervasyonSaatSecim RezervasyonSaatSecimForm = new RezervasyonSaatSecim(); RezervasyonSaatSecimForm.rezOps = 1; RezervasyonSaatSecimForm.tarih = (ctrl as ArsLabel).Text; ArsLibrary.appForm.AddChildForm(RezervasyonSaatSecimForm, (ctrl as ArsLabel).Text, new Size(0, 0), null); } //} //else //{ // focusPanel = sender as Panel; // MiRezervasyonlariGoruntule_Click(sender, null); //} } } } }
private void MiOpsiyonla_Click(object sender, EventArgs e) { if (focusPanel != null) { foreach (Control ctrl in focusPanel.Controls) { if (ctrl is ArsLabel && (ctrl as ArsLabel).ArTag == 99) { if (ArsLibrary.appForm != null) { RezervasyonSaatSecim RezervasyonSaatSecimForm = new RezervasyonSaatSecim(); RezervasyonSaatSecimForm.rezOps = 2; RezervasyonSaatSecimForm.tarih = (ctrl as ArsLabel).Text; ArsLibrary.appForm.AddChildForm(RezervasyonSaatSecimForm, (ctrl as ArsLabel).Text, new Size(0, 0), null); } break; } } } }
private void MiGirisKaydiEkle_Click(object sender, EventArgs e) { if (focusPanel != null) { foreach (Control ctrl in focusPanel.Controls) { if (ctrl is ArsLabel && (ctrl as ArsLabel).ArTag == 99) { if (ArsLibrary.appForm != null) { RezervasyonSaatSecim RezervasyonSaatSecimForm = new RezervasyonSaatSecim(); RezervasyonSaatSecimForm.rezOps = 1; RezervasyonSaatSecimForm.tarih = (ctrl as ArsLabel).Text; RezervasyonSaatSecimForm.girisKaydi = true; RezervasyonSaatSecimForm.girisBilgiSor = GIRIS_BILGI_SOR.Checked; ArsLibrary.appForm.AddChildForm(RezervasyonSaatSecimForm, (ctrl as ArsLabel).Text, new Size(0, 0), null); } break; } } } }