Exemple #1
0
        private void ShowNotifyMessage(string message, int second)
        {
            soundPlayer.PlaySync();

            TaskbarMessage element = new TaskbarMessage()
            {
                Text = message, actionClick = () => taskbar.CloseBalloon()
            };

            taskbar.ShowCustomBalloon(element, System.Windows.Controls.Primitives.PopupAnimation.Slide, second * 1000);
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.message = ((Time_Owner.TaskbarMessage)(target));
                return;

            case 2:

            #line 10 "..\..\TaskbarMessage.xaml"
                ((System.Windows.Controls.Label)(target)).MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.OnClick);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }