public AccelerometerDataRepresentingForm() { InitializeComponent(); strLogFilename = ""; sensorTypeToShow = SensorsHistoryShowing.Accelerometer; }
//public FunctionRepresentationForm(FunctionDefinitionTypes theDefinitionType = FunctionDefinitionTypes.analytic, string description = "") public AccelerometerDataRepresentingForm(string logFileName, SensorsHistoryShowing sensorType = SensorsHistoryShowing.Accelerometer) { InitializeComponent(); if (logFileName == "") { return; } if (!File.Exists(logFileName)) { var result = MessageBox.Show("Cant find actual log data file: " + logFileName, "Cant find a file", MessageBoxButtons.OK, MessageBoxIcon.Warning); this.Close(); } strLogFilename = logFileName; sensorTypeToShow = sensorType; }