Example #1
0
        private void btnShowSubtables_Click(object sender, EventArgs e)
        {
            var subTableScreen = new FrmSubtables {
                SubTableId = 0
            };

            subTableScreen.Show();
        }
Example #2
0
 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;
 }
Example #3
0
 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;
 }
Example #4
0
 private void btnShowSubtables_Click(object sender, EventArgs e)
 {
     var subTableScreen = new FrmSubtables {SubTableId = 0};
     subTableScreen.Show();
 }