private void Customer_Click(object sender, RoutedEventArgs e) { var win = new Edit_Customer_information(); win.Width = Width; win.Height = Height; win.Title = "Bike Ride"; win.Owner = this; win.Show(); Visibility = Visibility.Collapsed; }
private void Button_Click(object sender, RoutedEventArgs e) { var win = new Edit_Customer_information(); win.WindowStartupLocation = this.WindowStartupLocation; this.Close(); //collabsed the Window win.Show(); }