コード例 #1
0
        public void Initialize(ISharpControl control)
        {
            _guiControl = new AutoStartPanel();
            _control    = control;
            Timer timer = new Timer();

            timer.Interval = DEFAULT_INTERVAL;
            timer.Tick    += (sender, e) =>
            {
                timer.Enabled = false;
                StartRadio();
            };
            timer.Enabled = true;
        }
コード例 #2
0
        public void Initialize(ISharpControl control)
        {
            _guiControl = new AutoStartPanel();
            _control    = control;
            _frequency  = Utils.GetLongSetting("asrfrequency", 0);
            Timer timer = new Timer();

            timer.Interval = DEFAULT_INTERVAL;
            timer.Tick    += (sender, e) =>
            {
                timer.Enabled = false;
                StartRadio();
            };
            timer.Enabled = true;
        }