Example #1
0
        void DgvModellserien_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (this.mySelectedSerie == null)
            {
                return;
            }
            var msv = new ModellserieView(this.mySelectedSerie);

            msv.Show(this);
        }
        void OpenSerie()
        {
            if (this.myCurrentMaschinenserie == null)
            {
                return;
            }
            var msv = new ModellserieView(this.myCurrentMaschinenserie);

            msv.ShowDialog(this);
            if (msv.DialogResult == DialogResult.OK)
            {
                this.InitializeData();
            }
        }
        void CreateSerie()
        {
            if (this.myCurrentHersteller == null)
            {
                MetroMessageBox.Show(this, "Das funktioniert nur, wenn Du links in der Baumstruktur einen Hersteller ausgewählt hast.");
                return;
            }
            var neueSerie = ModelManager.SharedItemsService.AddMaschinenSerie();

            neueSerie.HerstellerId = this.myCurrentHersteller.UID;
            this.InitializeData();
            var msv = new ModellserieView(neueSerie);

            msv.ShowDialog(this);
        }