Beispiel #1
0
        private void New_Click(object sender, EventArgs e)
        {
            Vid novoe = new Vid();

            novoe.ShowDialog();
            dataGridView1.DataSource = FILE_WORK.ReadTable();
        }
Beispiel #2
0
        private void Delete_Click(object sender, EventArgs e)
        {
            int ind = Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value);

            FILE_WORK.Delete(ind);
            dataGridView1.DataSource = FILE_WORK.ReadTable();
        }
Beispiel #3
0
 private void FillData()
 {
     dataGridView1.DataSource         = FILE_WORK.ReadTable();
     dataGridView1.AutoSize           = false;
     dataGridView1.RowHeadersWidth    = 20;
     dataGridView1.Columns[0].Width   = 30;
     dataGridView1.Columns[1].Width   = 150;
     dataGridView1.Columns[2].Visible = false;
     dataGridView1.Columns[3].Visible = false;
 }