/// <summary> /// Writes out an updated field notes file /// </summary> private void UpdateFNFile() { string fnFile = m_Win.App.AppConfig.FieldNotesFile; FieldNotesHandler.ClearFieldNotes(fnFile); FieldNotesHandler.WriteToFile(m_Logs, fnFile); }
protected virtual void OnDeleteAllClick(object sender, System.EventArgs e) { MessageDialog dlg = new MessageDialog(this, DialogFlags.Modal, MessageType.Warning, ButtonsType.YesNo, Catalog.GetString("Are you sure you want to remove all field notes?")); try { if ((int)ResponseType.Yes == dlg.Run()) { FieldNotesHandler.ClearFieldNotes(m_Win.App.AppConfig.FieldNotesFile); m_Logs.Clear(); PopulateLogs(m_Logs); } dlg.Hide(); dlg.Dispose(); } catch (Exception e1) { dlg.Hide(); OCMApp.ShowException(e1); } }