示例#1
0
        private void TextBlock_IntconBitChange(object sender, MouseButtonEventArgs e)
        {
            TextBlock tBlock = (TextBlock)sender;
            int       bit    = (int)typeof(Data.Flags.Intcon).GetField(tBlock.Name).GetValue(this);

            Data.ToggleRegisterBit(Data.Registers.INTCON, bit);
            UpdateUI();
        }