示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            MLetovi f = new MLetovi();

            f.Tip = 0;

            if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                this.let = f.let;
                DataManager.VezaLetAerodromPolazni(f.let, f.let.polazniaerodrom);
                DataManager.VezaLetAerodromOdredisni(f.let, f.let.odredisniaerodrom);
                DataManager.VezaLetAerodromAvion(f.let, f.let.avion);
                PopuniListView();
            }
        }
示例#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);

            Let let = DataManager.GetLet(id);

            MLetovi f = new MLetovi();

            f.Tip = 1;
            f.let = let;

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