private void btnPreView_Click(object sender, RoutedEventArgs e) { _print = PreviewPrint.GetInstancia(); _print.printFilter(dgUsers.ItemsSource); _print.ShowDialog(); }
public static PreviewPrint GetInstancia() { if (_instancia == null) { _instancia = new PreviewPrint(); } return(_instancia); }
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { _instancia = null; }