Ilovalar.
Ushbu dastur Bitiruv malakaviy ishi uchun tayorladim. Bu dstur orqali BMI ni oson shakilda ko’rib chiqish mumkun. Visual studio c# dasturida tuzilgan:
Dastur ko’di:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
namespace Bimi_oynasi
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void label1_Click(object sender, EventArgs e)
{
}
private void label14_Click(object sender, EventArgs e)
{
}
private void button3_Click(object sender, EventArgs e)
{
panel2.Visible = false; webBrowser1.Visible = true;
webBrowser1.Location = new Point(184, 3);
webBrowser1.Size = new Size(774, 749);
webBrowser1.Navigate(Environment.CurrentDirectory + "\\bimi himoyasi.pdf");
}
private void button1_Click(object sender, EventArgs e)
{
panel1.Visible = false; panel2.Visible = false; panel3.Visible = true;
panel3.Location = new Point(184, 3);
panel3.Size = new Size(774, 749); webBrowser1.Visible = false;
}
private void button15_Click(object sender, EventArgs e)
{
webBrowser1.Visible = true;
webBrowser1.Location = new Point(184, 3);
webBrowser1.Size = new Size(774, 749);
webBrowser1.Navigate(Environment.CurrentDirectory+"\\kirish.pdf");
}
private void button14_Click(object sender, EventArgs e)
{
}
private void button17_Click(object sender, EventArgs e)
{
panel3.Visible = false; panel2.Visible = false; panel1.Visible = true;
panel1.Location = new Point(184, 3);
panel1.Size = new Size(774, 749); webBrowser1.Visible = false;
}
private void button4_Click(object sender, EventArgs e)
{
webBrowser1.Visible = true; panel3.Visible = false;
webBrowser1.Location = new Point(184, 3);
webBrowser1.Size = new Size(774, 749);
webBrowser1.Navigate(Environment.CurrentDirectory + "\\1.pdf");
}
private void button5_Click(object sender, EventArgs e)
{
webBrowser1.Visible = true; panel3.Visible = false;
webBrowser1.Location = new Point(184, 3);
webBrowser1.Size = new Size(774, 749);
webBrowser1.Navigate(Environment.CurrentDirectory + "\\1.2.pdf");
}
private void button6_Click(object sender, EventArgs e)
{
webBrowser1.Visible = true; panel3.Visible = false;
webBrowser1.Location = new Point(184, 3);
webBrowser1.Size = new Size(774, 749);
webBrowser1.Navigate(Environment.CurrentDirectory + "\\1.3.pdf");
}
private void button7_Click(object sender, EventArgs e)
{
webBrowser1.Visible = true; panel3.Visible = false;
webBrowser1.Location = new Point(184, 3);
webBrowser1.Size = new Size(774, 749);
webBrowser1.Navigate(Environment.CurrentDirectory + "\\1.4.pdf");
}
private void button8_Click(object sender, EventArgs e)
{
webBrowser1.Visible = true; panel3.Visible = false;
webBrowser1.Location = new Point(184, 3);
webBrowser1.Size = new Size(774, 749);
webBrowser1.Navigate(Environment.CurrentDirectory + "\\1.5.pdf");
}
private void button9_Click(object sender, EventArgs e)
{
webBrowser1.Visible = true; panel3.Visible = false;
webBrowser1.Location = new Point(184, 3);
webBrowser1.Size = new Size(774, 749);
webBrowser1.Navigate(Environment.CurrentDirectory + "\\1.6.pdf");
}
private void button10_Click(object sender, EventArgs e)
{
webBrowser1.Visible = true; panel3.Visible = false;
webBrowser1.Location = new Point(184, 3);
webBrowser1.Size = new Size(774, 749);
webBrowser1.Navigate(Environment.CurrentDirectory + "\\1.7.pdf");
}
private void button18_Click(object sender, EventArgs e)
{
}
private void button19_Click(object sender, EventArgs e)
{
}
private void button21_Click(object sender, EventArgs e)
{
panel1.Visible = false; panel2.Visible = true;
panel2.Location = new Point(184, 3);
panel2.Size = new Size(800, 700); webBrowser1.Visible = false;
}
private void button20_Click_1(object sender, EventArgs e)
{
webBrowser1.Visible = true; panel2.Visible = false;
webBrowser1.Location = new Point(184, 3);
webBrowser1.Size = new Size(774, 749);
webBrowser1.Navigate(Environment.CurrentDirectory + "\\maruza.pdf");
}
private void button18_Click_1(object sender, EventArgs e)
{
webBrowser1.Navigate(Environment.CurrentDirectory + "\\slayd.pptx");
}
private void button19_Click_1(object sender, EventArgs e)
{
webBrowser1.Visible = true; panel2.Visible = false;
webBrowser1.Location = new Point(184, 3);
webBrowser1.Size = new Size(774, 749);
webBrowser1.Navigate(Environment.CurrentDirectory + "\\index.html");
}
private void button22_Click(object sender, EventArgs e)
{
webBrowser1.Visible = true; panel2.Visible = false;
webBrowser1.Location = new Point(184, 10);
webBrowser1.Size = new Size(774, 749);
webBrowser1.Navigate(Environment.CurrentDirectory + "\\index.html");
}
private void button22_Click_1(object sender, EventArgs e)
{
webBrowser1.Navigate(Environment.CurrentDirectory + "\\algoritim turlari.mp4");
}
private void button23_Click(object sender, EventArgs e)
{
webBrowser1.Navigate(Environment.CurrentDirectory + "\\1 c++ dasturini o'ratish va foydalanish.mp4");
}
private void button24_Click(object sender, EventArgs e)
{
webBrowser1.Navigate(Environment.CurrentDirectory + "\\2 c++ dasturidan foydalanish.mp4");
}
private void button25_Click(object sender, EventArgs e)
{
webBrowser1.Visible = true; panel2.Visible = false;
webBrowser1.Location = new Point(184, 3);
webBrowser1.Size = new Size(774, 749);
webBrowser1.Navigate(Environment.CurrentDirectory + "\\dars reja.pdf");
}
private void button27_Click(object sender, EventArgs e)
{
webBrowser1.Visible = true; panel2.Visible = false;
webBrowser1.Location = new Point(184, 3);
webBrowser1.Size = new Size(774, 749);
webBrowser1.Navigate(Environment.CurrentDirectory + "\\didaktik.pdf");
}
private void button11_Click(object sender, EventArgs e)
{
webBrowser1.Visible = true; panel3.Visible = false;
webBrowser1.Location = new Point(184, 3);
webBrowser1.Size = new Size(774, 749);
webBrowser1.Navigate(Environment.CurrentDirectory + "\\II Hayot havfsizligi qismi.pdf");
}
private void button2_Click(object sender, EventArgs e)
{
panel2.Visible = false; webBrowser1.Visible = true;
webBrowser1.Location = new Point(184, 3);
webBrowser1.Size = new Size(774, 749);
webBrowser1.Navigate(Environment.CurrentDirectory + "\\Dastur haqida.pdf");
}
private void button12_Click(object sender, EventArgs e)
{
panel2.Visible = false; webBrowser1.Visible = true;
webBrowser1.Location = new Point(184, 3);
webBrowser1.Size = new Size(774, 749);
webBrowser1.Navigate(Environment.CurrentDirectory + "\\XULOSA.pdf");
}
private void button26_Click(object sender, EventArgs e)
{
webBrowser1.Visible = true;
webBrowser1.Location = new Point(184, 3);
webBrowser1.Size = new Size(774, 749);
webBrowser1.Navigate(Environment.CurrentDirectory + "\\taqriz.pdf");
}
}
}
Do'stlaringiz bilan baham: |