Exemplo n.º 1
0
        public MainWindow()
        {
            _pivotalNotifier = null;
            _extendedNotifyIcon = new ExtendedNotifyIcon();
            _extendedNotifyIcon.MouseLeave += extendedNotifyIcon_OnHideWindow;
            _extendedNotifyIcon.MouseMove += extendedNotifyIcon_OnShowWindow;
            _extendedNotifyIcon.targetNotifyIcon.Text = Properties.Resources.MainWindow_MainWindow_Popup_Text;
            SetNotifyIcon("Red");

            InitializeComponent();

            SetWindowToBottomRightOfScreen();
            Opacity = 0;
            uiGridMain.Opacity = 0;

            _gridFadeOutStoryBoard = (Storyboard)TryFindResource("gridFadeOutStoryBoard");
            _gridFadeOutStoryBoard.Completed += GridFadeOutStoryBoardCompleted;
            _gridFadeInStoryBoard = (Storyboard)TryFindResource("gridFadeInStoryBoard");
            _gridFadeInStoryBoard.Completed += GridFadeInStoryBoardCompleted;
        }
Exemplo n.º 2
0
        private void InitializePivotalNotifier()
        {
            _pivotalNotifier = new PivotalNotifier(Properties.Settings.Default.Token, Properties.Settings.Default.ProjectId)
                                   {
                                       NewTask = Properties.Settings.Default.TaskCriada,
                                       DeletedTask = Properties.Settings.Default.TaskDeletada,
                                       DeliveredTask = Properties.Settings.Default.TaskEntregue,
                                       FinishedTask = Properties.Settings.Default.TaskFinalizada,
                                       StartedTask = Properties.Settings.Default.TaskIniciada
                                   };

            _pivotalNotifier.OnCreatedTask += _pivotalNotifier_OnCreatedTask;
            _pivotalNotifier.OnStartedTask += _pivotalNotifier_OnStartedTask;
            _pivotalNotifier.OnDeletedTask += _pivotalNotifier_OnDeletedTask;
            _pivotalNotifier.OnDeliveredTask += _pivotalNotifier_OnDeliveredTask;
            _pivotalNotifier.OnFinishedTask += _pivotalNotifier_OnFinishedTask;
        }
Exemplo n.º 3
0
 public CreateTask(PivotalNotifier pivotalNotifier)
 {
     _pivotalNotifier = pivotalNotifier;
     InitializeComponent();
 }