public TreyNotifyWindow()
        {
            InitializeComponent();

            TrayPos tpos = new TrayPos();
            tpos.getXY((int)this.Width, (int)this.Height, out top, out left, out prop, out end);
            this.Top = top;
            this.Left = left;

            var animationDuration = TimeSpan.FromSeconds(1);
            anim = new DoubleAnimation(end, animationDuration);
        }
        public NewMessageWindow(LongPullMessageModel longPullMessageModel)
        {
            _longPullMessageModel = longPullMessageModel;

            Message message = new Message();

            message.message = _longPullMessageModel.response.messages.items[0].body;
            message.Author  = _longPullMessageModel.response.profiles[0].first_name + " " + _longPullMessageModel.response.profiles[0].last_name;
            message.Photo   = _longPullMessageModel.response.profiles[0].photo_medium_rec;

            DataContext = message;

            InitializeComponent();
            TrayPos tpos = new TrayPos();

            tpos.getXY((int)this.Width, (int)this.Height, out top, out left, out prop, out end);
            this.Top  = top;
            this.Left = left;
            anim      = new DoubleAnimation(end, TimeSpan.FromSeconds(1));
        }