private void OpenToolStripButton_Click(object sender, EventArgs e) { try { Loger.Msg("private void OpenToolStripButton_Click(object sender, EventArgs e)"); using OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.InitialDirectory = Directory.GetCurrentDirectory(); openFileDialog.Filter = "csv files (*.csv)|*.csv"; openFileDialog.RestoreDirectory = true; if (openFileDialog.ShowDialog() == DialogResult.OK) { string filePath = openFileDialog.FileName; EventGraph = EventGraphReader.ReadFromCSV(filePath); } } catch (Exception ex) { Loger.Msg(ex); errorStripLabel.Text = ex.Message; } }