«amaliy matematika va informatika» kafedrasi «dasturlash asoslari» fanidan


Kutubxonani avtomatlashtirtish tizmi



Download 1,35 Mb.
bet10/11
Sana04.03.2022
Hajmi1,35 Mb.
#482925
1   2   3   4   5   6   7   8   9   10   11
Bog'liq
Xaydarova Oydinxon

2.1 Kutubxonani avtomatlashtirtish tizmi
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication4


{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)


{

}


KUTUBXONA KUTUB = new KUTUBXONA();

private void kUTUBXONAToolStripMenuItem_Click(object sender, EventArgs e)


{
KUTUB.Show();
}

private void label1_Click(object sender, EventArgs e)


{
Application.Exit();
}
Form2 ochil = new Form2();
private void tAHRIRLASHToolStripMenuItem_Click(object sender, EventArgs e)
{
ochil.Show();
}
}
}

using System;


using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication4
{
public partial class Form1 : Form
{

public Form1()


{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)


{

}
KUTUBXONA KUTUB = new KUTUBXONA();


private void kUTUBXONAToolStripMenuItem_Click(object sender, EventArgs e)


{
KUTUB.Show();
}

private void label1_Click(object sender, EventArgs e)


{
Application.Exit();
}
Form2 ochil = new Form2();
private void tAHRIRLASHToolStripMenuItem_Click(object sender, EventArgs e)
{
ochil.Show();
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication4


{
public partial class KUTUBXONA : Form
{
SqlConnection sqlConnection = null;
SqlDataAdapter sqlDataAdapter = null;
DataTable table = new DataTable();
public KUTUBXONA()
{
InitializeComponent();
}

private void KUTUBXONA_Load(object sender, EventArgs e)


{
Load_data();
}
public void Load_data()
{
try
{
sqlConnection = new SqlConnection(@"Data Source=(LocalDB)\v11.0;AttachDbFilename=c:\users\abdumajid\documents\visual studio 2012\Projects\WindowsFormsApplication4\WindowsFormsApplication4\Database1.mdf;Integrated Security=True");
sqlDataAdapter = new SqlDataAdapter("SELECT * FROM [Table]", sqlConnection);
sqlDataAdapter.Fill(table);
dataGridView1.DataSource = table;

}
catch (Exception ex)


{
MessageBox.Show(ex.Message);
}
}

private void label2_Click(object sender, EventArgs e)


{
this.Hide();
}
}
}









Download 1,35 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   10   11




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish