Exemple #1
0
 private void tsmiThingsKMFilialo_Click(object sender, EventArgs e)
 {
     using (TvarkytiKMFilialo frmKMFilialo = new TvarkytiKMFilialo())
     {
         frmKMFilialo.ShowDialog();
     }
 }
Exemple #2
0
        private void tsmiKMFilialo_Click(object sender, EventArgs e)
        {
            int pasirase;

            try
            { pasirase = Convert.ToInt32(cmbPasiraseKM.SelectedValue); }
            catch
            { pasirase = -1; }

            using (TvarkytiKMFilialo frmKMFilialo = new TvarkytiKMFilialo())
            {
                frmKMFilialo.ShowDialog();
            }

            setup_cmbPasiraseKM();
            if (pasirase != -1)
            {
                cmbPasiraseKM.SelectedValue = pasirase;
            }
            else
            {
                cmbPasiraseKM.SelectedIndex = -1;
            }
        }