private void FormMain_KeyDown(object sender, KeyEventArgs e) { if ((e.KeyData & (Keys.Control | Keys.Shift | Keys.W)) == (Keys.Control | Keys.Shift | Keys.W)) { ConfigWriter.WriteOmni(_waypoints.Nodes); } }
private void mnuPrintPreview_Click(object sender, System.EventArgs e) { ConfigWriter.WriteOmni(_waypoints.Nodes); /*try * { * if (_activeControl is IPrintableUserControl) * { * printPreviewDialog.Document = ((IPrintableUserControl)_activeControl).PrintDocument; * printPreviewDialog.ShowDialog(this); * } * } * catch (Exception ex) * { * MessageBox.Show(this, "Unable to print. " + ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); * }*/ }