private void BtnEdit_Click(object sender, RoutedEventArgs e) { EnterData enterData = new EnterData(); enterData.DataContext = ModifiedCompanyList; enterData.Show(); }
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()); * } * }*/ }
private void Button1_Click(object sender, RoutedEventArgs e) { EnterData enterData = new EnterData(); enterData.Show(); }