Exemplo n.º 1
0
        static void Main()
        {
            // Create instance of EventLogInfoReader to read from event logs.
            EventLogInfoReader eventLog = new EventLogInfoReader();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Main(eventLog));
        }
Exemplo n.º 2
0
        static void Main()
        {
            // Create instance of EventLogInfoReader to read from event logs.
            EventLogInfoReader eventLog = new EventLogInfoReader();



            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Main(eventLog));
        }
Exemplo n.º 3
0
        public Main(EventLogInfoReader eL)
        {
            this.eventLog = eL;
            InitializeComponent();
            Random rnd = new Random();

            this.data = eL.ReadEventLogData();
            cbxBoots.SelectedIndex = 0;

            this.printPreviewDialog  = new PrintPreviewDialog();
            this.printDocument       = new PrintDocument();
            this.pageSetupDialog     = new PageSetupDialog();
            printDocument.PrintPage += new PrintPageEventHandler(printDocument_PrintPage);
        }
Exemplo n.º 4
0
        public Main(EventLogInfoReader eL)
        {
            this.eventLog = eL;
            InitializeComponent();
            Random rnd = new Random();

            this.data = eL.ReadEventLogData();
            cbxBoots.SelectedIndex = 0;

            this.printPreviewDialog = new PrintPreviewDialog();
            this.printDocument = new PrintDocument();
            this.pageSetupDialog = new PageSetupDialog();
            printDocument.PrintPage += new PrintPageEventHandler(printDocument_PrintPage);
        }