Dasturlashda wpf texnologiyasidan foydalanish


Download 36.8 Kb.
Sana13.01.2022
Hajmi36.8 Kb.
#328950
guliruxsor
Bog'liq
glossariy 2, glossariy 2, 7mavzu savollari, 7mavzu savollari, eko 3 lab, eko 3 lab, 1 oktabr ustoz va murabbiylar kuniga bag(1), My diplom work, My diplom work, ispolzovanie-arheologicheskogo-materiala-v-obrazovatelnyh-uchrezhdeniyah, kitob 2 yuridika, 9-sinf yangi ish reja IXTA, 9-sinf yangi ish reja IXTA, Bozor iqtisodiyoti - Vikipediya, Menejment - Vikipediya

4-kun

Dasturlashda WPF texnologiyasidan foydalanish

Windows application form oynasida ikki sonning ko’paytmasi ayirmasini topishga oid dastur tuzdik.quyida dastur matni

/*
 * Created by SharpDevelop.


 * User: Администратор
 * Date: 24.04.2021
 * Time: 11:08
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using  System;
using  System.Collections.Generic;
using  System.Drawing;
using  System.Windows.Forms;

namespace dsfsfs
{
    /// <summary>
    /// Description of MainForm.
    /// </summary>
    public partial class MainForm : Form
    {
        public MainForm()
        {
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
            InitializeComponent();
            
            //
            // TODO: Add constructor code after the InitializeComponent() call.
            //
        }
        
        void Label1Click(object sender, EventArgs e)
        {
            
        }
        
        void Button1Click(object sender, EventArgs e)
        {
            double a=double.Parse(textBox1.Text);
            double b=double.Parse(textBox2.Text);
            if (checkBox1.Checked)
                label3.Text=Convert.ToString(a*b);
            
            
            
        }
        
        void Button2Click(object sender, EventArgs e)
        {
            double a=double.Parse(textBox1.Text);
            double b=double.Parse(textBox2.Text);
            if (checkBox2.Checked)
                label4.Text=Convert.ToString(a-b);
            
            
        }
    }
}

dastur natijasi




Download 36.8 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2022
ma'muriyatiga murojaat qiling