示例#1
0
 /// <summary>
 /// Displays the transluscent glass that overlays
 /// the screen behind the scanner
 /// </summary>
 public void ShowGlass()
 {
     Glass.ShowGlass();
     if (Glass.Enable)
     {
         Windows.SetTopMost(ScannerForm);
     }
 }
示例#2
0
文件: Glass.cs 项目: weberjavi/acat
        /// <summary>
        /// Creates a glass object if one is not already created.
        /// Doesn't show it though
        /// </summary>
        /// <returns>true</returns>
        public static bool CreateGlass()
        {
            if (!Enable)
            {
                return(false);
            }

            if (_glass == null)
            {
                _glass = new Glass {
                    TopMost = true, ShowInTaskbar = false
                };
            }

            return(true);
        }
示例#3
0
        /// <summary>
        /// Call this in the OnClose event handler for the form.
        /// Releases resources
        /// </summary>
        public void OnClosing()
        {
            try
            {
                _animationManager.Dispose();

                _rootWidget.Dispose();

                if (Context.AppQuit)
                {
                    Windows.ShowTaskbar();
                    Context.AppTalkWindowManager.Dispose();
                    Glass.HideGlass();
                }
            }
            catch (Exception ex)
            {
                Log.Exception(ex);
            }
        }
示例#4
0
文件: Glass.cs 项目: weberjavi/acat
        /// <summary>
        /// Hides the glass.
        /// </summary>
        public static void HideGlass()
        {
            try
            {
                Windows.ShowTaskbar();

                if (_glass == null)
                {
                    return;
                }

                waitForThread();

                _quit = true;

                Windows.CloseForm(_glass);
                _glass = null;
            }
            catch
            {
            }
        }
示例#5
0
文件: Glass.cs 项目: nbsrujan/acat
        /// <summary>
        /// Hides the glass.
        /// </summary>
        public static void HideGlass()
        {
            try
            {
                Windows.ShowTaskbar();

                if (_glass == null)
                {
                    return;
                }

                waitForThread();

                _quit = true;

                Windows.CloseForm(_glass);
                _glass = null;
            }
            catch
            {
            }
        }
示例#6
0
文件: Glass.cs 项目: nbsrujan/acat
        /// <summary>
        /// Creates a glass object if one is not already created.
        /// Doesn't show it though
        /// </summary>
        /// <returns>true</returns>
        public static bool CreateGlass()
        {
            if (!Enable)
            {
                return false;
            }

            if (_glass == null)
            {
                _glass = new Glass { TopMost = true, ShowInTaskbar = false };
            }

            return true;
        }
示例#7
0
 /// <summary>
 /// Hides the glass window
 /// </summary>
 public void HideGlass()
 {
     Glass.HideGlass();
 }