Beispiel #1
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            Sifre             = new TheSifre();
            Sifre.ID          = Guid.NewGuid();
            Sifre.Title       = txtBaslik.Text;
            Sifre.Username    = txtKullaniciAdi.Text;
            Sifre.Password    = txtSifre.Text;
            Sifre.Description = txtAciklama.Text;

            this.DialogResult = DialogResult.OK;
            this.Close();
        }
Beispiel #2
0
        private void btnTheSifreDuzenle_Click(object sender, EventArgs e)
        {
            TreeNode selected = trvKategoriler.SelectedNode;
            TheSifre sifre    = (TheSifre)selected.Tag;

            TheSifreDuzenleForm frm = new TheSifreDuzenleForm();

            frm.Sifre = sifre;

            if (frm.ShowDialog() == DialogResult.OK)
            {
                LoadKategorilerSifreler(container);
            }
        }
Beispiel #3
0
        private void btnTtheSifreSil_Click(object sender, EventArgs e)
        {
            TreeNode selected = trvKategoriler.SelectedNode;
            TheSifre sifre    = (TheSifre)selected.Tag;

            TreeNode selectedParent = selected.Parent;
            Kategori kategori       = (Kategori)selectedParent.Tag;

            DialogResult result =
                MessageBox.Show(sifre.Title + " isimli şifre silinsin mi?", "Şifre Sil", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1);

            if (result == DialogResult.Yes)
            {
                kategori.TheSifres.Remove(sifre);
                LoadKategorilerSifreler(container);
            }
        }