Example #1
0
        public PopUpViewModel(
            AccountsOverviewViewModel accountsOverviewViewModel,
            AddAccountDialogViewModel addAccountDialogViewModel,
            EventBroker eventBroker)
        {
            eventBroker.Register(this);
            this.accountsOverviewViewModel = accountsOverviewViewModel;
            this.addAccountDialogViewModel = addAccountDialogViewModel;

            this.SetViewContent(this.accountsOverviewViewModel);
        }
        public PopUpViewModel(
            AccountsOverviewViewModel accountsOverviewViewModel,
            AddAccountDialogViewModel addAccountDialogViewModel,
            EventBroker eventBroker)
        {
            eventBroker.Register(this);
            this.accountsOverviewViewModel = accountsOverviewViewModel;
            this.addAccountDialogViewModel = addAccountDialogViewModel;

            this.SetViewContent(this.accountsOverviewViewModel);
        }
 public WebDriveManagerTaskBarIcon(
     TaskbarIcon taskbarIcon,
     AccountsOverviewViewModel accountsOverviewViewModel,
     AddAccountDialogViewModel addAccountDialogViewModel, 
     EventBroker eventBroker)
 {
     this.taskbarIcon = taskbarIcon;
     this.accountsOverviewViewModel = accountsOverviewViewModel;
     this.addAccountDialogViewModel = addAccountDialogViewModel;
     this.eventBroker = eventBroker;
     this.taskbarIcon.TrayMiddleMouseDown += (sender, args) => Application.Current.Shutdown();
     this.taskbarIcon.TrayPopupOpen += (sender, args) => this.taskbarIcon.TrayPopup.SetValue(UIElement.VisibilityProperty, Visibility.Visible);
     this.taskbarIcon.TrayPopup = this.CreatePopup();
     ////this.taskbarIcon.TrayToolTip = this.CreateToolTip(gameClient);
     this.taskbarIcon.ToolTip = "WebDriveManager";
     this.taskbarIcon.Icon = Resources.webdrivemanager;
 }