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

            imon = new iMon();
            imon.initialise();
            imon.setRefreshRate(100);
            imon.setScrollDelay(5000);
            refreshScreen();

            tmrFormRefreshRate.Interval = 100;
            tmrFormRefreshRate.Enabled  = true;
        }
Пример #2
0
        private void init(string textLine, bool swapAfterEveryCycle)
        {
            InitializeComponent();

            this.ShowInTaskbar = false;
            notifyIcon.Visible = true;
            this.WindowState   = FormWindowState.Minimized;

            imon = new iMon();
            imon.initialise();
            imon.setRefreshRate(refreshRate);
            imon.setScrollDelay(scrollDelay);
            imon.setText(textLine, swapAfterEveryCycle);

            tmrFormRefreshRate.Interval = refreshRate;
            tmrFormRefreshRate.Enabled  = true;
        }
        public KodiMediaInfo()
        {
            InitializeComponent();

            this.ShowInTaskbar = false;
            notifyIcon.Visible = true;
            btnConnect.Enabled = false;
            this.WindowState   = FormWindowState.Minimized;

            imon = new iMon();
            imon.initialise();
            imon.setRefreshRate(imonRefreshRate);
            imon.setScrollDelay(scrollDelay);
            imon.setText("Connecting with", "Kodi...");

            kodi = new Kodi();

            tmrFormRefreshRate.Interval = imonRefreshRate;
            tmrKodiRefreshRate.Interval = kodiRefreshRate;
            tmrFormRefreshRate.Enabled  = true;
            tmrKodiRefreshRate.Enabled  = true;
        }
Пример #4
0
 private void btnScrollDelay_Click(object sender, EventArgs e)
 {
     imon.setScrollDelay(int.Parse(txtScrollDelay.Text));
 }