le_name! = В«НовинкиВ»))
{this.comboBox1. Items. Add (d. table_name);}
}. dataGridView1. Columns [1]. HeaderCell. Value = В«МодельВ»;. dataGridView1. Columns [2]. HeaderCell. Value = В«ХарактеристикиВ»;. dataGridView1. Columns [3]. HeaderCell. Value = В«ЦінаВ»;. dataGridView1. Columns [4]. HeaderCell. Value = В«НаявністьВ»; 1. Visible = true;// Реалізація видимості панелей
panel2. Visible = false;. Visible = false;. Visible = false;. Visible = false;. SelectedIndex = 0;. my_db. tables [0]. LoadTableFromOzy (dataGridView1);. Size = this. Size;. Left = 0;. Top = menuStrip1. Height;. Parent = panel1;. Size = this. Size;. Size = this. Size;. Left = 0;. Top = menuStrip1. Height;. Size = this. Size;. Left = 0;. Top = menuStrip1. Height;. Size = this. Size;. Left = 0;. Top = menuStrip1. Height;. Left = 0;. Top = menuStrip1. Height;. Size = this. Size;. AdvancedRowHeadersBorderStyle. Bottom = DataGridViewAdvancedCellBorderStyle. Single;
} void comboBox1_SelectedIndexChanged (object sender, EventArgs e)
{. source_table = comboBox1. SelectedText;. TableNumber = comboBox1. SelectedIndex; (NatTable d in BazaInOzy. My_db. Tables) {if (d. table_name == BazaInOzy. Source_table) {BazaInOzy. TableNumber = d. table_number - 1;}}. my_db. tables [BazaInOzy. TableNumber]. LoadTableFromOzy (this. dataGridView1);
} void button1_Click (object sender, EventArgs e)
{BazaInOzy. my_db. tables [BazaInOzy. TableNumber]. SaveTableInOzy (this. dataGridView1);. my_db. SaveBaseInOutputFile ();
} void button3_Click_2 (object sender, EventArgs e)
{. my_db. tables [7]. SaveTableInOzy (dataGridView3);. my_db. SaveBaseInOutputFile ();
} void новінкіToolStripMenuItem_Click (object sender, EventArgs e)
{. Visible = false;. Visible = false;. Visible = false;. Visible = false;. Visible = true;. my_db. tables [7]. LoadTableFromOzy (dataGridView3);
} void button4_Click (object sender, EventArgs e)
{. my_db. tables [6]. SaveTableInOzy (this. dataGridView2);. my_db. SaveBaseInOutputFile ();
} void panel3_Paint (object sender, PaintEventArgs e)
{
} void pictureBox1_Click (object sender, EventArgs e)
{
}
}
}
// КлассиSystem; System. Collections. Generic; System. Linq; System. Text; System. Data; System. IO; System.runtime. Serialization. Formatters. Binary; System. Windows. Forms; PKP
{static class BazaInOzy
{static int TableNumber = 0;// номе...