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

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

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

            ShowRandomSourcesForm(frm);
        }