Exemple #1
0
        private void BtnEdit_Click(object sender, RoutedEventArgs e)
        {
            EnterData enterData = new EnterData();

            enterData.DataContext = ModifiedCompanyList;
            enterData.Show();
        }
Exemple #2
0
        private void Btn1_Click(object sender, RoutedEventArgs e)
        {
            btn1.DataContext = btn1;
            // btn1.Content = Companies[0].Name;
            EnterData enterData = new EnterData();

            enterData.Show();
            this.Close();


            /* if(Companies[0].IsMainCompany == true)
             * {
             * foreach(Address address in Companies[0].CompanyAddress)
             *   {
             *       MessageBox.Show(address.FullAddress());
             *   }
             * foreach(Car car in Companies[0].Cars)
             *   {
             *       MessageBox.Show(car.GetCarDetails());
             *   }
             * }*/
        }
Exemple #3
0
        private void Button1_Click(object sender, RoutedEventArgs e)
        {
            EnterData enterData = new EnterData();

            enterData.Show();
        }