private void ms_Main_InvoicePaymentReport_Click(object sender, EventArgs e) { if (ParmView == null || ParmView.IsDisposed) { ParmView = new ParametersView(); ParmView.StartPosition = FormStartPosition.CenterScreen; ParmView.reportType = QueueItemType.PaymentInvoice; ParmView.Show(); } ParmView.BringToFront(); }
/// <summary> /// Shows the parameters of the application in a new window. /// </summary> private static void ShowParameters() { ParametersView view = new ParametersView(); view.Show(); }