public static void ShowReportsDialog(LogisticData db) { var win = new ReportsWindow(); win.db = db; win.ShowDialog(); }
private void ReportsButton_Click(object sender, RoutedEventArgs e) { ReportsWindow.ShowReportsDialog(db); }