Esempio n. 1
0
 public SSM_Switch_Content this[SSM_Switch_Code code]
 {
     get
     {
         return(_ssm_switch_content_table[code]);
     }
 }
Esempio n. 2
0
 public bool get_switch(SSM_Switch_Code code)
 {
     return(_content_table[code].Value);
 }
        private void checkBox_switch_CheckedChanged(object sender, EventArgs e)
        {
            SSM_Switch_Code target_switch_code = (SSM_Switch_Code)Enum.Parse(typeof(SSM_Switch_Code), comboBox_switch.SelectedItem.ToString());

            ssmcomout1.set_switch(target_switch_code, checkBox_switch.Checked);
        }
 public void set_switch(SSM_Switch_Code code, bool val)
 {
     _content_table[code].Value = val;
 }