Exemplo n.º 1
0
        public Work()
        {
            InitializeComponent();

            View.Child    = Radio = new Radio.MainView();
            Radio.Opacity = 0;
            Radio.Model.Frequency.SpecialForMishaValueChanged += (s, e) => System.Diagnostics.Trace.WriteLine(Radio.Model.Frequency.Value);

            dispatcherTimer = new DispatcherTimer
            {
                Interval = TimeSpan.FromMilliseconds(1000 / 40)
            };

            dispatcherTimer.Tick += new EventHandler(DispatcherTimer_Tick);

            Radio.MouseEnter += (s, e) =>
            {
                dispatcherTimer.Start();
            };

            IsVisibleChanged += (s, e) =>
            {
                if (Convert.ToBoolean(e.NewValue))
                {
                    Radio.Opacity = 0;
                }
            };
        }
Exemplo n.º 2
0
        public Management()
        {
            InitializeComponent();

            Radio_Frame.Content = RadioView = new Radio.MainView().HideTangent();

            ManagementBlackouts blackouts = new ManagementBlackouts(Background_Path, BorderSet_Canvas);

            blackouts.SetPanels(Left_StackPanel, Right_StackPanel);

            for (int i = 0; i < BorderSet_Canvas.Children.Count; i++)
            {
                BorderSet_Canvas.Children[i].MouseEnter += (s, e) => ShowLine(Visibility.Hidden);
                BorderSet_Canvas.Children[i].MouseLeave += (s, e) => ShowLine(Visibility.Visible);
            }
        }