Xulosa
Kurs ishida ayrim ko’p qo’llanadigan boshqaruv elementlari va ularning xususiyatlari ko’rib o’tildi. Ulardan TextBox elementlari matnli malumotlar bilan ishlasa, MenuStrip menular panelini yaratish uchun xizmat qiladi. DataGirdView esa malumotlar bazasida joylashgan malumotlarni C# dasturlash tilida namoyon qilishda qo’l keladi. Bu loyiha orqalo “lebal”, “Form”, “button”, “TextBox” lar bilan mukammal darajada ishlashni o’rgandik. Dasturning dizayn qismini tuzishni o’rgandik. Kurs ishi davomida ko’proq malumotlar bazasi bilan C# ni bog’lash malumotlar berildi. Tuzilgan ilovaning ham ko’p qismi malumotlar bazasi ya’ni Microsoft Acces ni Windows ilovaga bog’lash bo’ldi. Bu kurs ishi davomida C# dasturlash tilida malumotlar bazasi bilan ishlash ko’nikmalari oshirildi. Bu dastur bizga kelajakda bundanham mukammal dasturlarni tuzishni ularni dunyo miqyosida taqdim etishni o’rgatadi. Vatanimizni kelajakda dunyo taniydigan buyuk davlat sifatida tanishga o’z hissamizni qo’shishimizga imkon beradi.Hozirgi kunda yurtimizda yosh dasturchilarga qaratilgan yuksak etibor vas hart sharoitlardan unumli foydalanishimiz kerak!!!
-31-
Ilovalar
Login parol oynasi
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;
namespace Kurs_ishi
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text == "123" && textBox2.Text == "123")
{
this.Hide();
Forma f = new Forma();
f.Show();
}
-32-
else {
textBox1.Text = "";
textBox2.Text = "";
textBox1.Focus();
label4.Text = "Login yoki parol xato";
}
private void button3_Click(object sender, EventArgs e)
{
this.Close();
}
private void button2_Click(object sender, EventArgs e)
{
}
private void button4_Click(object sender, EventArgs e)
{
}
private void exitToolStripMenuItem_Click(object sender, EventArgs e)
{
}
-33-
private void cHiqishToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Close();
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}
Asosiy oyna
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;
32
using System.Windows.Forms;
namespace Kurs_ishi
{
public partial class Forma : Form
{
public Forma()
{
-33-
InitializeComponent();
}
private void button4_Click(object sender, EventArgs e)
{
this.Hide();
Fanlar f = new Fanlar();
f.Show();
}
private void button2_Click(object sender, EventArgs e)
{
this.Hide();
oqituvchilar s = new oqituvchilar();
s.Show();
}
private void button1_Click(object sender, EventArgs e)
{
this.Hide();
Kurslar k = new Kurslar();
k.Show();
}
private void button3_Click(object sender, EventArgs e)
{
this.Close();
}
}
-34-
Fanlar oynasi
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;
namespace Kurs_ishi
{
public partial class Fanlar : Form
{
public Fanlar()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
this.Hide();
fanlarRoyxati f = new fanlarRoyxati("1","","","");
f.Show();
}
private void button5_Click(object sender, EventArgs e)
{
-35-
this.Hide();
Forma f = new Forma();
f.Show();
}
private void button2_Click(object sender, EventArgs e)
{
this.Hide();
fanlarRoyxati f = new fanlarRoyxati("2", "", "", "");
f.Show();
}
private void button3_Click(object sender, EventArgs e)
{
this.Hide();
fanlarRoyxati f = new fanlarRoyxati("3", "", "", "");
f.Show();
}
private void button4_Click(object sender, EventArgs e)
{
this.Hide();
fanlarRoyxati f = new fanlarRoyxati("4", "", "", "");
f.Show();
}
-36-
private void Fanlar_Load(object sender, EventArgs e)
{
}
}
}
Fanlar royxati
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;
namespace Kurs_ishi
{
public partial class fanlarRoyxati : Form
{
static String x;
public fanlarRoyxati()
{
InitializeComponent();
}
public fanlarRoyxati(String s1,String s2,String s3)
{
-37-
InitializeComponent();
}
public fanlarRoyxati(String s,String s1,String s2,String s3)
{
InitializeComponent();
x = s;
switch (s)
{
case "1": label1.Text = "Algaritim tillar\n"
+ "Matanaliz\n" + "Chiziqli Algebre\n" + "Inglis tili\n"+
"Jismon tarbiya\n"+"Rustili\n"+s1; label2.Text = "1-Kurs Dars jadvali";label3.Text="60\n"+"120\n"+"60\n"+"30\n"+"30\n"+"30\n"+s2;
label4.Text="5\n"+"7\n"+"5\n"+"3\n"+"3\n"+"2\n"+s3; break;
case "2": label1.Text = "Algaritmik
tillar\n"+"Berilganlar bazasi\n"+"Berilganlar Strukturasi\n"+"Suniy intelekt\n"+"Falsafa\n"+"Sonli usullar\n"+"Malakaviy amaliyot\n"+s1;
-38-
label2.Text = "2-Kurs
Dars jadvali";label4.Text="4\n"+"4\n"+"5\n"+"6\n"+"4\n"+"4\n"+"2\n"+s2;label3.Text="120\n"+"120\n"+"150\n"+"180\n"+"120\n"+"120\n"+"60\n"+s3; break;
case "3": label1.Text = "Bulutli texnologiyalar\n" + "Big data va malumotlar\n" + "Xorijiy til\n" + "Tarmoq admistratsiyasi\n"+s1; label4.Text = "4\n" + "4\n" + "5\n" + "6\n"+s2 ; label3.Text = "120\n" + "120\n" + "150\n" + "180\n"+s3 ; label2.Text = "3-Kurs Dars jadvali"; break;
case "4": label1.Text = "Malakaviy amaliyot"; label2.Text = "4-Kurs Dars jadvali"; break;
}
}
private void fanlarRoyxati_Load(object sender, EventArgs e)
{
}
private void button5_Click(object sender, EventArgs e)
{
this.Hide();
Fanlar f = new Fanlar();
f.Show();
}
-39-
private void button1_Click(object sender, EventArgs e)
{
if (x == "4")
{
MessageBox.Show("Qoshib bolmaydi!!!");
}
else
{
this.Hide();
fanQoshish f = new fanQoshish(x);
f.Show();}
}
}
}
Fan qoshish oynasi
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;
namespace Kurs_ishi
{
-40-
public partial class fanQoshish : Form
{
static String w;
public fanQoshish()
{
InitializeComponent();
}
public fanQoshish(String n)
{
InitializeComponent();
w = n;
}
public fanQoshish(String s1,String s2,String s3)
{
InitializeComponent();
}
private void fanQoshish_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text == "" && textBox2.Text == ""
&& textBox3.Text == "")
-41-
{
MessageBox.Show("Malumotlarni Toliq kiriting!!!");
}
else
{
this.Hide();
fanlarRoyxati f = new fanlarRoyxati(w, textBox1.Text, textBox2.Text, textBox3.Text);
f.Show();
}
}
}
}
O’qituvchilar oynasi
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;
namespace Kurs_ishi
{
public partial class oqituvchilar : Form
{
public oqituvchilar()
{
-42-
InitializeComponent();
/* label2.Text = "Madatov Xabibulla\n" + "Mattiyev Jamol\n" + "Avezmatov Ixtiyor\n" + "Yuldashev Allabergan\n" + "Khajibayeva Surrayo";
label3.Text = "Datsent\n" + "php\n" + "Magisturatura\n" + "Magisturatura\n" + "Magisturatura";
*/
label2.Text = "Samandarov Botir\n" + "O'tebayev Davlatboy\n" + "Qazimbetova Muhabbat\n" + "Geldibayev Begench\n" + "Utemuratov Rustem\n" + "Ollambergenov Fayzulla\n" ;
label3.Text = "PhD\n" + "PhD\n" + "assistent\n" + "stajyor-oqituvchi\n" + "katta o'qituvchi\n" + "stajyor-
39
oqituvchi\n" ;
}
public oqituvchilar(String s1, String s2)
{
InitializeComponent();
/* label2.Text = "Madatov Xabibulla\n" + "Mattiyev Jamol\n" + "Avezmatov Ixtiyor\n" + "Yuldashev Allabergan\n" + "Khajibayeva Surrayo\n"+s1;
label3.Text = "Datsent\n" + "php\n" + "Magisturatura\n" + "Magisturatura\n" + "Magisturatura\n"+s2;
*/
-43-
label2.Text = "Samandarov Botir\n" + "O'tebayev Davlatboy\n" + "Qazimbetova Muhabbat\n" + "Geldibayev Begench\n" + "Utemuratov Rustem\n" + "Ollambergenov Fayzulla\n" + s1;
label3.Text = "PhD\n" + "PhD\n" + "assistent\n" + "stajyor-oqituvchi\n" + "katta o'qituvchi\n" + "stajyor-oqituvchi\n" + s2;
}
private void button6_Click(object sender, EventArgs e)
{
this.Hide();
Forma f = new Forma();
f.Show();
}
private void button1_Click(object sender, EventArgs e)
{
}
private void button5_Click(object sender, EventArgs e)
{
}
private void button4_Click(object sender, EventArgs e)
-45-
}
private void button2_Click(object sender, EventArgs e)
{
}
private void button3_Click(object sender, EventArgs e)
{
}
private void button7_Click(object sender, EventArgs e)
{
this.Hide();
Oqituvchi_qoshish f = new Oqituvchi_qoshish();
f.Show();
}
private void oqituvchilar_Load(object sender, EventArgs e)
{
}
}
}
-46-
O’qituvchi qoshish oynasi
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;
namespace Kurs_ishi
{
public partial class Oqituvchi_qoshish : Form
{
public Oqituvchi_qoshish()
{
InitializeComponent();
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void label2_Click(object sender, EventArgs e)
{
}
-47-
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text == "" && textBox2.Text == "")
{
MessageBox.Show("Malumotlarni toliq kiriting!!!");
}
else {
this.Hide();
oqituvchilar x = new oqituvchilar(textBox1.Text, textBox2.Text);
x.Show();
}
}
private void Oqituvchi_qoshish_Load(object sender, EventArgs e)
{
}
}
}
-48-
Talabalar royxati oynasi
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;
namespace Kurs_ishi
{
public partial class Kurslar : Form
{
public Kurslar()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
this.Hide();
birinchi_kurs es = new birinchi_kurs("1","","");
es.Show();
}
private void button5_Click(object sender, EventArgs e)
{
-49-
this.Hide();
Forma f = new Forma();
f.Show();
}
private void button2_Click(object sender, EventArgs e)
{
this.Hide();
birinchi_kurs es = new birinchi_kurs("2", "", "");
es.Show();
}
private void button3_Click(object sender, EventArgs
43
e)
{
this.Hide();
birinchi_kurs es = new birinchi_kurs("3", "", "");
es.Show();
}
private void button4_Click(object sender, EventArgs e)
{
this.Hide();
birinchi_kurs es = new birinchi_kurs("4", "", "");
es.Show();
-50-
}
private void Kurslar_Load(object sender, EventArgs e)
{
}
}
}
Talabalar royxati oynasi
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;
namespace Kurs_ishi
{
public partial class birinchi_kurs : Form
{
static string x;
public birinchi_kurs()
{
InitializeComponent();
}
public birinchi_kurs(String jadval,String s1,String s2)
{
-51-
InitializeComponent();
x = jadval;
switch (jadval)
{
case "1": label2.Text = "Alliyorova Hurliman Kuatbay qizi \n" +
"Ashirbayeva Malika Omirbay qizi\n"
+ "Aralbaev Timurbek Murat Uli\n" +
"Ashikbaeva Guljayna Nurlibay qizi\n" +
"Bazarbaev Azizbek Ajiniyaz Uli\n" +
"Duysenbaev Aydos Paraxot Uli\n" +
s1; label1.Text = "1-Kurs talabalar royhati"; label3.Text = "Grand\n" + "Kantirakt\n" + "Kantirakt\n" + "Kantirakt\n" + "Grand\n" + "Kantirakt\n" +s2; break;
/* case "2": label2.Text = "Babajanov Inoyatbek Maksudbek o'gli\n" + "Avezov Dastonbek Erkin o'gli\n" +
"Allayorov Husanboy Komiljon og'li\n" + "Quranboyev Farruh Narimon og'li\n" + "Bogibekov Quvonchbek Hamidbek og'li\n"+s1; label1.Text = "2-Kurs talabalar royhati";
label3.Text = "Grand\n" + "Kantirakt\n" + "Kantirakt\n" + "Kantirakt\n" + "Kantirakt\n"+s2; break;
*/
-52-
case "2": label2.Text = "Adilbayeva Ulbosin Azatovna\n" + "Allambergenova Aziza Bayrambay qizi\n" + "Amangeldiyev Asadbek Joldasbay Uli\n" + "Aqnazarova Mohida Xaytboy qizi\n" + "Bekmuradova Rayhon Soliyboy qizi\n" + "Urazbayeva Yulduz Ulugbek qizi\n" + s1;
label3.Text = "Kantirakt\n" + "Kantirakt\n" + "Kantirakt\n" + "Kantirakt\n" + "Grand\n"+"Grand\n"+s2; label1.Text = "2-Kurs talabalar royhati";break;
case "3": label2.Text = "Alloberganov Karimboy Sadullayevich\n" +
"Atoyev Bahrom Begzodovich\n" +
"Axrorova Asaloy Aminboy qizi\n" +
"Bobojonov Jo'rabek Hakimbek o'gli\n" +
45
"Davronbeko'v G'iyosbek G'ulomjon o'gli\n" +
"Kopalboyev Ilyosbek Vaisbekovich\n" +
"Muhiddinova Maqsuda Qutlimovna\n" +
"Egamberdiyev Boboxon Bahramovich\n"+s1; label1.Text = "3-Kurs talabalar royhati"; label3.Text = "Kantirakt\n" + "Grand\n" + "Kantirakt\n" + "Grand\n" + "Kantirakt\n" + "Kantirakt\n" + "Kantirakt\n" + "Kantirakt\n"+s2; break;
case "4": label2.Text = "Axrorov Azamat Fathullayevich\n" +
"Azimboye Azimjon Komiljonovich\n" +
"Bohirova Mehriniso Hamidjon qiz\n" +
"Hayitboyeva Gulinur Husanboy qizi\n" +
"Qo'chqorov Furqat Benazar o'gli\n" +
"Xamidov Xursand Saidjon o'gli\n" +
"Quronboyev Farrux Bekzodovich\n"+s1; label1.Text = "4-Kurs talabalar royhati";
-53-
label3.Text = "Kantirakt\n" + "Grand\n" + "Kantirakt\n" + "Grand\n" + "Kantirakt\n" + "Kantirakt\n" + "Kantirakt\n"+s2; break;
}
}
private void birinchi_kurs_Load(object sender, EventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
this.Hide();
birinchikursAFIO f = new birinchikursAFIO(x);
f.Show();
}
private void button1_Click(object sender, EventArgs e)
{
this.Hide();
Kurslar k = new Kurslar();
k.Show();
}
}
}
-54-
Talaba qoshish oynasi
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;
namespace Kurs_ishi
{
public partial class birinchikursAFIO : Form
{
static String n;
public birinchikursAFIO()
{
InitializeComponent();
}
public birinchikursAFIO(String e)
{
InitializeComponent();
n = e;
}
private void birinchikursAFIO_Load(object sender, EventArgs e)
{
-55-
}
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text == "" && textBox2.Text == "")
{
MessageBox.Show("Malumotlarni toliq kiriting!!!");
47
}
else {
switch(n){case "1":
this.Hide();
birinchi_kurs f = new birinchi_kurs("1", textBox1.Text, textBox2.Text);
f.Show();break;
case "2": this.Hide();
birinchi_kurs x = new birinchi_kurs("2", textBox1.Text, textBox2.Text);
x.Show(); break;
case "3": this.Hide();
birinchi_kurs xe = new birinchi_kurs("3", textBox1.Text, textBox2.Text);
xe.Show(); break;
case "4": this.Hide();
birinchi_kurs xs = new birinchi_kurs("4", textBox1.Text, textBox2.Text);
-56-
xs.Show(); break;
}
}
}
}
}
-57-
Foydalanilgan adabiyotlar
Виктор Зиборов. Visual C#2010 На примерах-Санкт-Петербург”БХБ-ПЕТЕРБУРГ”2011
https://www.coursehero.com
https://it-black.ru/rabota-s-bazoj-dannyh-v-ci_sharp
-58-
Do'stlaringiz bilan baham: |