예제 #1
0
 private void button_goruntule_Click(object sender, EventArgs e)
 {
     if (alan != "" || site != "" || id != "" || mail != "")
     {
         new_save yeni  = new new_save();
         TextBox  talan = yeni.Controls["text_alan"] as TextBox;
         talan.Text = alan;
         TextBox tsite = yeni.Controls["text_site"] as TextBox;
         tsite.Text = site;
         TextBox tmail = yeni.Controls["text_mail"] as TextBox;
         tmail.Text = mail;
         TextBox tid = yeni.Controls["text_id"] as TextBox;
         tid.Text = id;
         TextBox tnick = yeni.Controls["text_nick"] as TextBox;
         tnick.Text = nick;
         TextBox tparola = yeni.Controls["text_parola"] as TextBox;
         tparola.Text = parola;
         TextBox tmd5 = yeni.Controls["text_md5"] as TextBox;
         tmd5.Text = md5_pass;
         TextBox tolusturma = yeni.Controls["text_olusturma"] as TextBox;
         tolusturma.Text = olusturma;
         TextBox tson = yeni.Controls["text_son"] as TextBox;
         tson.Text = son;
         TextBox tek = yeni.Controls["text_ek"] as TextBox;
         tek.Text = ek;
         Button güncelle = yeni.Controls["button_güncelle"] as Button;
         güncelle.Enabled = true;
         yeni.ShowDialog();
     }
     else
     {
         MessageBox.Show("Güncellemek için kayıt seçin.", "PassCus", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }
예제 #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            new_save ac        = new new_save();
            Button   kaydet    = ac.Controls["button_kaydet"] as Button;
            TextBox  olusturma = ac.Controls["text_olusturma"] as TextBox;
            TextBox  md5text   = ac.Controls["text_md5"] as TextBox;

            olusturma.Text = DateTime.Now.ToString();
            md5text.Text   = "d41d8cd98f00b204e9800998ecf8427e";
            kaydet.Enabled = true;
            ac.ShowDialog();
        }
예제 #3
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                alan      = dataGridView1.SelectedRows[0].Cells[0].Value.ToString();
                site      = dataGridView1.SelectedRows[0].Cells[1].Value.ToString();
                mail      = dataGridView1.SelectedRows[0].Cells[2].Value.ToString();
                id        = dataGridView1.SelectedRows[0].Cells[3].Value.ToString();
                nick      = dataGridView1.SelectedRows[0].Cells[4].Value.ToString();
                parola    = dataGridView1.SelectedRows[0].Cells[5].Value.ToString();
                md5_pass  = dataGridView1.SelectedRows[0].Cells[6].Value.ToString();
                olusturma = dataGridView1.SelectedRows[0].Cells[7].Value.ToString();
                son       = dataGridView1.SelectedRows[0].Cells[8].Value.ToString();
                ek        = dataGridView1.SelectedRows[0].Cells[9].Value.ToString();


                if (alan != "" || site != "" || id != "" || mail != "")
                {
                    new_save yeni  = new new_save();
                    TextBox  talan = yeni.Controls["text_alan"] as TextBox;
                    talan.Text = alan;
                    TextBox tsite = yeni.Controls["text_site"] as TextBox;
                    tsite.Text = site;
                    TextBox tmail = yeni.Controls["text_mail"] as TextBox;
                    tmail.Text = mail;
                    TextBox tid = yeni.Controls["text_id"] as TextBox;
                    tid.Text = id;
                    TextBox tnick = yeni.Controls["text_nick"] as TextBox;
                    tnick.Text = nick;
                    TextBox tparola = yeni.Controls["text_parola"] as TextBox;
                    tparola.Text = parola;
                    TextBox tmd5 = yeni.Controls["text_md5"] as TextBox;
                    tmd5.Text = md5_pass;
                    TextBox tolusturma = yeni.Controls["text_olusturma"] as TextBox;
                    tolusturma.Text = olusturma;
                    TextBox tson = yeni.Controls["text_son"] as TextBox;
                    tson.Text = son;
                    TextBox tek = yeni.Controls["text_ek"] as TextBox;
                    tek.Text = ek;
                    Button güncelle = yeni.Controls["button_güncelle"] as Button;
                    güncelle.Enabled = true;
                    Button sil = yeni.Controls["button_sil"] as Button;
                    sil.Enabled = true;
                    yeni.ShowDialog();
                }
            }
            catch { }
        }