Пример #1
0
        private void NotDuzenle_FormClosing(object sender, FormClosingEventArgs e)
        {
            Yonetim ynt = (Yonetim)Application.OpenForms["Yonetim"];

            ynt.Text = "Yönetim";
            ynt.NotlariGetir();
        }
Пример #2
0
        private void ParolaDogrula(string kullanici, string sifre)
        {
            AlfaDBEntities ade = new AlfaDBEntities();

            var kullanici_islemi = ade.Kullanicis
                                   .FirstOrDefault(u => u.KullaniciAdi == kullanici &&
                                                   u.KullaniciSifre == sifre);

            var kullanici_adi   = txtKullaniciAdi.Text;
            var kullanici_sifre = txtParola.Text;

            if (kullanici_adi != string.Empty && kullanici_sifre != string.Empty)
            {
                if (kullanici_islemi != null)
                {
                    Yonetim yonetim = new Yonetim();
                    yonetim.Show();
                    this.Hide();
                }
                else
                {
                    XtraMessageBox.Show("Kullanıcı Adı Ya da Parola Yanlış", "HATA");
                }
            }
            else
            {
                XtraMessageBox.Show("Kullanıcı Adı Ya da Parola Alanı Boş Bırakılamaz!", "HATA");
            }
        }
Пример #3
0
        private void YeniNot_FormClosing(object sender, FormClosingEventArgs e)
        {
            Yonetim ynt    = (Yonetim)Application.OpenForms["Yonetim"];
            var     baslik = txtNotBaslik.Text;
            var     icerik = txtNot.Text;

            if (baslik != string.Empty && icerik != string.Empty)
            {
                SplashScreenManager.ShowForm(typeof(WaitForm1));
                SplashScreenManager.Default.SetWaitFormCaption("Ekleniyor..");
                SplashScreenManager.Default.SetWaitFormDescription("Not Ekleniyor..");
                Thread.Sleep(600);
                SplashScreenManager.CloseForm();
                ynt.Text = "Yönetim";
                ynt.NotlariGetir();
            }
        }