Exemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();

            _DigitalTimer = DongHoDienTu.getInstance();
            this.pnTimer.Controls.Add(_DigitalTimer);
            _DigitalTimer.TimeOver += TimeOverHandler;
        }
Exemplo n.º 2
0
 public static DongHoDienTu getInstance()
 {
     if (_Instance == null)
     {
         _Instance = new DongHoDienTu();
         return(_Instance);
     }
     else
     {
         return(_Instance);
     }
 }