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