• BAuthor.Text = BGridView1.SelectedRows[0].Cells[1].Value.ToString(); BPublisher.Text = BGridView1.SelectedRows[0].Cells[2].Value.ToString();
  • SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=C:\Users\user\Documents\Kutubxonadb.mdf;Integrated Security=True;Connect Timeout=30");
  • } private void book_Load(object sender, EventArgs e)




    Download 2,44 Mb.
    bet9/12
    Sana14.05.2024
    Hajmi2,44 Mb.
    #232837
    1   ...   4   5   6   7   8   9   10   11   12
    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();

    Download 2,44 Mb.
    1   ...   4   5   6   7   8   9   10   11   12




    Download 2,44 Mb.

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    } private void book_Load(object sender, EventArgs e)

    Download 2,44 Mb.