Example #1
0
        private void StartFlashNode(int nodepaged)
        {
            // visual page
            if (Properties.Settings.Default.VisualPagingEnabled == true)
            {
                visualpageactivated = true;
                pageactivated++;
                FlashWindow.Start(this);
            }

            // all pages should flash the node button
            timerFlashnodes[nodepaged].Start();
        }
Example #2
0
        private void StopFlashNode(string nodeclickedstring)
        {
            pageactivated--;
            nodeclickedstring = nodeclickedstring.Substring("nodebutton".Length, nodeclickedstring.Length - "nodebutton".Length);
            int nodeclicked = int.Parse(nodeclickedstring);

            statusnodepaged[nodeclicked] = false;
            timerFlashnodes[nodeclicked].Stop();
            var toolstrip1Items = toolStripNodes as ToolStrip;
            var btnNode         = toolstrip1Items.Items.Find("nodebutton" + nodeclicked, true);

            if (status[nodeclicked].userloggedoff == true)
            {
                btnNode[0].Image = Properties.Resources.green_circle;
            }
            else
            {
                btnNode[0].Image = Properties.Resources.yellow_circle;
            }
            btnNode[0].Tag = nodeclickedstring;
            if (pageactivated < 1)
            {
                // stop the flash timer on all nodes
                for (int i = 0; i < statusnodepaged.Length; i++)
                {
                    timerFlashnodes[i].Stop();
                }
            }

            // stop visual page
            if (visualpageactivated == true)
            {
                visualpageactivated = false;
                FlashWindow.Stop(this);
            }
        }