static void Main() { var loginForm = FormDependencyResolver.Resolve <frmLogin>(); Control.CheckForIllegalCrossThreadCalls = false; Application.EnableVisualStyles(); //Application.SetCompatibleTextRenderingDefault(false); Application.Run(loginForm); }
private void timer1_Tick(object sender, EventArgs e) { this.Opacity -= .04; if (this.Opacity <= 0) { timer1.Stop(); var form = FormDependencyResolver.Resolve <frmAccountLogin>(); form.Show(); } }
private void btnShowDonateProcess_Click(object sender, EventArgs e) { if (dataGridView1.CurrentRow == null || dataGridView1.CurrentRow.Index == -1) { MessageBox.Show("Lütfen bir satır seçiniz..."); return; } string FatherNo = dataGridView1.CurrentRow.Cells["FatherTC"].Value.ToString(); var familyDonationProcess = (frmFamilyDonationProcess)FormDependencyResolver.Resolve <frmFamilyDonationProcess>(); familyDonationProcess.familyId = _familyManager.GetFamilyByFatherTCNo(FatherNo).Id; familyDonationProcess.Show(); }
private void btnEdit_Click(object sender, EventArgs e) { if (dataGridView.CurrentRow == null || dataGridView.CurrentRow.Index == -1) { return; } var currentDonationId = (int)dataGridView.CurrentRow.Cells["donationId"].Value; Form editDonate = FormDependencyResolver.Resolve <frmEditDonate>(); ((frmEditDonate)editDonate).donationId = currentDonationId; if (editDonate.ShowDialog() == DialogResult.Yes) { this.Dispose(); } }
private void btnEditPerson_Click(object sender, EventArgs e) { if (dataGridView1.CurrentRow == null || dataGridView1.CurrentRow.Index == -1) { MessageBox.Show("Lütfen bir satır seçiniz..."); return; } var editPerson = (frmEditPerson)FormDependencyResolver.Resolve <frmEditPerson>(); editPerson.fatherTCNo = dataGridView1.CurrentRow.Cells["FatherTC"].Value.ToString(); editPerson.personTCNo = dataGridView1.CurrentRow.Cells["TC"].Value.ToString(); if (editPerson.ShowDialog() == DialogResult.Yes) { allPerson.Clear(); FillAllBase(); } }
private void btnLogin_Click(object sender, EventArgs e) { string username = txtUsername.Text; string password = txtPassword.Text; bool isExists = _adminManager.AdminIsExistsByUsernameAndPassword(username, password); if (isExists) { MessageBox.Show("Giriş Başarılı:)", "", MessageBoxButtons.OK, MessageBoxIcon.Information); var frmDashboard = FormDependencyResolver.Resolve <frmDashboard>(); frmDashboard.Show(); this.Hide(); } else { MessageBox.Show("Giriş Başarısız!", "Hatalı Giriş", MessageBoxButtons.OK, MessageBoxIcon.Hand); } }
private void txtTcNo_TextChanged(object sender, EventArgs e) { string personTCNo = txtTcNo.Text; if (personTCNo.Length == 11) { bool isExists = _personManager.PersonExistsByTCNo(personTCNo); if (!isExists) { MessageBox.Show("Böyle bir personel bulunmamaktadır...", "", MessageBoxButtons.OK, MessageBoxIcon.Hand); return; } int familyId = _personManager.GetByTCNo(personTCNo).FamilyId; bool hasDonation = _familyManager.FamilyHasDonationInRangeDayByFamilyId(familyId, 365); if (hasDonation) { DialogResult result = MessageBox.Show("Son 1 yıl içerisinde bu aile yardım almıştır. Aileye ait yardım kayıtlarını görmek ister misiniz?", "Bilgi", MessageBoxButtons.YesNo, MessageBoxIcon.Information); if (result == DialogResult.Yes) { var donationProcess = (frmFamilyDonationProcess)FormDependencyResolver.Resolve <frmFamilyDonationProcess>(); //this base will be refactor!! donationProcess.familyId = _personManager.GetByTCNo(personTCNo).FamilyId; donationProcess.Show(); } } btnCreate.Enabled = true; } }
private void btnSettings_Click(object sender, EventArgs e) { FormDependencyResolver.Resolve <frmEditPassword>().ShowDialog(); }
private void btnHousing_Click(object sender, EventArgs e) { FormDependencyResolver.Resolve <frmHousing>().ShowDialog(); }
private void btnEducational_Click(object sender, EventArgs e) { FormDependencyResolver.Resolve <frmEducationalStatus>().ShowDialog(); }
private void btnSocialSecurity_Click(object sender, EventArgs e) { FormDependencyResolver.Resolve <frmSocialSecurity>().ShowDialog(); }
private void btnNewDonate_Click(object sender, EventArgs e) { FormDependencyResolver.Resolve <frmDonate>().ShowDialog(); }
private void btnEditFamily_Click_1(object sender, EventArgs e) { FormDependencyResolver.Resolve <frmEditFamily>().Show(); }
private void btnShowAllFamily_Click(object sender, EventArgs e) { FormDependencyResolver.Resolve <frmAllFamily>().Show(); }
private void btnFamily_Click(object sender, EventArgs e) { FormDependencyResolver.Resolve <frmFamilyDashboard>().Show(); }
private void btnDonation_Click(object sender, EventArgs e) { FormDependencyResolver.Resolve <frmDonateDashboard>().Show(); }
private void btnNewPerson_Click(object sender, EventArgs e) { FormDependencyResolver.Resolve <frmNewPerson>().Show(); }