Esempio n. 1
0
        public void RandomWordsForm()
        {
            RandomWordsForm frm = null;

            try
            {
                _msg.Length = 0;
                _msg.Append("RandomWordsForm started ...\r\n");
                _messageLog.WriteLine(_msg.ToString());

                frm = new RandomWordsForm();
                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... RandomWordsForm finished.");
                _messageLog.WriteLine(_msg.ToString());
            }
        }
Esempio n. 2
0
        private void ManageRandomWordsSources()
        {
            RandomWordsForm frm = new RandomWordsForm();

            ShowRandomSourcesForm(frm);
        }