private void Main_Load(object sender, EventArgs e) { InfoControls InfoControls = new InfoControls(); InfoControls.Select(); label1.Text = InfoControls.ShowColumns(); }
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { NowId = 0; if (Convert.ToInt32(comboBox1.SelectedIndex.ToString()) > 0) { NowId = Convert.ToInt32(comboBox1.SelectedValue.ToString()); InfoControls.Select(InfoControls.TableId + "=" + NowId); InfoControls.SetColVar(DatabaseControls._Table); Title.Text = InfoControls.ShowColVar["Title"]; Contect.Text = InfoControls.ShowColVar["Contect"]; } else { WindowsControls.ClearControls(this); } }