void bWriteClick(object sender, EventArgs e) { FrmUp = new FormEditAccount(1,Acc1); FrmUp.ShowDialog(); //if //Acc1 = new Account(tbWebRes.Text, tbName.Text, tbEmail.Text, tbNote.Text, tbPassword.Text, tbPassword2.Text ); //sqlconn.NewRecord(acc1.; //label1.Text=acc1.readacc(); //acc1.WriteAccToDB(); //if (Acc1.checkCorrectAcc()) //{ // sqlconn.newRecord(Acc1); // RefreshDg(); //} }
void bEditClick(object sender, EventArgs e) { fillAccount(); FrmUp = new FormEditAccount(2,Acc1); FrmUp.ShowDialog(); }