예제 #1
0
 private void mnuLogViewer_Click(object sender, EventArgs e)
 {
     using (LogViewerForm f = new LogViewerForm())
     {
         f.ShowDialog();
     }
 }
예제 #2
0
파일: LogViewer.cs 프로젝트: xavl369/UGRS
        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());
        }