Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            MAerodromi f = new MAerodromi();

            f.Tip = 0;
            if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                PopuniListView();
            }
        }
Beispiel #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (listView1.SelectedItems.Count == 0)
            {
                return;
            }

            int id = Int32.Parse(listView1.SelectedItems[0].SubItems[0].Text);

            Aerodrom aer = DataManager.GetAerodrom(id);

            MAerodromi f = new MAerodromi();

            f.Tip      = 1;
            f.aerodrom = aer;

            if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                PopuniListView();
            }
        }