Exemple #1
0
        private void btnKycu_Click(object sender, EventArgs e)
        {
            LidhjaDb objLidhja = new LidhjaDb();
            DataSet  _ds       = objLidhja.Lexo("Select * from Perdoruesi where Perdoruesi='" + txtPerdoruesi.Text + "' and Fjalekalimi='" + txtPerdoruesi.Text + "'");

            if (objLidhja.mesazhi == "")
            {
                if (_ds.Tables[0].Rows.Count > 0)
                {
                    parametrat._PerdoruesiID = int.Parse(_ds.Tables[0].Rows[0]["PerdoruesiID"].ToString());
                    this.Hide();

                    objform1.ShowDialog();
                }
                else
                {
                    MessageBox.Show("Perdoruesi ose Fjalekalimi eshte gabim");
                }
            }
            else
            {
                MessageBox.Show(objLidhja.mesazhi);
            }
        }