Exemplo n.º 1
0
        private void lab3_var7_button2_Click(object sender, EventArgs e)
        {
            Blouse p1 = new Blouse();
            Label  l  = new Label();

            l.AutoSize = true;
            l.Parent   = flowLayoutPanel1;
            l.Text     = "Створено Куртку: " + p1.name;
            toolStripStatusLabel1.Text = "Кількість об'єктів: " + Outerwear.count;
        }
Exemplo n.º 2
0
        private void lab3_var7_button1_Click_1(object sender, EventArgs e)
        {
            Blouse    p1 = new Blouse();
            Jacket    d1 = new Jacket();
            Outerwear f;

            f = p1;
            f.InfoLab3();
            f = d1;
            f.InfoLab3();
            toolStripStatusLabel1.Text = "Кількість об'єктів: " + Outerwear.count;
        }
Exemplo n.º 3
0
        private void lab3_var7_button3_Click(object sender, EventArgs e)
        {
            String name_cons, color_cons; int size_cons;

            name_cons  = Convert.ToString(Interaction.InputBox("Введіть назву для куртки\n", "Створюємо Куртку", "LeeCo"));
            color_cons = Convert.ToString(Interaction.InputBox("Введіть колір", name_cons, "Сірий"));
            size_cons  = Convert.ToInt32(Interaction.InputBox("Введіть розмір\n", name_cons, "38"));
            Blouse blouse = new Blouse(name_cons, color_cons, size_cons);
            Label  l      = new Label();

            l.AutoSize = true;
            l.Parent   = flowLayoutPanel1;
            l.Text     = "Створено Пальто: " + blouse.name;
            toolStripStatusLabel1.Text = "Кількість об'єктів: " + Outerwear.count;
        }