コード例 #1
0
        private void Label_Click(object sender, EventArgs e)
        {
            Label         label         = sender as Label;
            int           index         = StringTool.ExtractNum(label.Name);
            UserEventArgs userEventArgs = new UserEventArgs();

            if (label.BackColor == Color.Transparent)
            {
                label.BackColor     = Color.Yellow;
                userEventArgs.outio = new KeyValuePair <OutIOName, bool>((OutIOName)index, true);
            }
            else
            {
                label.BackColor     = Color.Transparent;
                userEventArgs.outio = new KeyValuePair <OutIOName, bool>((OutIOName)index, false);
            }
            tableContainer.OnOutIOChanged(userEventArgs);
        }