using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Notification_CS
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            #if DEBUG
                MinimizeBox = false;
            #else
                MinimizeBox = true;
            #endif
        }

        private void button1_Click(object sender, EventArgs e)
        {
            notification1.Text = "Позвони родителям!";
            notification1.Caption = "Демонстрация примера";
            notification1.Critical = true;

            // Уведомление висит на экране 10 секунд
            notification1.InitialDuration = 10;
            notification1.Visible = true;

        }
    }
}