private void History_Button_Click(object sender, RoutedEventArgs e) { PurchaseHistoryWindow purchaseHistoryWindow = new PurchaseHistoryWindow(this, Name); purchaseHistoryWindow.Show(); this.Close(); }
public MainMenuWindow(PurchaseHistoryWindow purchaseHistoryWindow, string name) { InitializeComponent(); Name = name; txtName.Text = Name; }