public void HidePresetControls() { if (InvokeRequired) { Invoke(new Action(() => { PresetLabel.Hide(); PresetList.Hide(); PresetNameLabel.Hide(); PresetNameTextbox.Hide(); ProcessLabel.Hide(); ProcessComboBox.Hide(); NewPresetButton.Hide(); SavePresetButton.Hide(); DeleteButton.Hide(); KeyPanelClass.CurrentPanel = null; })); } else { PresetLabel.Hide(); PresetList.Hide(); PresetNameLabel.Hide(); PresetNameTextbox.Hide(); ProcessLabel.Hide(); ProcessComboBox.Hide(); NewPresetButton.Hide(); SavePresetButton.Hide(); DeleteButton.Hide(); KeyPanelClass.CurrentPanel = null; } }
// Button sửa private void EditButton_Click(object sender, EventArgs e) { AddBt.Hide(); EditButton.Hide(); DeleteButton.Hide(); SaveAddBt.Hide(); CancelAddBt.Hide(); SaveEditButton.Show(); CancelEdit.Show(); textBox6.Enabled = true; textBox9.Enabled = true; textBox8.Enabled = true; textBox7.Enabled = true; radioButton5.Enabled = true; radioButton6.Enabled = true; dateTimePicker4.Enabled = true; dateTimePicker5.Enabled = true; dateTimePicker6.Enabled = true; }
public Form1() { InitializeComponent(); label1.Hide(); listBox1.Hide(); CreateButton.Hide(); UpdateButton.Hide(); DeleteButton.Hide(); db = new AcademyEntities(); /*db.Curators.Load(); * * dataGridView1.DataSource = db.Curators.Local.ToBindingList();*/ /* var tableNames = db.MetadataWorkspace.GetItems(DataSpace.SSpace) * .Select(t => t.Name) * .ToList(); * DbSet dbSet = db.;*/ }
private void SpawnNewPostForm(string title) { this.Text = "New post"; TitleTextBox.Text = title; DeleteButton.Hide(); }