|
}
private void book_Load(object sender, EventArgs e)
|
bet | 9/12 | Sana | 14.05.2024 | Hajmi | 2,44 Mb. | | #232837 |
Bog'liq Abdulloyeva Sitora}
private void book_Load(object sender, EventArgs e)
{
}
private void BGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
BookName.Text = BGridView1.SelectedRows[0].Cells[0].Value.ToString();
BAuthor.Text = BGridView1.SelectedRows[0].Cells[1].Value.ToString();
BPublisher.Text = BGridView1.SelectedRows[0].Cells[2].Value.ToString();
BPrice.Text = BGridView1.SelectedRows[0].Cells[3].Value.ToString();
BQuality.Text = BGridView1.SelectedRows[0].Cells[4].Value.ToString();
}
private void pictureBox1_Click(object sender, EventArgs e)
{
Application.Exit();
}
}
}
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.Data.SqlClient;
namespace WindowsFormsApp4
{
public partial class librarian : Form
{
SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=C:\Users\user\Documents\Kutubxonadb.mdf;Integrated Security=True;Connect Timeout=30");
public librarian()
{
InitializeComponent();
}
private void LibGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
LibID.Text = LibGridView1.SelectedRows[0].Cells[0].Value.ToString();
LibName.Text = LibGridView1.SelectedRows[0].Cells[1].Value.ToString();
LibPass.Text = LibGridView1.SelectedRows[0].Cells[2].Value.ToString();
|
| |