예제 #1
0
파일: FormMain.cs 프로젝트: antropov13/IIB1
        private void buttonRaumDetail_Click(object sender, EventArgs e)
        {
            //FormRaum - Details Raum
            item = listBoxRaum.Items[listBoxRaum.SelectedIndex] as listBoxRaumItems;
            FormRaum formRaum = new FormRaum(item.Raum, feuerloescherList, this);

            formRaum.ShowDialog();
        }
예제 #2
0
파일: FormMain.cs 프로젝트: antropov13/IIB1
        public void raumErstellen(Raum raum)
        {
            //Neuer Raum hinzufügen
            raeume.Add(raum);
            comboBoxTypRaum.SelectedItem = raum.TypRaume;
            listBoxUpdate();
            listBoxRaum.SelectedIndex = listBoxRaum.Items.Count - 1;
            item = listBoxRaum.Items[listBoxRaum.SelectedIndex] as listBoxRaumItems;
            FormRaum formRaum = new FormRaum(item.Raum, feuerloescherList, this);

            formRaum.ShowDialog();
        }
예제 #3
0
 public FormFeuerloescher(Feuerloescher f, Raum _raum, BindingList <Feuerloescher> _feuerloescherList, FormRaum _parent)
 {
     InitializeComponent();
     this.raum = _raum;
     this.feuerloescherList = _feuerloescherList;
     this.Owner             = _parent;
     this.feuerloescher     = f;
     fuelleBoxen();
 }