Beispiel #1
0
        /// <summary>
        /// 正常
        /// </summary>
        public static void SetAllDefault()
        {
            Application.Current.Dispatcher.Invoke(new Action(() =>
            {
                if (CBaseData.bWPFEffect)
                {
                    string gridName = "grid" + Guid.NewGuid().ToString("N");
                    if (GridNames.ContainsKey(CBaseData.MainWindow))
                    {
                        gridName = GridNames[CBaseData.MainWindow];
                    }

                    GrayContent.RemoveGrayContent(CBaseData.MainWindow, gridName);
                }

                //CBaseData.MainWindow.IsEnabled = true;
                CBaseData.MainWindow.Cursor = Cursors.Arrow;
            }));
        }
Beispiel #2
0
        /// <summary>
        /// 正常
        /// </summary>
        public static void SetDefault(Page page)
        {
            Application.Current.Dispatcher.Invoke(new Action(() =>
            {
                if (CBaseData.bWPFEffect)
                {
                    string gridName = "grid" + Guid.NewGuid().ToString("N");
                    if (GridNames.ContainsKey(page))
                    {
                        gridName = GridNames[page];
                    }

                    GrayContent.RemoveGrayContent(page, gridName);
                }

                //page.IsEnabled = true;
                page.Cursor = Cursors.Arrow;
            }));
        }