Beispiel #1
0
        private void FireRegisterChanged(Register register, int oldvalue)
        {
            if (register.Value.SValue == oldvalue || register.Value.UValue == oldvalue)
                return;

            RegisterChangedEventArgs args = new RegisterChangedEventArgs();
            args.Register = register;
            OnRegisterChanged(args);
        }
        void emulator_RegisterChanged(object o, RegisterChangedEventArgs e)
        {
            if (!Program.MainWindow.chkRegisterDisplay.Checked)
                return;

            e.Register.ListViewItem.SubItems[1].Text = e.Register.ValueString;
            Program.MainWindow.lstRegister.Refresh();
        }
Beispiel #3
0
 public void OnRegisterChanged(RegisterChangedEventArgs e)
 {
     if (RegisterChanged != null)
         RegisterChanged(this, e);
 }