示例#1
0
        private void dataGridView1_DoubleClick_1(object sender, EventArgs e)
        {
            try
            {
                DataGridViewRow dr = dataGridView1.SelectedRows[0];   //ID selektiranog retka
                odabir = dr.Cells[0].Value.ToString();
                File.WriteAllText("IDRetka.txt", odabir);
                File.WriteAllText("Baza.txt", comboBoxOdabir.Text);

                FormUnos formUnos = new FormUnos();
                formUnos.Show();
                this.Close();
            }
            catch
            {
                MessageBox.Show("ERROR!");
            }
            finally
            {
            }
        }
示例#2
0
 private void buttonUnos_Click(object sender, EventArgs e)
 {
     FormUnos formUnos = new FormUnos();
     formUnos.Show();
 }