Exemplo n.º 1
0
        public static void GoBabyGo(string settingsFile)
        {
            TransientSettingsData.LoadCurrent(settingsFile);

            Dispatcher dispatcher;

            if (Application.Current == null)
            {
                dispatcher = Dispatcher.CurrentDispatcher;
            }
            else
            {
                dispatcher = Application.Current.Dispatcher;
            }

            if (dispatcher.CheckAccess())
            {
                var zoomer = new Zoomer();
                zoomer.Magnify();
            }
            else
            {
                dispatcher.Invoke((Action)(() => GoBabyGo(settingsFile)));
            }
        }
Exemplo n.º 2
0
        private void HandleMagnify(object sender, ExecutedRoutedEventArgs e)
        {
            Zoomer zoomer = new Zoomer();

            zoomer.Magnify(this.Target);
            e.Handled = true;
        }
Exemplo n.º 3
0
        void HandleMagnify(object sender, ExecutedRoutedEventArgs e)
        {
            var zoomer = new Zoomer();

            zoomer.Magnify(Target);
            e.Handled = true;
        }
Exemplo n.º 4
0
		public static void GoBabyGo()
		{
			Dispatcher dispatcher;
			if (Application.Current == null && !SnoopModes.MultipleDispatcherMode)
				dispatcher = Dispatcher.CurrentDispatcher;
			else
				dispatcher = Application.Current.Dispatcher;

			if (dispatcher.CheckAccess())
			{
				Zoomer zoomer = new Zoomer();
				zoomer.Magnify();
			}
			else
			{
				dispatcher.Invoke((Action)GoBabyGo);
			}
		}
Exemplo n.º 5
0
        public static void GoBabyGo()
        {
            Dispatcher dispatcher;

            if (Application.Current == null && !SnoopModes.MultipleDispatcherMode)
            {
                dispatcher = Dispatcher.CurrentDispatcher;
            }
            else
            {
                dispatcher = Application.Current.Dispatcher;
            }

            if (dispatcher.CheckAccess())
            {
                Zoomer zoomer = new Zoomer();
                zoomer.Magnify();
            }
            else
            {
                dispatcher.Invoke((Action)GoBabyGo);
            }
        }
Exemplo n.º 6
0
		private void HandleMagnify(object sender, ExecutedRoutedEventArgs e)
		{
			Zoomer zoomer = new Zoomer();
			zoomer.Magnify(this.Target);
			e.Handled = true;
		}