private void MakeNewCompany()
        {
            CurrentFirmaData = CommonTools.EntitiesActions.FirmaActions.GetNewFirma(db);
            db.AddTofirmen(CurrentFirmaData);


            EventFirmaChanged();
            LoadFirma();
        }
        public static firma GetNewFirma(SteinbachEntities db)
        {
            firma i = new firma();


            i.istFirma       = 3;
            i.IstKunde       = 1;
            i.KdNr           = (int)db.firmen.Max(id => id.id) + 10001;
            i.name           = "Neue Firma - KdNr. : " + i.KdNr.ToString();
            i.istVerarbeitet = 1;

            i.created     = DateTime.Now;
            i.AngelegtAm  = DateTime.Now;
            i.AngelegtVon = Session.User.id;
            db.AddTofirmen(i);
            return(i);
        }