Пример #1
0
        public MainForm()
        {
            InitializeComponent();

            _dao = (HibernateBaseEntityDao)_ctx.GetObject("BaseEntityDao", typeof(HibernateBaseEntityDao));
            Console.SetOut(_consoleCatcher);
            _timer          = new System.Windows.Forms.Timer();
            _timer.Interval = 500;
            _timer.Tick    += new EventHandler(_timer_Tick);
            _timer.Start();
        }
Пример #2
0
        public MainForm()
        {
            InitializeComponent();

            _dao = (HibernateBaseEntityDao) _ctx.GetObject("BaseEntityDao", typeof (HibernateBaseEntityDao));
            Console.SetOut(_consoleCatcher);
            _timer = new System.Windows.Forms.Timer();
            _timer.Interval = 500;
            _timer.Tick += new EventHandler(_timer_Tick);
            _timer.Start();
        }