예제 #1
0
        private void ShowMessage(string message, int?delay = 5)
        {
            TaskBar bar = new TaskBar();

            bar.Left = SystemParameters.WorkArea.Size.Width - bar.Width;
            bar.Top  = SystemParameters.WorkArea.Size.Height - bar.Height;

            bar.Topmost = true;

            bar.txtMessage.Text = message;
            bar.Show();
            if (delay.HasValue)
            {
                bar.CloseMessage(delay.Value);
            }
        }