Beispiel #1
0
 private void mnuLogViewer_Click(object sender, EventArgs e)
 {
     using (LogViewerForm f = new LogViewerForm())
     {
         f.ShowDialog();
     }
 }
Beispiel #2
0
        public static bool?Show(string pStrTitle, string pStrLogPath, Window pFrmWindow)
        {
            LogViewerForm lObjForm = new LogViewerForm();

            try
            {
                Thread lObjThread = new Thread(() => LoadLog(lObjForm, pStrLogPath));
                lObjThread.Start();
            }
            catch (Exception lObjException)
            {
                CustomMessageBox.Show("Error", lObjException.Message);
            }

            lObjForm.tblTitle.Text = pStrTitle;
            lObjForm.Width         = 800;
            lObjForm.Height        = 600;
            lObjForm.Owner         = pFrmWindow;

            return(lObjForm.ShowDialog());
        }