Beispiel #1
0
 private void VisibilityChangedHandler(object sender, VisibilityChangedEventArgs e)
 {
     var widget = (IWidget)sender;
     if (e.Visible == false)
     {
         widgets.Remove(widget);
         notVisibleWidgets.AddLast(widget);
     }
     else
     {
         notVisibleWidgets.Remove(widget);
         widgets.AddLast(widget);
     }
 }
Beispiel #2
0
 void dockManager_VisibilityChanged(object sender, VisibilityChangedEventArgs e) {
     if(e.Visibility == DockVisibility.Visible && panels.ContainsKey(e.Panel.ID)) {
         Control module = GetPeekModuleControl(e.Panel);
         ViewModelHelper.EnsureModuleViewModel(module, viewModel);
         module.Dock = DockStyle.Fill;
         e.Panel.ControlContainer.Controls.Add(module);
     }
 }
Beispiel #3
0
        private void DockManager_VisibilityChanged(object sender, VisibilityChangedEventArgs e)
        {
            string id = (e.Panel != null) ? e.Panel.Name : "null";

            LogDockManagerEvent("DockManager_VisibilityChanged " + id);
        }
Beispiel #4
0
 private static void VisibilityChanged(CoreWindow sender, VisibilityChangedEventArgs args)
 {
     VisibilityChanged(args.Visible);
 }
Beispiel #5
0
 private void CurrentWindowOnVisibilityChanged(CoreWindow window, VisibilityChangedEventArgs args)
 {
     visible = args.Visible;
 }
Beispiel #6
0
 private async void Window_VisibilityChanged(object sender, VisibilityChangedEventArgs args)
 {
     await SetUpBasedOnStateAsync();
 }
Beispiel #7
0
        private static void OneSignal_VisibilityChanged_Window_Current(object sender, VisibilityChangedEventArgs args)
        {
            foreground = args.Visible;

            if (foreground)
            {
                lastPingTime = DateTime.Now.Ticks;
            }
            else
            {
                var time_elapsed = (long)((((DateTime.Now.Ticks) - lastPingTime) / 10000000) + 0.5);
                lastPingTime = DateTime.Now.Ticks;

                if (time_elapsed < 0 || time_elapsed > 604800)
                {
                    return;
                }

                var unSentActiveTime = GetSavedActiveTime();
                var totalTimeActive  = unSentActiveTime + time_elapsed;

                if (totalTimeActive < 30)
                {
                    settings.Values["OneSignalActiveTime"] = totalTimeActive;
                    return;
                }

                SendPing(totalTimeActive);
                settings.Values["OneSignalActiveTime"] = (long)0;
            }

            if (externalInit != null && foreground)
            {
                checkForNotificationOpened(externalInit.GetAppArguments());
            }
        }
Beispiel #8
0
 private void VisibilityChanged(object sender, VisibilityChangedEventArgs e)
 {
     canvas.Paused = !e.Visible;
 }
Beispiel #9
0
 private void Current_VisibilityChanged(object sender, VisibilityChangedEventArgs e)
 {
     _visibility = e.Visible;
 }
Beispiel #10
0
 private void Window_VisibilityChanged(object sender, VisibilityChangedEventArgs e)
 {
     _isMinimized = !e.Visible;
 }
 private static void OnVisibilityChanged(object sender, VisibilityChangedEventArgs e)
 {
     System.Diagnostics.Debug.WriteLine("VISIBILITY: " + e.Visible);
 }
 protected virtual void OnVisibilityChanged(VisibilityChangedEventArgs e)
 {
 }
 private void Window_VisibilityChanged(object sender, VisibilityChangedEventArgs e)
 {
     OnVisibilityChanged(e);
 }
Beispiel #14
0
        // ==================================================
        // Window event handlers
        // ==================================================

        private void VisibilityChanged(CoreWindow sender, VisibilityChangedEventArgs args)
        {
            Debug.LogMessage("App.VisibilityChanged");
        }
Beispiel #15
0
 /// <summary>Called when the page visibility has changed (e.g. the app has been suspended and it is no longer visible to the user). </summary>
 /// <param name="args">The event arguments. </param>
 protected internal virtual void OnVisibilityChanged(VisibilityChangedEventArgs args)
 {
     // Must be empty
 }
Beispiel #16
0
 private void OnWindowVisibilityChanged(Object sender, VisibilityChangedEventArgs args)
 {
     Timer.Change(args.Visible ? 0 : Timeout.Infinite, (Int32)Delay.TotalMilliseconds);
 }
 private void dockPanel1_VisibilityChanged(object sender, VisibilityChangedEventArgs e)
 {
     barCheckItemFilter.Checked = e.Visibility != DockVisibility.Hidden;
 }
Beispiel #18
0
 private void Current_VisibilityChanged(object sender, VisibilityChangedEventArgs e)
 {
     IsWindowVisible = e.Visible;
     UpdateTitleBar();
 }
 /// <summary>
 /// Sets the SDK preferences based on the application visibility.
 /// Hook this event handler to Window.Current.VisibilityChanged.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public void OnApplicationVisibilityChanged(object sender, VisibilityChangedEventArgs e)
 {
     Debug.WriteLine("SDKManager.OnApplicationVisibilityChanged(): "
                     + (e.Visible ? "To visible" : "To not visible"));
     SdkData.AppIsVisible = e.Visible;
 }
 private void window_VisibilityChanged(CoreWindow sender, VisibilityChangedEventArgs args)
 {
 }
Beispiel #21
0
 protected override void OnVisibilityChanged(VisibilityChangedEventArgs e)
 {
     base.OnVisibilityChanged(e);
 }
Beispiel #22
0
 private void CoreWindow_VisibilityChanged(CoreWindow sender, VisibilityChangedEventArgs args)
 {
     this.isVisible = args.Visible;
 }
 /// <summary>
 /// Pauses or resumes the game clock when the window visibility changes.
 /// </summary>
 /// <param name="sender">The source of the property change.</param>
 /// <param name="e">Details about the property change.</param>
 private void OnWindowVisibilityChanged(object sender,
                                        VisibilityChangedEventArgs e)
 {
     UpdateClock();
 }
Beispiel #24
0
 private void OnVisibilityChanged(CoreWindow sender, VisibilityChangedEventArgs args)
 {
     windowVisible = args.Visible;
 }
Beispiel #25
0
 private void Window_VisibilityChanged(object sender, VisibilityChangedEventArgs e)
 {
     IsVisible = e.Visible;
     HandleActivated(e.Visible);
 }
Beispiel #26
0
 private static void VisibilityChanged(object sender, VisibilityChangedEventArgs e)
 {
     VisibilityChanged(e.Visible);
 }
 private void UCAcrylicBrush_VisibilityChanged(CoreWindow sender, VisibilityChangedEventArgs args)
 {
     ConnectAcrylicBrush(!args.Visible);
 }
Beispiel #28
0
        /// <summary>
        /// Visibility of dock panel changed
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>

        void ViewDockPanel_VisibilityChanged(object sender, VisibilityChangedEventArgs e)
        {
            return;
        }
 private void VisibilityChanged(object sender, VisibilityChangedEventArgs e)
 {
     _timer.Start();
 }