Exemplo n.º 1
0
        private void btnPOGR_Click(object sender, System.EventArgs e)
        {
            this.frmPOGR = new frmPOGR(this.frmParent);
            this.frmParent.UpdateLastDidSomethingAt();

            try
            {
                Cursor.Current = Cursors.WaitCursor;
                Cursor.Show();
                this.frmPOGR.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                frmStart.HandleException(ex, true);
            }

            this.frmPOGR = null;
            this.Refresh();
        }
Exemplo n.º 2
0
        public frmSearch(frmPOGR lfrmParent)
        {
            #region Start Logger
            logger mylog = new logger();

            //kill log
            if (File.Exists("logfile.txt"))
            {
                File.Delete("logfile.txt");
            }

            mylog.makelog("Starting PMGM");
            #endregion

            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();
            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            this.frmParent = lfrmParent;
        }