public void RandomNamesAndLocationsForm() { RandomNamesAndLocationsForm frm = null; try { _msg.Length = 0; _msg.Append("RandomNamesAndLocationsForm started ...\r\n"); _messageLog.WriteLine(_msg.ToString()); frm = new RandomNamesAndLocationsForm(); frm.MessageLogUI = _messageLog; DialogResult res = frm.ShowDialog(); _msg.Length = 0; if (res == DialogResult.OK) { _msg.Append("OK pressed."); } else { _msg.Append("Cancel pressed."); } _messageLog.WriteLine(_msg.ToString()); } catch (System.Exception ex) { _msg.Length = 0; _msg.Append(AppGlobals.AppMessages.FormatErrorMessage(ex)); _messageLog.WriteLine(_msg.ToString()); AppMessages.DisplayErrorMessage(_msg.ToString(), _saveErrorMessagesToAppLog); } finally { _msg.Length = 0; _msg.Append("\r\n... RandomNamesAndLocationsForm finished."); _messageLog.WriteLine(_msg.ToString()); } }
private void ManageRandomNamesAndLocationsSources() { RandomNamesAndLocationsForm frm = new RandomNamesAndLocationsForm(); ShowRandomSourcesForm(frm); }