Ejemplo n.º 1
0
        public static void Pause_ImageEllipseLabel(out System.Windows.Threading.DispatcherTimer _T, Label _CI)
        {
            _T = new System.Windows.Threading.DispatcherTimer {
                Interval = TimeSpan.FromSeconds(2)
            };

            if (WorkShopAction.CheckEllipseLabel_Turn(_CI))
            {
                WorkShopAction.Pause_ForCreate(_T: _T, () => WorkShopAction.EllipseLABEL_TurnOn(_ChangeImageEllipse: _CI));
            }
            else
            {
                WorkShopAction.EllipseLABEL_TurnOff(_ChangeImageEllipse: _CI, _Timer: _T);
            }
        }
Ejemplo n.º 2
0
        public static void NotifyIcon(MainWindow _THIS, ref bool _NotifyIconCheck)
        {
            if (_NotifyIconCheck)
            {
                System.Windows.Forms.NotifyIcon _NI = new System.Windows.Forms.NotifyIcon();

                System.Windows.Forms.ContextMenu _CM = new System.Windows.Forms.ContextMenu();

                WorkShopAction.ContextMenu_NI(_CM, _NI, _THIS);

                Stream _SourceIcon = Application.GetResourceStream(new Uri("pack://application:,,,/WPF_2_;component/Image/mainicon.ico")).Stream;
                _NI.Icon        = new System.Drawing.Icon(_SourceIcon);
                _NI.Visible     = true;
                _NI.Text        = "go";
                _NI.ContextMenu = _CM;
                WorkShopAction.NIDoubleClick(_NotifyIcon: _NI, _THIS: _THIS);
            }
        }