Exemple #1
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            frmPartnerTrazi partner = new frmPartnerTrazi();

            partner.ShowDialog();

            if (Properties.Settings.Default.id_partner != "")
            {
                FillPartner(Properties.Settings.Default.id_partner);
                edit = true;
                EnableDisable(true);
            }
        }
Exemple #2
0
 private void pictureBox2_Click(object sender, EventArgs e)
 {
     sifarnici.frmPartnerTrazi partnerTrazi = new sifarnici.frmPartnerTrazi();
     partnerTrazi.ShowDialog();
     if (RESORT.Properties.Settings.Default.id_partner != "")
     {
         DataSet partner = new DataSet();
         partner = RemoteDB.select("SELECT id_partner,ime_tvrtke FROM partners WHERE id_partner ='" + RESORT.Properties.Settings.Default.id_partner + "'", "partners");
         if (partner.Tables[0].Rows.Count > 0)
         {
             txtPartner.Text = partner.Tables[0].Rows[0]["id_partner"].ToString();
         }
         else
         {
             MessageBox.Show("Upisana šifra ne postoji.", "Greška");
         }
     }
 }