private void miInvoices_Click(object sender, RoutedEventArgs e) { Views.InvoicesWindow window = new InvoicesWindow(); this.CpCurrentScreenContent.Content = window.Content; ResetMenuButtons(); this.miInvoices.Background = Brushes.LightSlateGray; this.LblContentTitle.Content = "Invoices"; }
private void ViewInvoicesButton_Click(object sender, RoutedEventArgs e) { InvoicesWindow invoicesWindow = new InvoicesWindow(); invoicesWindow.ShowDialog(); }
private void OpenInvoicesWindow() { var invoicesWindow = new InvoicesWindow(); invoicesWindow.Show(); }