private void btnShowSubtables_Click(object sender, EventArgs e) { var subTableScreen = new FrmSubtables { SubTableId = 0 }; subTableScreen.Show(); }
private void lstSubtables_SelectedIndexChanged(object sender, EventArgs e) { // The subtable entry in the listbox starts xx:, to need to trim everything after the : if (lstSubtables.Text.Contains(":")) { var thissubTableId = Convert.ToInt32(lstSubtables.Text.Substring(0, lstSubtables.Text.IndexOf(":", StringComparison.Ordinal))); var subTableScreen = new FrmSubtables { SubTableId = thissubTableId }; subTableScreen.Show(); } blnTextChanged = false; btnSave.Enabled = false; mnuSave.Enabled = btnSave.Enabled; }
private void lstSubtables_SelectedIndexChanged(object sender, EventArgs e) { // The subtable entry in the listbox starts xx:, to need to trim everything after the : if (lstSubtables.Text.Contains(":")) { var thissubTableId = Convert.ToInt32(lstSubtables.Text.Substring(0, lstSubtables.Text.IndexOf(":", StringComparison.Ordinal))); var subTableScreen = new FrmSubtables {SubTableId = thissubTableId}; subTableScreen.Show(); } blnTextChanged = false; btnSave.Enabled = false; mnuSave.Enabled = btnSave.Enabled; }
private void btnShowSubtables_Click(object sender, EventArgs e) { var subTableScreen = new FrmSubtables {SubTableId = 0}; subTableScreen.Show(); }