Esempio n. 1
0
        public Companies()
        {
            InitializeComponent();

            List <CompanyCar> cars = new List <CompanyCar>();

            cars.Add(new CompanyCar("Audi A1"));
            cars.Add(new CompanyCar("BMW1"));
            cars.Add(new CompanyCar("VW"));

            company1 = new CompanyData("Hanseaticsoft GmbH", true, new CompanyAddress("Frankenstraße", 12), cars);
            List <CompanyData> companyList = new List <CompanyData>();

            companyList.Add(company1);
            listViewCompany.Items.Add(companyList);

            EditCompany entry = new EditCompany(company1, this);

            entry.ValueChanged += new EditCompany.ValueChangedHandler(entryValueChanged);
        }
Esempio n. 2
0
        private void Edit_Company(object sender, RoutedEventArgs e)
        {
            EditCompany edit = new EditCompany(company1, this);

            edit.Show();
        }