private void button1_Click(object sender, EventArgs e)
        {
            radGridView1.Visible = true;
            NdeshjaBLL obj = new NdeshjaBLL();

            radGridView1.DataSource = obj.ShfaqListenENdeshjeve();
        }
示例#2
0
        private void button2_Click(object sender, EventArgs e)
        {
            Ndeshja ndeshja = new Ndeshja();

            ndeshja.NdeshjaID = int.Parse(txtShkruajID.Text.Trim());
            NdeshjaBLL dali = new NdeshjaBLL();

            dali.GjejNdeshjenMeID(ndeshja);
            dtData.Text               = ndeshja.dataNdeshjes.ToString();
            txtSezoni.Text            = ndeshja.Sezoni;
            txtRaportiAmbulances.Text = ndeshja.RaportiAmbulances;
            txtRaportiPolicis.Text    = ndeshja.RaportiPolicor;
            panel2.Visible            = true;
        }
示例#3
0
        private void button1_Click(object sender, EventArgs e)
        {
            var rez = MessageBox.Show("A jeni te sigurt qe deshironi te editoni", "Kujdes", MessageBoxButtons.YesNo);

            if (rez == DialogResult.Yes)
            {
                Ndeshja ndeshja = new Ndeshja();
                ndeshja.dataNdeshjes      = DateTime.Parse(dtData.Text.Trim());
                ndeshja.Sezoni            = txtSezoni.Text.Trim();
                ndeshja.RaportiAmbulances = txtRaportiAmbulances.Text.Trim();
                ndeshja.RaportiPolicor    = txtRaportiPolicis.Text.Trim();
                ndeshja.NdeshjaID         = int.Parse(txtShkruajID.Text);
                NdeshjaBLL ndeshjaDAL = new NdeshjaBLL();
                ndeshjaDAL.Edito(ndeshja);
                dtData.Text = txtSezoni.Text = txtRaportiAmbulances.Text = txtRaportiPolicis.Text = "";
            }
        }
示例#4
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (txtSezoni.Text == " " || txtRaportiAmbulances.Text == "" || txtRaportiPolicis.Text == "")
     {
         MessageBox.Show("Plotesoni te gjitha fushat");
     }
     else
     {
         Ndeshja ndeshja = new Ndeshja();
         ndeshja.dataNdeshjes      = DateTime.Parse(dtData.Text.Trim());
         ndeshja.Sezoni            = txtSezoni.Text.Trim();
         ndeshja.RaportiAmbulances = txtRaportiAmbulances.Text.Trim();
         ndeshja.RaportiPolicor    = txtRaportiPolicis.Text.Trim();
         NdeshjaBLL ndeshjaDAL = new NdeshjaBLL();
         ndeshjaDAL.Regjistro(ndeshja);
         dtData.Text = txtSezoni.Text = txtRaportiAmbulances.Text = txtRaportiPolicis.Text = "";
         MessageBox.Show("U regjistrua me sukses");
     }
 }