Пример #1
0
        private void button_Click(object sender, EventArgs e)
        {
            girilicekHesap = (sifreTut)(sender as Button).Tag;
            Timer timer = new Timer();

            if (!Settings.Default.MakroKUllan)
            {
                timer.Interval = 1000;
            }
            else
            {
                if (Settings.Default.ilkGiris2)
                {
                    if (MessageBox.Show("Mousenin tekerlek tuşuna basarak giriş yapın\nTekrar gösterilsin mi uyarı?", "", MessageBoxButtons.YesNoCancel) == DialogResult.No)
                    {
                        Settings.Default.ilkGiris2 = false;
                    }
                }
            }
            _form.WindowState = FormWindowState.Minimized;
            timer.Tick       += new EventHandler(this.SifreGir);
            timer.Start();
            islemBitinceSilinecekler.Add(timer);
            Process.Start(uygulamaYolu);
        }
Пример #2
0
 public FrmSifreGuncelle(sifreTut sifreTut)
 {
     InitializeComponent();
     _sifreTut     = sifreTut;
     txtNick.Text  = sifreTut.KullaniciAdi;
     txtSifre.Text = sifreTut.Sifre;
     txtNot.Text   = sifreTut.Not;
     this.id       = sifreTut.id;
 }
Пример #3
0
        private void btnDuzenle_Click(object sender, EventArgs e)
        {
            sifreTut         btnDEleman       = (sifreTut)((sender as Button).Tag);
            FrmSifreGuncelle frmSifreGuncelle = new FrmSifreGuncelle(btnDEleman);

            frmSifreGuncelle.ShowDialog();
            panel.Controls.Clear();
            FrmAnasayfa frmAnasayfa = (FrmAnasayfa)Application.OpenForms["FrmAnasayfa"];

            frmAnasayfa.listele();
        }
        private void buttonEkle_Click(object sender, EventArgs e)
        {
            DB db = new DB();

            try
            {
                string   sifre    = Sifreleme.sifrele(textBoxSifre.Text);
                sifreTut sifreTut = new sifreTut {
                    Sifre = sifre, KullaniciAdi = textBoxNick.Text, Not = txtNot.Text
                };
                db.Add(sifreTut);
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message);
            }

            FrmAnasayfa frmAnasayfa = (FrmAnasayfa)Application.OpenForms["FrmAnasayfa"];

            panel.Controls.Clear();
            frmAnasayfa.listele();
            this.Close();
        }
Пример #5
0
        void sifreEkle(int top, int left, sifreTut sifreTut)
        {
            int      fark       = 5;
            TextBox  nick       = new TextBox();
            TextBox  sifre      = new TextBox();
            TextBox  not        = new TextBox();
            CheckBox check      = new CheckBox();
            Button   button     = new Button();
            Button   btnsil     = new Button();
            Button   btnDuzenle = new Button();

            panel.Controls.Add(nick);
            panel.Controls.Add(sifre);
            panel.Controls.Add(not);
            panel.Controls.Add(check);
            panel.Controls.Add(button);
            panel.Controls.Add(btnsil);
            panel.Controls.Add(btnDuzenle);
            //
            //nick
            //
            nick.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(162)));
            nick.Size        = new System.Drawing.Size(100, 34);
            nick.Top         = top;
            nick.Left        = left;
            nick.BorderStyle = BorderStyle.None;
            nick.ReadOnly    = true;
            nick.Text        = sifreTut.KullaniciAdi;
            nick.Click      += new EventHandler(this.textBox_Click);
            nick.Tag         = check;
            //
            //sifre
            //
            sifre.Font         = new System.Drawing.Font("Microsoft Sans Serif", 9.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(162)));
            sifre.Size         = new System.Drawing.Size(80, 34);
            sifre.Top          = top;
            sifre.Left         = nick.Width + nick.Left + fark;
            sifre.BorderStyle  = BorderStyle.None;
            sifre.ReadOnly     = true;
            sifre.Text         = sifreTut.Sifre;
            sifre.PasswordChar = '*';
            sifre.Click       += new EventHandler(this.textBox_Click);
            sifre.Tag          = check;
            //
            //check
            //
            check.Width           = 20;
            check.Height          = 15;
            check.Top             = top;
            check.Left            = sifre.Width + sifre.Left + fark;
            check.Tag             = sifre;
            check.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
            //
            //not
            //
            not.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(162)));
            not.Size        = new System.Drawing.Size(80, 34);
            not.Top         = top;
            not.Left        = check.Width + check.Left + fark;
            not.BorderStyle = BorderStyle.None;
            not.ReadOnly    = true;
            not.Text        = sifreTut.Not;
            //
            //button
            //
            button.Top    = top;
            button.Left   = not.Width + not.Left + fark;
            button.Click += new EventHandler(this.button_Click);
            button.Text   = "aç";
            button.Size   = new Size(30, 20);
            button.Tag    = sifreTut;
            //
            //btnsil
            //
            btnsil.Top    = top;
            btnsil.Left   = button.Width + button.Left + fark;
            btnsil.Click += new EventHandler(this.btnSil_Click);
            btnsil.Text   = "sil";
            btnsil.Size   = new Size(30, 20);
            btnsil.Tag    = sifreTut.id;
            //
            //btnDuzenle
            //
            btnDuzenle.Top    = top;
            btnDuzenle.Left   = btnsil.Width + btnsil.Left + fark;
            btnDuzenle.Click += new EventHandler(this.btnDuzenle_Click);
            btnDuzenle.Text   = "düzenle";
            btnDuzenle.Size   = new Size(30, 20);
            btnDuzenle.Tag    = sifreTut;
        }