public MainWindow()
        {
            InitializeComponent();

            // Get the taskbar icon object
            Tb = this.ProcessNotifyIcon;
            Tb.ToolTipText = Properties.Resources.ProgramName;

            // Set window title
            this.Title = Properties.Resources.ProgramName;

            // Initial setting
            CurrentStatus = ProcessStatus.Stopped;
            UpdateIcon();

            // Don't show window
            SetWindowVisibility(false);

            // Load the settings
            LoadSettings();

            // Start the checking process
            StartCheckProcess();

            if (ShowBalloonMessageOnStart)
            {
                Tb.ShowBalloonTip(Properties.Resources.ProgramName, "Started", BalloonIcon.Info);
            }
        }
Ejemplo n.º 2
1
        protected override void OnStartup(System.Windows.StartupEventArgs e)
        {
            tb = (TaskbarIcon)FindResource("MyNotifyIcon");

            var viewModel = new StahpViewModel();
            viewModel.Notify += (s, evt) => tb.ShowBalloonTip("Stahp!!!", "Time's up.", BalloonIcon.Error);

            tb.DataContext = viewModel;
        }
Ejemplo n.º 3
0
        // Adds the notification icon
        public void AddTaskbarIcon()
        {
            // The display text of the icon
            string DisplayText = "MouseControl running at " + WebServer.runningIp;
            systemIcon = new TaskbarIcon();
            systemIcon.Icon = new System.Drawing.Icon(typeof(App), "MouseControlIcon.ico");
            systemIcon.ToolTipText = DisplayText;
            systemIcon.ShowBalloonTip("MouseControl", DisplayText, BalloonIcon.Info);

            // Remove the text after a certain amount of time
            Thread.Sleep(6000);
            systemIcon.HideBalloonTip();

            // Add context menu
            ContextMenu cMenu = new ContextMenu();

            MenuItem about = new MenuItem();
            about.Header = "About";
            about.Click += aboutClick;

            MenuItem exit = new MenuItem();
            exit.Header = "Exit";
            exit.Click += exitClick;

            cMenu.Items.Add(about);
            cMenu.Items.Add(exit);

            // Add System tray icon click handler
            systemIcon.TrayMouseDoubleClick += SystemTrayIconClick;

            systemIcon.ContextMenu = cMenu;
        }
Ejemplo n.º 4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.SystemTray = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));

            #line 54 "..\..\MainWindow.xaml"
                this.SystemTray.TrayMouseDoubleClick += new System.Windows.RoutedEventHandler(this.SystemTray_TrayMouseDoubleClick);

            #line default
            #line hidden
                return;

            case 2:

            #line 89 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuExit_Click);

            #line default
            #line hidden
                return;

            case 3:

            #line 139 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Grid)(target)).PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_PreviewMouseLeftButtonDown);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 5
0
        public TrayWindowViewModel(TaskbarIcon taskbarIcon)
        {
            _taskbarIcon = taskbarIcon;

            ExitCommand = new ExitCommand();
            ShowCommand = new ShowAllCommand();
            HideCommand = new HideAllCommand();
            AddRepoCommand = new AddRepositoryCommand();

            ShowAboutCommand = new ShowSingleViewCommand(typeof(AboutView));

            LeftClickCommand = new ToggleShowHideCommand();
            DoubleClickCommand = LeftClickCommand;

            ShowSettingsCommand = new ShowSingleViewCommand(typeof(SettingsView));
#if DEBUG
            ShowSettingsVisiblilty = "Visible";
#else
            ShowSettingsVisiblilty = "Collapsed";
#endif

            ShowUpdateCommand = new ShowSingleViewCommand(typeof(UpdateView));
            CheckUpdateCommand = ShowUpdateCommand;

            HotkeyHelper.OnHotkeyChanged += (sender, args) => OnPropertyChanged("ShowHideHeader");
            // todo: currently the only balloon is for update, so no distinction about what to do.
            _taskbarIcon.TrayBalloonTipClicked += (sender, args) => ShowUpdateCommand.Execute(null);
            UpdateManager.OnUpdateRequired += UpdateManager_OnUpdateRequired;
            UpdateManager.OnUpdateInfoChanged += delegate(object sender, EventArgs args)
            {
                OnPropertyChanged("CheckUpdateHeader");
                OnPropertyChanged("ToolTipText");
            };

        }
Ejemplo n.º 6
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            try
            {
                _settings = SerializationHelper.LoadObjectFromFile<AmbilightSettings>(PATH_SETTINGS) ??
                    new AmbilightSettings();
                IScreenCapture screenCapture = new DX9ScreenCapture();

                // DarthAffe 05.11.2016: This could be done way cleaner ...
                _taskBar = FindResource("Taskbar") as TaskbarIcon;
                FrameworkElement configView = _taskBar?.TrayPopup as ConfigView;
                if (configView == null)
                    Shutdown();
                else
                    configView.DataContext = new ConfigViewModel(_settings);

                _ambilight = new Ambilight(screenCapture, _settings);
                if (!_ambilight.Initialize())
                    throw new ApplicationException();
            }
            catch
            {
                MessageBox.Show("An error occured while starting the Keyboard-Ambilight.\r\nPlease double check if CUE is running and 'Enable SDK' is checked.", "Can't start Keyboard-Ambilight");
                Shutdown();
            }
        }
Ejemplo n.º 7
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ShowMouseUp_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 2:
                this.ShowToolTipOpened_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 3:
                this.notifyIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
                return;

            case 4:
                this.MoveIndicator = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 5:
                this.LeftMouseIndicator = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 6:
                this.ToolTipIndicator = ((System.Windows.Shapes.Ellipse)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 8
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MyNotifyIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));

            #line 13 "..\..\..\..\Tutorials\04 - ContextMenus\InlineContextMenuWindow.xaml"
                this.MyNotifyIcon.TrayContextMenuOpen += new System.Windows.RoutedEventHandler(this.MyNotifyIcon_TrayContextMenuOpen);

            #line default
            #line hidden

            #line 14 "..\..\..\..\Tutorials\04 - ContextMenus\InlineContextMenuWindow.xaml"
                this.MyNotifyIcon.PreviewTrayContextMenuOpen += new System.Windows.RoutedEventHandler(this.MyNotifyIcon_PreviewTrayContextMenuOpen);

            #line default
            #line hidden
                return;

            case 2:
                this.PreviewOpenEventCounter = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 3:
                this.OpenEventCounter = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.SuppressContextMenu = ((System.Windows.Controls.CheckBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 9
0
        /// <summary>
        /// Constructor
        /// </summary>
        private NotificationManager()
        {
            _taskbarIcon = ((Core)Application.Current).TrayIcon;
            _repo = new Repository();
            _allWorkLocker = new object();
            _isNotificationActive = false;

            // Инициализируем список задач
            var t = System.Threading.Tasks.Task.Run(() =>
                                                    {
                                                        Tasks = new List<Task>(_repo.GetAllTasks());
                                                        Tasks.Sort();
                                                    });

            // Запустим механизм очередности оповещений
            _notificationQueue = new ConcurrentQueue<Task>();

            t.Wait();
            _taskList = new List<Task>(Tasks);

            // Первый запуска таймера
            _timer.Elapsed += EnqueueNotification;
            lock (_allWorkLocker)
                StartTimer();
        }
Ejemplo n.º 10
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            // Create a new instance of the main window.
            var mainWindow = new MainWindow();
            Application.Current.MainWindow = mainWindow;

            if (e.Args.Any(arg => arg.ToUpper().Equals("/refresh")))
            {
                mainWindow.Refresh();
            }

            //create the notifyicon (it's a resource declared in SystemTray/SystemTrayResources.xaml).
            _taskBarIcon = (TaskbarIcon)FindResource("SystemTrayIcon");

            // Register the hot-key that will show the application
            HotKeyManager.Register(
                Key.Space,
                OperatingSystem.KeyModifier.Alt,
                () =>
                    {
                        var command = GlobalCommands.ShowWindowCommand();

                        if (command.CanExecute(null))
                        {
                            command.Execute(null);
                        }
                    });
        }
Ejemplo n.º 11
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.tb = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
                return;

            case 2:
                this.LoadView = ((System.Windows.Controls.Button)(target));
                return;

            case 3:
                this.LoadView2 = ((System.Windows.Controls.Button)(target));
                return;

            case 4:
                this.LoadView3 = ((System.Windows.Controls.Button)(target));
                return;

            case 5:
                this.LoadConfiguration = ((System.Windows.Controls.Button)(target));
                return;

            case 6:
                this.ActiveItem = ((System.Windows.Controls.ContentControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 12
0
 public App()
 {
     InitializeComponent();
     tb = (TaskbarIcon)FindResource("iNGenTaskbarIcon");
     tb.TrayMouseDoubleClick += tb_TrayMouseDoubleClick;
     Locator = new ViewModels.ViewModelLocator();
 }
Ejemplo n.º 13
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.st = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 2:
                this.BtCpu = ((System.Windows.Controls.Button)(target));
                return;

            case 3:
                this.MainFrame = ((System.Windows.Controls.Frame)(target));
                return;

            case 4:
                this.label = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.SoMeIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 14
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            ShutdownMode = ShutdownMode.OnExplicitShutdown;

            _notificationIcon = (TaskbarIcon)FindResource("NotificationWebViewIcon");
        }
Ejemplo n.º 15
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            //create the notifyicon (it's a resource declared in NotifyIconResources.xaml
            notifyIcon = (TaskbarIcon) FindResource("NotifyIcon");
        }
Ejemplo n.º 16
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Grid = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.TaskbarIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
                return;

            case 3:
                this.CachedTabControl = ((Imagin.Common.Controls.CachedTabControl)(target));
                return;

            case 4:
                this.PART_Grid = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.PART_SelectionCanvas = ((Imagin.Common.Controls.SelectionCanvas)(target));

            #line 202 "..\..\MainWindow.xaml"
                this.PART_SelectionCanvas.Selected += new System.EventHandler <Imagin.Common.Input.EventArgs <Imagin.Common.Math.DoubleRegion> >(this.OnSelected);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 17
0
        private void AddTrayIconWpf() {
            Application.Current.Dispatcher.Invoke(() => {
                var rhm = new MenuItem { Header = "RHM Settings", Command = RhmService.Instance.ShowSettingsCommand };
                rhm.SetBinding(UIElement.VisibilityProperty, new Binding {
                    Source = RhmService.Instance,
                    Path = new PropertyPath(nameof(RhmService.Active))
                });

                var restore = new MenuItem { Header = UiStrings.Restore };
                var close = new MenuItem { Header = UiStrings.Close };

                restore.Click += RestoreMenuItem_Click;
                close.Click += CloseMenuItem_Click;

                _icon = new TaskbarIcon {
                    Icon = AppIconService.GetTrayIcon(),
                    ToolTipText = AppStrings.Hibernate_TrayText,
                    ContextMenu = new ContextMenu {
                        Items = {
                            rhm,
                            restore,
                            new Separator(),
                            close
                        }
                    },
                    DoubleClickCommand = new DelegateCommand(WakeUp)
                };

            });
        }
Ejemplo n.º 18
0
        protected override void OnStartup(StartupEventArgs e)
        {
            bool mutexIsAvailable = false;
            
            try
            {
                _lock = new Mutex(true, "Smaller.Singleton");
                mutexIsAvailable = _lock.WaitOne(1, false); // wait only 1 ms
            }
            catch (AbandonedMutexException)
            {
                //In case the previous instance did not correctly release the mutex, ignore the error.
                mutexIsAvailable = true;
            }

            if (!mutexIsAvailable)
            {
                RunJobController.Instance.TriggerRunJobs();
                Current.Shutdown();
                return;
            }
            else
            {
                base.OnStartup(e);

                //create the notifyicon (it's a resource declared in NotifyIconResources.xaml
                notifyIcon = (TaskbarIcon)FindResource("NotifyIcon");

                RunJobController.Instance.TriggerRunJobs();
            }
        }
Ejemplo n.º 19
0
 public CustomBalloon([NotNull] TaskbarIcon taskbarIcon)
 {
     if (taskbarIcon == null) throw new ArgumentNullException(nameof(taskbarIcon));
     InitializeComponent();
     
     _taskbarIcon = taskbarIcon;
 }
Ejemplo n.º 20
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window1 = ((AutoPing.MainWindow)(target));

#line 9 "..\..\MainWindow.xaml"
                this.window1.Closing += new System.ComponentModel.CancelEventHandler(this.window1_Closing);

#line default
#line hidden
                return;

            case 2:
                this.wrap1 = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 3:
                this.mytray = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
                return;

            case 4:

#line 42 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowHideMainWindow_Click);

#line default
#line hidden
                return;

            case 5:

#line 45 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuExitTray);

#line default
#line hidden
                return;

            case 6:
                this.bordertooltip = ((System.Windows.Controls.Border)(target));
                return;

            case 7:
                this.tbtray = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 8:

#line 75 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

#line default
#line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 21
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            notifyIcon = (TaskbarIcon)FindResource("NotifyIcon");

            notifyIcon.ShowBalloonTip("Beba Água", "Beba água iniciado!", BalloonIcon.Info);
        }
Ejemplo n.º 22
0
 private void InitializeIcon()
 {
     _taskbarIcon = (TaskbarIcon) Application.Current.FindResource("NetWatcherNotify");
     if (_taskbarIcon != null)
     {
         _taskbarIcon.DataContext = this;
     }
 }
		public void Dispose()
		{
			if (_trayIcon != null)
			{
				_trayIcon.Dispose();
				_trayIcon = null;
			}
		}
        public AutotrackerNotification(TaskbarIcon icon, MainWindow mainWindow)
        {
            this.icon = icon;
            this.mainWindow = mainWindow;
            this.InitializeComponent();

            Toggl.OnAutotrackerNotification += this.onAutotrackerNotification;
        }
        public PomodoroNotification(TaskbarIcon icon, MainWindow mainWindow)
        {
            this.icon = icon;
            this.mainWindow = mainWindow;
            this.InitializeComponent();

            Toggl.OnDisplayPomodoro += this.onDisplayPomodoro;
        }
Ejemplo n.º 26
0
 private void InitializeViewLayer()
 {
     trayIconViewModel = new TrayIconViewModel();
     iconView = (TaskbarIcon)FindResource("NotifyIcon");
     trayIconViewModel.icon = iconView;
     iconView.DataContext = trayIconViewModel;
     mainWindowViewModel = new MainWindowViewModel();
 }
Ejemplo n.º 27
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 11 "..\..\MainWindow.xaml"
                ((اذان_و_اوقات_شرعی.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.MetroWindow_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.ComboBoxCity = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 3:

            #line 18 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.G1 = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.myNotifyIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
                return;

            case 6:
                this.G2 = ((System.Windows.Controls.Grid)(target));
                return;

            case 7:

            #line 95 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 8:

            #line 96 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_1);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 28
0
        protected override void OnStartup(StartupEventArgs e)
        {
            _tbi = (TaskbarIcon)FindResource("TrayIcon");

            _windowPlacement = WindowPlacement.Instance;
            _windowPlacement.RegisterHotkeys();

            base.OnStartup(e);
        }
Ejemplo n.º 29
0
        /// <summary>
        /// Create our hotkey on startup, initialize notifyicon
        /// TBI -- Customize hotkey combination via options right click
        /// </summary>
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            notifyIcon = (TaskbarIcon)FindResource("NotifyIcon");

            var _hotKey = new KeyboardHook(Key.Space,KeyModifier.Ctrl, OnHotKeyHandler);

            notifyIcon.ShowBalloonTip("Window Butler Started", "Press [CTRL] + [SPACE]", BalloonIcon.Info);
        }
Ejemplo n.º 30
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.MyNotifyIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 31
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            //create the notifyicon (it's a resource declared in NotifyIconResources.xaml
            notifyIcon = (TaskbarIcon)FindResource("NotifyIcon");

            ApplicationManager.StartNewDelayedActions();
        }
Ejemplo n.º 32
0
 public App()
 {
     InitializeComponent();
     Debug.WriteLine(GetErrorFile());
     AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
     Tb = (TaskbarIcon)FindResource("iNGenTaskbarIcon");
     if (Tb != null) Tb.TrayMouseDoubleClick += tb_TrayMouseDoubleClick;
     Locator = new ViewModels.ViewModelLocator();
 }
Ejemplo n.º 33
0
 public IdiomsWindow()
 {
     InitializeComponent();
     var viewModel = new IdiomsViewModel();
     viewModel.AddNewIdiomEvent += ShowAddIdiomWindow;
     viewModel.ShowRandomIdiomEvent += ShowRandomIdiom;
     DataContext = viewModel;
     _taskbarIcon = (TaskbarIcon) FindResource("MyNotifyIcon");
 }
Ejemplo n.º 34
0
        public DbNotifyer(NotifyData data)
        {
            m_Data = data;

            m_tbNotify = new TaskbarIcon();
            m_tbNotify.Icon = Resources.Database;
            m_tbNotify.ToolTipText = data.Title;

            SLLogEvents.ShowBallonTipp += OnShowLogBallonTipp;
        }
 private Notification()
 {
     Application.Current.Dispatcher.Invoke(
         () =>
         {
             tbIcon =
                 (Application.Current.Windows.Cast<Window>().FirstOrDefault(window => window is MainWindow) as
                     MainWindow).myTaskbarIcon;
         });
 }
Ejemplo n.º 36
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.MyNotifyIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
         return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 37
0
    protected override void OnLoad(EventArgs e)
    {
      base.OnLoad(e);
      notifyIcon = new TaskbarIcon();
      notifyIcon.Icon = Resources.Led;
      notifyIcon.ToolTipText = "Left-click to open popup";
      notifyIcon.Visibility = Visibility.Visible;

      notifyIcon.TrayPopup = new FancyPopup();
    }
Ejemplo n.º 38
0
        protected override void OnExit(ExitEventArgs e)
        {
            _windowPlacement.Dispose();
            _windowPlacement = null;

            _tbi.Dispose();
            _tbi = null;

            base.OnExit(e);
        }
Ejemplo n.º 39
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 24 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToSettings);

            #line default
            #line hidden
                return;

            case 2:

            #line 26 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NavigateToHome);

            #line default
            #line hidden
                return;

            case 3:
                this.Main = ((System.Windows.Controls.Frame)(target));
                return;

            case 4:
                this.notifyIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
                return;

            case 5:

            #line 34 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenWindow);

            #line default
            #line hidden
                return;

            case 6:

            #line 35 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.CloseWindow);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 40
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MyNotifyIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
                return;

            case 2:
                this.btnShowStandardBalloon = ((System.Windows.Controls.Button)(target));

            #line 17 "..\..\..\..\Tutorials\05 - Balloons\BalloonSampleWindow.xaml"
                this.btnShowStandardBalloon.Click += new System.Windows.RoutedEventHandler(this.btnShowStandardBalloon_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.btnShowCustomBalloon = ((System.Windows.Controls.Button)(target));

            #line 22 "..\..\..\..\Tutorials\05 - Balloons\BalloonSampleWindow.xaml"
                this.btnShowCustomBalloon.Click += new System.Windows.RoutedEventHandler(this.btnShowCustomBalloon_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.btnHideStandardBalloon = ((System.Windows.Controls.Button)(target));

            #line 38 "..\..\..\..\Tutorials\05 - Balloons\BalloonSampleWindow.xaml"
                this.btnHideStandardBalloon.Click += new System.Windows.RoutedEventHandler(this.btnHideStandardBalloon_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.btnCloseCustomBalloon = ((System.Windows.Controls.Button)(target));

            #line 43 "..\..\..\..\Tutorials\05 - Balloons\BalloonSampleWindow.xaml"
                this.btnCloseCustomBalloon.Click += new System.Windows.RoutedEventHandler(this.btnCloseCustomBalloon_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 41
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Icon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));

            #line 7 "..\..\MainWindow.xaml"
                this.Icon.TrayLeftMouseDown += new System.Windows.RoutedEventHandler(this.Icon_OnTrayLeftMouseDown);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 42
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 14 "..\..\MainWindow.xaml"
                ((ScreenSleep.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MainWindow_OnLoaded);

            #line default
            #line hidden
                return;

            case 2:

            #line 18 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.TurnOff_OnClick);

            #line default
            #line hidden
                return;

            case 3:

            #line 19 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Settings_OnClick);

            #line default
            #line hidden
                return;

            case 4:

            #line 21 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_OnClick);

            #line default
            #line hidden
                return;

            case 5:
                this.MyNotifyIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 43
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 2:
                this.Taskbar = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));

            #line 16 "..\..\MainWindow.xaml"
                this.Taskbar.TrayLeftMouseUp += new System.Windows.RoutedEventHandler(this.Taskbar_OnTrayLeftMouseUp);

            #line default
            #line hidden
                return;

            case 3:

            #line 20 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.PauseMenuItem_OnClick);

            #line default
            #line hidden
                return;

            case 4:

            #line 23 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExitMenuItem_OnClick);

            #line default
            #line hidden
                return;

            case 5:
                this.AddNewItem = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 6:
                this.ItemBox = ((System.Windows.Controls.StackPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 44
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MyNotifyIcon1 = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
                return;

            case 2:
                this.MyNotifyIcon2 = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
                return;

            case 3:
                this.txtToolTip = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 45
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 6 "..\..\MainGUI.xaml"
                ((PhoneDirectory.MainGUI)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.NotifyIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
                return;

            case 3:
                this.mnuOption = ((System.Windows.Controls.MenuItem)(target));

            #line 19 "..\..\MainGUI.xaml"
                this.mnuOption.Click += new System.Windows.RoutedEventHandler(this.mnuOption_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.mnuAboutUs = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 5:
                this.mnuExit = ((System.Windows.Controls.MenuItem)(target));

            #line 21 "..\..\MainGUI.xaml"
                this.mnuExit.Click += new System.Windows.RoutedEventHandler(this.mnuExit_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 46
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.CustomCommandNotifyIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));

            #line 23 "..\..\..\..\Tutorials\06 - Commands\CommandWindow.xaml"
                this.CustomCommandNotifyIcon.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.CustomCommandNotifyIcon_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 2:
                this.RoutedCommandNotifyIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
                return;

            case 3:
                this.txtInput = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 47
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 11 "..\..\..\..\..\MVVM\Main\MainModels\MainWindow.xaml"
                ((BinderV2.MVVM.Views.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden

            #line 11 "..\..\..\..\..\MVVM\Main\MainModels\MainWindow.xaml"
                ((BinderV2.MVVM.Views.MainWindow)(target)).Closed += new System.EventHandler(this.Window_Closed);

            #line default
            #line hidden
                return;

            case 2:
                this.TaskBarIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));

            #line 26 "..\..\..\..\..\MVVM\Main\MainModels\MainWindow.xaml"
                this.TaskBarIcon.TrayMouseDoubleClick += new System.Windows.RoutedEventHandler(this.TaskBarIcon_TrayMouseDoubleClick);

            #line default
            #line hidden
                return;

            case 3:
                this.ShowWindowButton = ((System.Windows.Controls.MenuItem)(target));

            #line 29 "..\..\..\..\..\MVVM\Main\MainModels\MainWindow.xaml"
                this.ShowWindowButton.Click += new System.Windows.RoutedEventHandler(this.ShowWindowButton_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.HideWindowButton = ((System.Windows.Controls.MenuItem)(target));

            #line 30 "..\..\..\..\..\MVVM\Main\MainModels\MainWindow.xaml"
                this.HideWindowButton.Click += new System.Windows.RoutedEventHandler(this.HideWindowButton_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.ExitBut = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 6:

            #line 47 "..\..\..\..\..\MVVM\Main\MainModels\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.BindsScrollViewer = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 8:

            #line 66 "..\..\..\..\..\MVVM\Main\MainModels\MainWindow.xaml"
                ((System.Windows.Controls.ItemsControl)(target)).Loaded += new System.Windows.RoutedEventHandler(this.ItemsControl_Loaded);

            #line default
            #line hidden
                return;

            case 9:
                this.CursorPosition = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.ScriptBox = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 48
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 17 "..\..\..\Main\Base.xaml"
                ((Poli.Makro.Main.Base)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_OnLoaded);

            #line default
            #line hidden

            #line 17 "..\..\..\Main\Base.xaml"
                ((Poli.Makro.Main.Base)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.Window_SizeChanged);

            #line default
            #line hidden

            #line 18 "..\..\..\Main\Base.xaml"
                ((Poli.Makro.Main.Base)(target)).SourceInitialized += new System.EventHandler(this.Window_SourceInitialized);

            #line default
            #line hidden
                return;

            case 2:
                this.TaskbarItemInfo = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;

            case 3:
                this.MyNotifyIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
                return;

            case 4:

            #line 84 "..\..\..\Main\Base.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ColorPickerMini_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.Path1 = ((System.Windows.Shapes.Path)(target));
                return;

            case 6:
                this.Path2 = ((System.Windows.Shapes.Path)(target));
                return;

            case 7:
                this.SideBarTabControl = ((System.Windows.Controls.TabControl)(target));

            #line 153 "..\..\..\Main\Base.xaml"
                this.SideBarTabControl.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.SideBarTabControl_SelectionChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.TabControl = ((System.Windows.Controls.TabControl)(target));
                return;

            case 9:
                this.Title = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 10:

            #line 229 "..\..\..\Main\Base.xaml"
                ((System.Windows.Controls.Border)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.MoveLayer_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 230 "..\..\..\Main\Base.xaml"
                ((System.Windows.Controls.Border)(target)).PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.MoveLayer_PreviewMouseLeftButtonUp);

            #line default
            #line hidden

            #line 231 "..\..\..\Main\Base.xaml"
                ((System.Windows.Controls.Border)(target)).PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.MoveLayer_PreviewMouseLeftButtonDown);

            #line default
            #line hidden

            #line 232 "..\..\..\Main\Base.xaml"
                ((System.Windows.Controls.Border)(target)).PreviewMouseMove += new System.Windows.Input.MouseEventHandler(this.MoveLayer_PreviewMouseMove);

            #line default
            #line hidden
                return;

            case 11:

            #line 235 "..\..\..\Main\Base.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenCommandConsole);

            #line default
            #line hidden
                return;

            case 12:

            #line 276 "..\..\..\Main\Base.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DisposeSomethings);

            #line default
            #line hidden
                return;

            case 13:

            #line 279 "..\..\..\Main\Base.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DisposeSomethings);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 49
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 4 "..\..\..\MainWindow.xaml"
                ((OpcClient.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 4 "..\..\..\MainWindow.xaml"
                ((OpcClient.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden

            #line 5 "..\..\..\MainWindow.xaml"
                ((OpcClient.MainWindow)(target)).StateChanged += new System.EventHandler(this.Window_StateChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.Notify1 = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));

            #line 34 "..\..\..\MainWindow.xaml"
                this.Notify1.TrayLeftMouseUp += new System.Windows.RoutedEventHandler(this.Notify1_TrayLeftMouseUp);

            #line default
            #line hidden
                return;

            case 3:
                this.MnuOpenApp = ((System.Windows.Controls.MenuItem)(target));

            #line 37 "..\..\..\MainWindow.xaml"
                this.MnuOpenApp.Click += new System.Windows.RoutedEventHandler(this.MnuOpenApp_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.MnuExitApp = ((System.Windows.Controls.MenuItem)(target));

            #line 42 "..\..\..\MainWindow.xaml"
                this.MnuExitApp.Click += new System.Windows.RoutedEventHandler(this.MnuExitApp_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.btnConnect = ((System.Windows.Controls.Button)(target));

            #line 48 "..\..\..\MainWindow.xaml"
                this.btnConnect.Click += new System.Windows.RoutedEventHandler(this.btnConnect_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.btnDisConnect = ((System.Windows.Controls.Button)(target));

            #line 49 "..\..\..\MainWindow.xaml"
                this.btnDisConnect.Click += new System.Windows.RoutedEventHandler(this.btnDisConnect_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.lblValue = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.treeGroup = ((System.Windows.Controls.TreeView)(target));

            #line 58 "..\..\..\MainWindow.xaml"
                this.treeGroup.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.treeGroup_SelectedItemChanged);

            #line default
            #line hidden

            #line 58 "..\..\..\MainWindow.xaml"
                this.treeGroup.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.treeGroup_MouseRightButtonDown);

            #line default
            #line hidden
                return;

            case 9:
                this.mnuAddGroup = ((System.Windows.Controls.MenuItem)(target));

            #line 61 "..\..\..\MainWindow.xaml"
                this.mnuAddGroup.Click += new System.Windows.RoutedEventHandler(this.mnuAddGroup_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.mnuRemoveGroup = ((System.Windows.Controls.MenuItem)(target));

            #line 66 "..\..\..\MainWindow.xaml"
                this.mnuRemoveGroup.Click += new System.Windows.RoutedEventHandler(this.mnuRemoveGroup_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.mnuAddServer = ((System.Windows.Controls.MenuItem)(target));

            #line 71 "..\..\..\MainWindow.xaml"
                this.mnuAddServer.Click += new System.Windows.RoutedEventHandler(this.mnuAddServer_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.mnuRemoveServer = ((System.Windows.Controls.MenuItem)(target));

            #line 72 "..\..\..\MainWindow.xaml"
                this.mnuRemoveServer.Click += new System.Windows.RoutedEventHandler(this.mnuRemoveServer_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.lvTag = ((System.Windows.Controls.ListView)(target));

            #line 77 "..\..\..\MainWindow.xaml"
                this.lvTag.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.lvTag_MouseRightButtonDown);

            #line default
            #line hidden

            #line 77 "..\..\..\MainWindow.xaml"
                this.lvTag.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lvTag_SelectionChanged);

            #line default
            #line hidden
                return;

            case 14:
                this.mnuSetValue = ((System.Windows.Controls.MenuItem)(target));

            #line 80 "..\..\..\MainWindow.xaml"
                this.mnuSetValue.Click += new System.Windows.RoutedEventHandler(this.mnuSetValue_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.mnuAddTag = ((System.Windows.Controls.MenuItem)(target));

            #line 85 "..\..\..\MainWindow.xaml"
                this.mnuAddTag.Click += new System.Windows.RoutedEventHandler(this.mnuAddTag_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.mnuRemoveTag = ((System.Windows.Controls.MenuItem)(target));

            #line 90 "..\..\..\MainWindow.xaml"
                this.mnuRemoveTag.Click += new System.Windows.RoutedEventHandler(this.mnuRemoveTag_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 50
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\MainWindow.xaml"
                ((wifiuzaktankontrolpro.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 9 "..\..\MainWindow.xaml"
                ((wifiuzaktankontrolpro.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.txtPort = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 3:
                this.txtBaglanan = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.txtDrm = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.txtIpInfo = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.chkBaslangic = ((System.Windows.Controls.CheckBox)(target));

            #line 15 "..\..\MainWindow.xaml"
                this.chkBaslangic.Checked += new System.Windows.RoutedEventHandler(this.chkBaslangic_chkBox_Checked);

            #line default
            #line hidden

            #line 15 "..\..\MainWindow.xaml"
                this.chkBaslangic.Unchecked += new System.Windows.RoutedEventHandler(this.chkBaslangic_chkBox_Checked);

            #line default
            #line hidden
                return;

            case 7:
                this.ntfTskIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));

            #line 22 "..\..\MainWindow.xaml"
                this.ntfTskIcon.TrayLeftMouseDown += new System.Windows.RoutedEventHandler(this.Taskbar_MouseClick);

            #line default
            #line hidden

            #line 22 "..\..\MainWindow.xaml"
                this.ntfTskIcon.TrayMouseDoubleClick += new System.Windows.RoutedEventHandler(this.ntfTskIcon_TrayMouseDoubleClick);

            #line default
            #line hidden
                return;

            case 8:

            #line 27 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.TaskbarIcon_Exit_Click);

            #line default
            #line hidden
                return;

            case 9:

            #line 28 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.TaskbarIcon_Show_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 51
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 17 "..\..\..\..\Views\RootView.xaml"
                ((LightBulb.Views.RootView)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.RootView_OnClosing);

            #line default
            #line hidden

            #line 19 "..\..\..\..\Views\RootView.xaml"
                ((LightBulb.Views.RootView)(target)).Loaded += new System.Windows.RoutedEventHandler(this.RootView_OnLoaded);

            #line default
            #line hidden
                return;

            case 2:
                this.TaskbarIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));

            #line 44 "..\..\..\..\Views\RootView.xaml"
                this.TaskbarIcon.TrayLeftMouseUp += new System.Windows.RoutedEventHandler(this.TaskbarIcon_OnTrayLeftMouseUp);

            #line default
            #line hidden
                return;

            case 3:
                this.ShowWindowMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 69 "..\..\..\..\Views\RootView.xaml"
                this.ShowWindowMenuItem.Click += new System.Windows.RoutedEventHandler(this.ShowWindowMenuItem_OnClick);

            #line default
            #line hidden
                return;

            case 4:
                this.Header = ((System.Windows.Controls.Border)(target));

            #line 186 "..\..\..\..\Views\RootView.xaml"
                this.Header.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Header_OnMouseDown);

            #line default
            #line hidden
                return;

            case 5:
                this.CloseButton = ((System.Windows.Controls.Button)(target));

            #line 232 "..\..\..\..\Views\RootView.xaml"
                this.CloseButton.Click += new System.Windows.RoutedEventHandler(this.CloseButton_OnClick);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Loging = ((PremiumWebServer.MainWindow)(target));

            #line 18 "..\..\MainWindow.xaml"
                this.Loging.Closing += new System.ComponentModel.CancelEventHandler(this.MetroWindow_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.LoginModel = ((PremiumWebServer.ViewModels.LogingViewModel)(target));
                return;

            case 3:
                this.Validator = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.label = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.CommandConfig = ((System.Windows.Controls.Button)(target));
                return;

            case 6:
                this.txtuser = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.password = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 8:
                this.button = ((System.Windows.Controls.Button)(target));
                return;

            case 9:
                this.t1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 10:

            #line 82 "..\..\MainWindow.xaml"
                ((System.Windows.Documents.Hyperlink)(target)).RequestNavigate += new System.Windows.Navigation.RequestNavigateEventHandler(this.Hyperlink_RequestNavigate);

            #line default
            #line hidden
                return;

            case 11:
                this.t2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 12:

            #line 83 "..\..\MainWindow.xaml"
                ((System.Windows.Documents.Hyperlink)(target)).RequestNavigate += new System.Windows.Navigation.RequestNavigateEventHandler(this.Hyperlink_RequestNavigate);

            #line default
            #line hidden
                return;

            case 13:
                this.MyTask = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
                return;

            case 14:
                this.image = ((System.Windows.Controls.Image)(target));
                return;

            case 15:
                this.imgLoader = ((System.Windows.Controls.Image)(target));
                return;

            case 16:
                this.Welcome = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.username = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.textBlock = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 53
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.timerWindow = ((ShutdownTimer.MainWindow)(target));

            #line 9 "..\..\MainWindow.xaml"
                this.timerWindow.Closing += new System.ComponentModel.CancelEventHandler(this.TimerWindow_Closing);

            #line default
            #line hidden

            #line 9 "..\..\MainWindow.xaml"
                this.timerWindow.StateChanged += new System.EventHandler(this.TimerWindow_StateChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.progress = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 3:
                this.b_0_5hour = ((System.Windows.Controls.Button)(target));

            #line 21 "..\..\MainWindow.xaml"
                this.b_0_5hour.Click += new System.Windows.RoutedEventHandler(this.B_0_5hour_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.b_1hour = ((System.Windows.Controls.Button)(target));

            #line 22 "..\..\MainWindow.xaml"
                this.b_1hour.Click += new System.Windows.RoutedEventHandler(this.B_1hour_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.b_1_5hour = ((System.Windows.Controls.Button)(target));

            #line 23 "..\..\MainWindow.xaml"
                this.b_1_5hour.Click += new System.Windows.RoutedEventHandler(this.B_1_5hour_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.b_2hour = ((System.Windows.Controls.Button)(target));

            #line 24 "..\..\MainWindow.xaml"
                this.b_2hour.Click += new System.Windows.RoutedEventHandler(this.B_2hour_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.tb_hours = ((System.Windows.Controls.TextBox)(target));

            #line 25 "..\..\MainWindow.xaml"
                this.tb_hours.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.Tb_hours_TextChanged);

            #line default
            #line hidden

            #line 25 "..\..\MainWindow.xaml"
                this.tb_hours.GotFocus += new System.Windows.RoutedEventHandler(this.Tb_hours_GotFocus);

            #line default
            #line hidden

            #line 25 "..\..\MainWindow.xaml"
                this.tb_hours.LostFocus += new System.Windows.RoutedEventHandler(this.Tb_hours_LostFocus);

            #line default
            #line hidden
                return;

            case 8:
                this.tb_minutes = ((System.Windows.Controls.TextBox)(target));

            #line 26 "..\..\MainWindow.xaml"
                this.tb_minutes.LostFocus += new System.Windows.RoutedEventHandler(this.Tb_minutes_LostFocus);

            #line default
            #line hidden

            #line 26 "..\..\MainWindow.xaml"
                this.tb_minutes.GotFocus += new System.Windows.RoutedEventHandler(this.Tb_minutes_GotFocus);

            #line default
            #line hidden

            #line 26 "..\..\MainWindow.xaml"
                this.tb_minutes.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.Tb_minutes_TextChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.b_Start = ((System.Windows.Controls.Button)(target));

            #line 27 "..\..\MainWindow.xaml"
                this.b_Start.Click += new System.Windows.RoutedEventHandler(this.B_Start_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.tb_seconds = ((System.Windows.Controls.TextBox)(target));

            #line 28 "..\..\MainWindow.xaml"
                this.tb_seconds.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.Tb_seconds_TextChanged);

            #line default
            #line hidden

            #line 28 "..\..\MainWindow.xaml"
                this.tb_seconds.GotFocus += new System.Windows.RoutedEventHandler(this.Tb_seconds_GotFocus);

            #line default
            #line hidden

            #line 28 "..\..\MainWindow.xaml"
                this.tb_seconds.LostFocus += new System.Windows.RoutedEventHandler(this.Tb_seconds_LostFocus);

            #line default
            #line hidden
                return;

            case 11:
                this.b_Stop = ((System.Windows.Controls.Button)(target));

            #line 29 "..\..\MainWindow.xaml"
                this.b_Stop.Click += new System.Windows.RoutedEventHandler(this.B_Stop_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.rb_Shutdown = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 13:
                this.rb_Restart = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 14:
                this.rb_Lock = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 15:
                this.rb_PlaySound = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 16:

            #line 40 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Label)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseDown);

            #line default
            #line hidden
                return;

            case 17:
                this.rb_Sleep = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 18:
                this.rb_Hibernate = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 19:
                this.tbIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));

            #line 49 "..\..\MainWindow.xaml"
                this.tbIcon.TrayMouseDoubleClick += new System.Windows.RoutedEventHandler(this.TbIcon_TrayMouseDoubleClick);

            #line default
            #line hidden
                return;

            case 20:
                this.toolTipTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 21:
                this.menu = ((System.Windows.Controls.ContextMenu)(target));
                return;

            case 22:
                this.MExpand = ((System.Windows.Controls.MenuItem)(target));

            #line 72 "..\..\MainWindow.xaml"
                this.MExpand.Click += new System.Windows.RoutedEventHandler(this.MExpand_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.MExit = ((System.Windows.Controls.MenuItem)(target));

            #line 73 "..\..\MainWindow.xaml"
                this.MExit.Click += new System.Windows.RoutedEventHandler(this.MExit_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 54
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.headWindow = ((Nirvana.MainWindow)(target));

            #line 19 "..\..\MainWindow.xaml"
                this.headWindow.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 2:
                this.tbi = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
                return;

            case 3:
                this.groupBox = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 4:
                this.lbl_1 = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.cmbx_pl = ((System.Windows.Controls.ComboBox)(target));

            #line 60 "..\..\MainWindow.xaml"
                this.cmbx_pl.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cmbx_pl_SelectionChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.change_pl_chk_box = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 7:
                this.start_stop_btn = ((System.Windows.Controls.Button)(target));

            #line 68 "..\..\MainWindow.xaml"
                this.start_stop_btn.Click += new System.Windows.RoutedEventHandler(this.start_stop_btn_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.lbl_2 = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.cmbx_otkr_1 = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 10:
                this.ckbx_1_1 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 11:
                this.ckbx_1_2 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 12:
                this.ckbx_1_3 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 13:
                this.lbl_3 = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.cmbx_otkr_2 = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 15:
                this.ckbx_2_1 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 16:
                this.ckbx_2_2 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 17:
                this.ckbx_2_3 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 18:
                this.lbl_4 = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.cmbx_otkr_3 = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 20:
                this.ckbx_3_1 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 21:
                this.ckbx_3_2 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 22:
                this.ckbx_3_3 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 23:
                this.lbl_5 = ((System.Windows.Controls.Label)(target));
                return;

            case 24:
                this.cmbx_otkr_4 = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 25:
                this.ckbx_4_1 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 26:
                this.ckbx_4_2 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 27:
                this.ckbx_4_3 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 28:
                this.lbl_6 = ((System.Windows.Controls.Label)(target));
                return;

            case 29:
                this.cmbx_otkr_5 = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 30:
                this.ckbx_5_1 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 31:
                this.ckbx_5_2 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 32:
                this.ckbx_5_3 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 33:
                this.lbl_7 = ((System.Windows.Controls.Label)(target));
                return;

            case 34:
                this.cmbx_otkr_6 = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 35:
                this.ckbx_6_1 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 36:
                this.ckbx_6_2 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 37:
                this.ckbx_6_3 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 38:
                this.lbl_8 = ((System.Windows.Controls.Label)(target));
                return;

            case 39:
                this.cmbx_otkr_7 = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 40:
                this.ckbx_7_1 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 41:
                this.ckbx_7_2 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 42:
                this.ckbx_7_3 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 43:
                this.lbl_9 = ((System.Windows.Controls.Label)(target));
                return;

            case 44:
                this.cmbx_otkr_8 = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 45:
                this.ckbx_8_1 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 46:
                this.ckbx_8_2 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 47:
                this.ckbx_8_3 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 48:
                this.lbl_10 = ((System.Windows.Controls.Label)(target));
                return;

            case 49:
                this.cmbx_otkr_9 = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 50:
                this.ckbx_9_1 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 51:
                this.ckbx_9_2 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 52:
                this.ckbx_9_3 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 53:
                this.lbl_11 = ((System.Windows.Controls.Label)(target));
                return;

            case 54:
                this.cmbx_sham = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 55:
                this.ckbx_10_1 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 56:
                this.ckbx_10_2 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 57:
                this.ckbx_10_3 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 58:
                this.groupBox1 = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 59:
                this.lbl_cmd_1 = ((System.Windows.Controls.Label)(target));
                return;

            case 60:
                this.peresbor_v_nirku = ((System.Windows.Controls.TextBox)(target));
                return;

            case 61:
                this.lbl_cmd_2 = ((System.Windows.Controls.Label)(target));
                return;

            case 62:
                this.fiznirka = ((System.Windows.Controls.TextBox)(target));
                return;

            case 63:
                this.lbl_cmd_3 = ((System.Windows.Controls.Label)(target));
                return;

            case 64:
                this.peresbor = ((System.Windows.Controls.TextBox)(target));
                return;

            case 65:
                this.lbl_cmd_4 = ((System.Windows.Controls.Label)(target));
                return;

            case 66:
                this.party_and_pl = ((System.Windows.Controls.TextBox)(target));
                return;

            case 67:
                this.lbl_cmd_5 = ((System.Windows.Controls.Label)(target));
                return;

            case 68:
                this.rebaf = ((System.Windows.Controls.TextBox)(target));
                return;

            case 69:
                this.lbl_cmd_6 = ((System.Windows.Controls.Label)(target));
                return;

            case 70:
                this.to_him = ((System.Windows.Controls.TextBox)(target));
                return;

            case 71:
                this.lbl_cmd_7 = ((System.Windows.Controls.Label)(target));
                return;

            case 72:
                this.stop = ((System.Windows.Controls.TextBox)(target));
                return;

            case 73:
                this.button = ((System.Windows.Controls.Button)(target));

            #line 247 "..\..\MainWindow.xaml"
                this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click);

            #line default
            #line hidden
                return;

            case 74:
                this.log_box = ((System.Windows.Controls.RichTextBox)(target));
                return;

            case 75:
                this.save_btn = ((System.Windows.Controls.Button)(target));
                return;

            case 76:
                this.test_btn = ((System.Windows.Controls.Button)(target));

            #line 260 "..\..\MainWindow.xaml"
                this.test_btn.Click += new System.Windows.RoutedEventHandler(this.test_btn_Click);

            #line default
            #line hidden
                return;

            case 77:
                this.hide_btn = ((System.Windows.Controls.Button)(target));
                return;

            case 78:
                this.loging_btn = ((System.Windows.Controls.Button)(target));
                return;

            case 79:
                this.offset_btn = ((System.Windows.Controls.Button)(target));
                return;

            case 80:
                this.grid_loging = ((System.Windows.Controls.Grid)(target));
                return;

            case 81:
                this.groupBox_logging = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 82:
                this.listAccount = ((System.Windows.Controls.ListBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 55
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 19 "..\..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.hnd_IconDClick);

            #line default
            #line hidden

            #line 20 "..\..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.hnd_CanDClickActivate);

            #line default
            #line hidden
                return;

            case 2:
                this.tbi = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
                return;

            case 3:

            #line 32 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.hnd_MenuOpenFile);

            #line default
            #line hidden
                return;

            case 4:

            #line 33 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.hnd_MenuOpenFolder);

            #line default
            #line hidden
                return;

            case 5:

            #line 34 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.hnd_MenuSetting);

            #line default
            #line hidden
                return;

            case 6:

            #line 35 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.hnd_MenuSwVisibility);

            #line default
            #line hidden
                return;

            case 7:

            #line 36 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.hnd_MenuEnd);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 56
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Client = ((DVData.MainWindow)(target));

            #line 9 "..\..\MainWindow.xaml"
                this.Client.Closed += new System.EventHandler(this.Client_Closed);

            #line default
            #line hidden
                return;

            case 2:
                this.prime = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.tbi = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
                return;

            case 4:
                this.ToolInfo = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.Popisek = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.DVData_MI = ((System.Windows.Controls.MenuItem)(target));

            #line 48 "..\..\MainWindow.xaml"
                this.DVData_MI.Click += new System.Windows.RoutedEventHandler(this.DVData_MI_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.Add_MI = ((System.Windows.Controls.MenuItem)(target));

            #line 50 "..\..\MainWindow.xaml"
                this.Add_MI.Click += new System.Windows.RoutedEventHandler(this.Add_MI_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.Refresh_MI = ((System.Windows.Controls.MenuItem)(target));

            #line 51 "..\..\MainWindow.xaml"
                this.Refresh_MI.Click += new System.Windows.RoutedEventHandler(this.Refresh_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.Search_CSFD_MI = ((System.Windows.Controls.MenuItem)(target));

            #line 53 "..\..\MainWindow.xaml"
                this.Search_CSFD_MI.Click += new System.Windows.RoutedEventHandler(this.Find_CSFD_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.Search_Data_MI = ((System.Windows.Controls.MenuItem)(target));

            #line 54 "..\..\MainWindow.xaml"
                this.Search_Data_MI.Click += new System.Windows.RoutedEventHandler(this.Find_Data_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.Update_MI = ((System.Windows.Controls.MenuItem)(target));

            #line 56 "..\..\MainWindow.xaml"
                this.Update_MI.Click += new System.Windows.RoutedEventHandler(this.Update_MI_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.Silent_MI = ((System.Windows.Controls.MenuItem)(target));

            #line 57 "..\..\MainWindow.xaml"
                this.Silent_MI.Click += new System.Windows.RoutedEventHandler(this.Silent_MI_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.Close_MI = ((System.Windows.Controls.MenuItem)(target));

            #line 58 "..\..\MainWindow.xaml"
                this.Close_MI.Click += new System.Windows.RoutedEventHandler(this.Close_MI_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.Filmy = ((System.Windows.Controls.DataGrid)(target));

            #line 63 "..\..\MainWindow.xaml"
                this.Filmy.AutoGeneratedColumns += new System.EventHandler(this.Filmy_AutoGeneratedColumns);

            #line default
            #line hidden

            #line 63 "..\..\MainWindow.xaml"
                this.Filmy.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.Properties);

            #line default
            #line hidden
                return;

            case 15:
                this.Add_DG = ((System.Windows.Controls.MenuItem)(target));

            #line 66 "..\..\MainWindow.xaml"
                this.Add_DG.Click += new System.Windows.RoutedEventHandler(this.Add_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.Edit_DG = ((System.Windows.Controls.MenuItem)(target));

            #line 67 "..\..\MainWindow.xaml"
                this.Edit_DG.Click += new System.Windows.RoutedEventHandler(this.Edit_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.Delete_DG = ((System.Windows.Controls.MenuItem)(target));

            #line 68 "..\..\MainWindow.xaml"
                this.Delete_DG.Click += new System.Windows.RoutedEventHandler(this.Delete_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.Refresh_DG = ((System.Windows.Controls.MenuItem)(target));

            #line 69 "..\..\MainWindow.xaml"
                this.Refresh_DG.Click += new System.Windows.RoutedEventHandler(this.Refresh_DG_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.Find_Data_DG = ((System.Windows.Controls.MenuItem)(target));

            #line 71 "..\..\MainWindow.xaml"
                this.Find_Data_DG.Click += new System.Windows.RoutedEventHandler(this.Find_CSFD_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.Find_CSFD_DG = ((System.Windows.Controls.MenuItem)(target));

            #line 72 "..\..\MainWindow.xaml"
                this.Find_CSFD_DG.Click += new System.Windows.RoutedEventHandler(this.Find_Data_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.fce = ((System.Windows.Controls.Expander)(target));
                return;

            case 22:
                this.Pridat = ((System.Windows.Controls.Button)(target));

            #line 93 "..\..\MainWindow.xaml"
                this.Pridat.Click += new System.Windows.RoutedEventHandler(this.Add_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.Edit = ((System.Windows.Controls.Button)(target));

            #line 94 "..\..\MainWindow.xaml"
                this.Edit.Click += new System.Windows.RoutedEventHandler(this.Edit_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.Delete = ((System.Windows.Controls.Button)(target));

            #line 95 "..\..\MainWindow.xaml"
                this.Delete.Click += new System.Windows.RoutedEventHandler(this.Delete_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.Refresh = ((System.Windows.Controls.Button)(target));

            #line 96 "..\..\MainWindow.xaml"
                this.Refresh.Click += new System.Windows.RoutedEventHandler(this.Refresh_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.fce_Copy = ((System.Windows.Controls.Expander)(target));
                return;

            case 27:
                this.Find_CSFD = ((System.Windows.Controls.Button)(target));

            #line 109 "..\..\MainWindow.xaml"
                this.Find_CSFD.Click += new System.Windows.RoutedEventHandler(this.Find_CSFD_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.Find_Data = ((System.Windows.Controls.Button)(target));

            #line 110 "..\..\MainWindow.xaml"
                this.Find_Data.Click += new System.Windows.RoutedEventHandler(this.Find_Data_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.Rate = ((System.Windows.Controls.Button)(target));

            #line 114 "..\..\MainWindow.xaml"
                this.Rate.Click += new System.Windows.RoutedEventHandler(this.Rate_click);

            #line default
            #line hidden
                return;

            case 30:
                this.Update = ((System.Windows.Controls.Button)(target));

            #line 120 "..\..\MainWindow.xaml"
                this.Update.Click += new System.Windows.RoutedEventHandler(this.Update_click);

            #line default
            #line hidden
                return;

            case 31:
                this.status = ((System.Windows.Controls.Label)(target));
                return;

            case 32:
                this.CurrentState = ((System.Windows.Controls.Label)(target));
                return;

            case 33:
                this.Progress = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 34:
                this.Addment = ((System.Windows.Controls.Label)(target));
                return;

            case 35:
                this.dsa = ((System.Windows.Controls.Grid)(target));

            #line 150 "..\..\MainWindow.xaml"
                this.dsa.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.pok);

            #line default
            #line hidden
                return;

            case 36:

            #line 151 "..\..\MainWindow.xaml"
                ((System.Windows.Shapes.Rectangle)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.pok);

            #line default
            #line hidden
                return;

            case 37:

            #line 164 "..\..\MainWindow.xaml"
                ((System.Windows.Shapes.Rectangle)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.pok);

            #line default
            #line hidden
                return;

            case 38:

            #line 174 "..\..\MainWindow.xaml"
                ((System.Windows.Shapes.Rectangle)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.pok);

            #line default
            #line hidden
                return;

            case 39:

            #line 184 "..\..\MainWindow.xaml"
                ((System.Windows.Shapes.Rectangle)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.pok);

            #line default
            #line hidden
                return;

            case 40:

            #line 194 "..\..\MainWindow.xaml"
                ((System.Windows.Shapes.Rectangle)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.pok);

            #line default
            #line hidden
                return;

            case 41:
                this.InfoPanel = ((System.Windows.Controls.ScrollViewer)(target));

            #line 205 "..\..\MainWindow.xaml"
                this.InfoPanel.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.InfoPanel_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 42:
                this.InfoGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 43:
                this.CloseHint = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 44:
                this.close = ((System.Windows.Controls.TextBlock)(target));

            #line 235 "..\..\MainWindow.xaml"
                this.close.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.HideInfoPanel);

            #line default
            #line hidden
                return;

            case 45:
                this.NewVersion = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 46:
                this.DescribeNewVersion = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 47:
                this.odkazNaGoid = ((System.Windows.Controls.TextBlock)(target));

            #line 257 "..\..\MainWindow.xaml"
                this.odkazNaGoid.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.odkazNaGoid_MouseDown);

            #line default
            #line hidden
                return;

            case 48:
                this.Error_Mail = ((System.Windows.Controls.TextBox)(target));
                return;

            case 49:
                this.Error_Message = ((System.Windows.Controls.RichTextBox)(target));
                return;

            case 50:
                this.Error_Send = ((System.Windows.Controls.Button)(target));

            #line 284 "..\..\MainWindow.xaml"
                this.Error_Send.Click += new System.Windows.RoutedEventHandler(this.error_send_Click);

            #line default
            #line hidden
                return;

            case 51:
                this.Upgrade_Mail = ((System.Windows.Controls.TextBox)(target));
                return;

            case 52:
                this.Upgrade_Message = ((System.Windows.Controls.RichTextBox)(target));
                return;

            case 53:
                this.Upgrade_Send = ((System.Windows.Controls.Button)(target));

            #line 300 "..\..\MainWindow.xaml"
                this.Upgrade_Send.Click += new System.Windows.RoutedEventHandler(this.upgrade_send_Click);

            #line default
            #line hidden
                return;

            case 54:
                this.Reload = ((System.Windows.Controls.Button)(target));

            #line 307 "..\..\MainWindow.xaml"
                this.Reload.Click += new System.Windows.RoutedEventHandler(this.Reload_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 57
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 53 "..\..\..\Showcase\ShowcaseWindow.xaml"
                ((System.Windows.Controls.Grid)(target)).AddHandler(System.Windows.Documents.Hyperlink.RequestNavigateEvent, new System.Windows.Navigation.RequestNavigateEventHandler(this.OnNavigationRequest));

            #line default
            #line hidden
                return;

            case 2:
                this.tb = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
                return;

            case 3:
                this.Balloons = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.txtBalloonTitle = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.txtBalloonText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.rbInfo = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 7:
                this.rbError = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 8:
                this.rbCustomIcon = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 9:
                this.showBalloonTip = ((System.Windows.Controls.Button)(target));

            #line 175 "..\..\..\Showcase\ShowcaseWindow.xaml"
                this.showBalloonTip.Click += new System.Windows.RoutedEventHandler(this.showBalloonTip_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.hideBalloonTip = ((System.Windows.Controls.Button)(target));

            #line 193 "..\..\..\Showcase\ShowcaseWindow.xaml"
                this.hideBalloonTip.Click += new System.Windows.RoutedEventHandler(this.hideBalloonTip_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.Popups = ((System.Windows.Controls.Grid)(target));
                return;

            case 12:
                this.lstPopupTrigger = ((System.Windows.Controls.ListBox)(target));
                return;

            case 13:
                this.ToolTips = ((System.Windows.Controls.Grid)(target));
                return;

            case 14:
                this.txtToolTipText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:
                this.removeToolTip = ((System.Windows.Controls.Button)(target));

            #line 321 "..\..\..\Showcase\ShowcaseWindow.xaml"
                this.removeToolTip.Click += new System.Windows.RoutedEventHandler(this.removeToolTip_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.ContextMenus = ((System.Windows.Controls.Grid)(target));
                return;

            case 17:
                this.lstMenuTrigger = ((System.Windows.Controls.ListBox)(target));
                return;

            case 18:
                this.CustomBalloons = ((System.Windows.Controls.Grid)(target));
                return;

            case 19:
                this.showCustomBalloon = ((System.Windows.Controls.Button)(target));

            #line 432 "..\..\..\Showcase\ShowcaseWindow.xaml"
                this.showCustomBalloon.Click += new System.Windows.RoutedEventHandler(this.showCustomBalloon_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.customBalloonTitle = ((System.Windows.Controls.TextBox)(target));
                return;

            case 21:
                this.hideCustomBalloon = ((System.Windows.Controls.Button)(target));

            #line 465 "..\..\..\Showcase\ShowcaseWindow.xaml"
                this.hideCustomBalloon.Click += new System.Windows.RoutedEventHandler(this.hideCustomBalloon_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.Common = ((System.Windows.Controls.Grid)(target));
                return;

            case 23:
                this.iconVisibility = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 24:
                this.iconList = ((System.Windows.Controls.ListBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 58
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.aMainWindow = ((FolderMonitor.MainWindow)(target));

            #line 8 "..\..\MainWindow.xaml"
                this.aMainWindow.Loaded += new System.Windows.RoutedEventHandler(this.AppLoaded);

            #line default
            #line hidden

            #line 9 "..\..\MainWindow.xaml"
                this.aMainWindow.Closing += new System.ComponentModel.CancelEventHandler(this.AppClosing);

            #line default
            #line hidden
                return;

            case 2:

            #line 12 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.CloseApp);

            #line default
            #line hidden
                return;

            case 3:
                this.FoldersList = ((System.Windows.Controls.ListView)(target));
                return;

            case 5:
                this.SourceBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.SourceBtn = ((System.Windows.Controls.Button)(target));

            #line 53 "..\..\MainWindow.xaml"
                this.SourceBtn.Click += new System.Windows.RoutedEventHandler(this.OpenFileBrowser);

            #line default
            #line hidden
                return;

            case 7:
                this.DestBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.DestBtn = ((System.Windows.Controls.Button)(target));

            #line 57 "..\..\MainWindow.xaml"
                this.DestBtn.Click += new System.Windows.RoutedEventHandler(this.OpenFileBrowser);

            #line default
            #line hidden
                return;

            case 9:

            #line 59 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddSource);

            #line default
            #line hidden
                return;

            case 10:
                this.CloseToTray = ((System.Windows.Controls.CheckBox)(target));

            #line 66 "..\..\MainWindow.xaml"
                this.CloseToTray.Click += new System.Windows.RoutedEventHandler(this.CloseToTray_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.RunOnStartup = ((System.Windows.Controls.CheckBox)(target));

            #line 67 "..\..\MainWindow.xaml"
                this.RunOnStartup.Click += new System.Windows.RoutedEventHandler(this.RunOnStartup_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.IntegrateXBMC = ((System.Windows.Controls.CheckBox)(target));

            #line 68 "..\..\MainWindow.xaml"
                this.IntegrateXBMC.Click += new System.Windows.RoutedEventHandler(this.IntegrateXBMC_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.XBMCConnectionInfo = ((System.Windows.Controls.Grid)(target));
                return;

            case 14:
                this.XBMCPort = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:
                this.XBMCUser = ((System.Windows.Controls.TextBox)(target));
                return;

            case 16:
                this.XBMCPassword = ((System.Windows.Controls.TextBox)(target));
                return;

            case 17:

            #line 90 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveXBMCSettings);

            #line default
            #line hidden
                return;

            case 18:
                this.FilterDataTypes = ((System.Windows.Controls.TextBox)(target));
                return;

            case 19:

            #line 99 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveFilterDataTypes);

            #line default
            #line hidden
                return;

            case 20:
                this.ErrorList = ((System.Windows.Controls.ListView)(target));
                return;

            case 23:
                this.WindowStatusBar = ((System.Windows.Controls.Primitives.StatusBar)(target));
                return;

            case 24:
                this.XBMCConnectionStatus = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 25:
                this.XBMCConnectionStatusImage = ((System.Windows.Controls.Image)(target));
                return;

            case 26:
                this.XBMCConnectionMenuHeader = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 27:
                this.XBMCConnectionStatusText = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 28:
                this.NotifyIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
                return;

            case 29:

            #line 153 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.CloseApp);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 59
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainForm = ((Currency_Converter.MainWindow)(target));

            #line 21 "..\..\MainWindow.xaml"
                this.MainForm.Activated += new System.EventHandler(this.MainForm_Activated);

            #line default
            #line hidden

            #line 21 "..\..\MainWindow.xaml"
                this.MainForm.Closed += new System.EventHandler(this.MainForm_Closed);

            #line default
            #line hidden
                return;

            case 2:
                this.MainGrid = ((System.Windows.Controls.Grid)(target));

            #line 61 "..\..\MainWindow.xaml"
                this.MainGrid.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.DragForm);

            #line default
            #line hidden
                return;

            case 3:
                this.Tray = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));

            #line 67 "..\..\MainWindow.xaml"
                this.Tray.TrayLeftMouseDown += new System.Windows.RoutedEventHandler(this.TaskbarIcon_TrayLeftMouseDown);

            #line default
            #line hidden
                return;

            case 4:

            #line 70 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Course_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 71 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Calcutator_Click);

            #line default
            #line hidden
                return;

            case 6:

            #line 73 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Settings);

            #line default
            #line hidden
                return;

            case 7:

            #line 74 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.AppSettings);

            #line default
            #line hidden
                return;

            case 8:

            #line 76 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Close);

            #line default
            #line hidden
                return;

            case 9:
                this.Back = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 10:

            #line 94 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Settings);

            #line default
            #line hidden
                return;

            case 11:

            #line 109 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AppSettings);

            #line default
            #line hidden
                return;

            case 12:

            #line 125 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.TrayMinimized);

            #line default
            #line hidden
                return;

            case 13:

            #line 146 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Minimized);

            #line default
            #line hidden
                return;

            case 14:
                this.CloseForm = ((System.Windows.Controls.Button)(target));

            #line 162 "..\..\MainWindow.xaml"
                this.CloseForm.Click += new System.Windows.RoutedEventHandler(this.Close);

            #line default
            #line hidden
                return;

            case 15:
                this.Loader = ((System.Windows.Controls.Grid)(target));
                return;

            case 16:
                this.Page_Loader = ((System.Windows.Controls.Frame)(target));
                return;

            case 17:
                this.Course = ((System.Windows.Controls.Button)(target));

            #line 195 "..\..\MainWindow.xaml"
                this.Course.Click += new System.Windows.RoutedEventHandler(this.Course_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.Calcutator = ((System.Windows.Controls.Button)(target));

            #line 220 "..\..\MainWindow.xaml"
                this.Calcutator.Click += new System.Windows.RoutedEventHandler(this.Calcutator_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 60
-1
        public MainWindow()
        {
            InitializeComponent();

            AppBootstrapper = new AppBootstrapper();
            DataContext = AppBootstrapper;

            UpdateDwmBorder();

            taskbarIcon = new TaskbarIcon();

            MessageBus.Current.Listen<bool>("IsPlaying").Subscribe(x => {
                taskbarIcon.IconSource = x ?
                   new BitmapImage(new Uri("pack://application:,,,/Play;component/Images/status-icon-on.ico")) :
                   new BitmapImage(new Uri("pack://application:,,,/Play;component/Images/status-icon-off.ico"));

                taskbarIcon.Visibility = Visibility.Visible;
            });

            taskbarIcon.LeftClickCommand = ReactiveCommand.Create(_ => true, _ => {
                if (WindowState == WindowState.Minimized) {
                    WindowState = WindowState.Normal;
                }

                Show();
            });
        }