public void openFolderWithSrcForInsertMarker() { FolderBrowserDialog fbd = new FolderBrowserDialog(); fbd.SelectedPath = @"C:\"; fbd.ShowNewFolderButton = false; if (fbd.ShowDialog() == DialogResult.OK) { try { InsertMarker insertMarker = new InsertMarker(fbd); insertMarker.insertMarker(); } catch (Exception e) { MessageBox.Show("Error: can't open folder.\nOriginal error: " + e.Message); } } }
public void insertMarkerInFile() { InsertMarker insertMarker = new InsertMarker(); insertMarker.insertMarker(); }