Esempio n. 1
0
        //activators
        protected void WindowActivator_Open(int number)
        {
            if ((number >= 0) && (number < windowActivator.Length))
            {
                WindowOpenClose activeA = windowActivator[number];

                if (activeA)
                {
                    if (!activeA.IsOpen())
                    {
                        activeA.Open();
                    }
                }
            }
        }
Esempio n. 2
0
        private void WindowActivator_Close(int number)
        {
            if (number < windowActivator.Length)
            {
                WindowOpenClose activeA = windowActivator[number];

                if (activeA)
                {
                    if (activeA.IsOpen())
                    {
                        activeA.Close();
                    }
                }
            }
        }