コード例 #1
0
        private void AICoordinateForm_Load(object sender, EventArgs e)
        {
            List <Control> controls = InputFormRef.GetAllControls(this);

            InputFormRef.RegistNotifyNumlicUpdate(this.AllWriteButton, controls);
            InputFormRef.WriteButtonToYellow(this.AllWriteButton, false);

            uint mapid = MainSimpleMenuForm.GetCurrentMapID();

            this.MapPictureBox.LoadMap(mapid);
        }
コード例 #2
0
        //新しいFELintデータに入れ替える
        void UpdateFELintCache(Dictionary <uint, List <FELint.ErrorSt> > newFELintCache)
        {
            lock (FELintLock)
            {
                this.FELintCache = newFELintCache;
            }

            if (IsStopFlag)
            {
                return;
            }

            if (Application.OpenForms.Count <= 0)
            {//通知するべきフォームがない.
                return;
            }
            Form f = Application.OpenForms[0];

            if (f == null || f.IsDisposed)
            {
                return;
            }

            this.IsFELintInvoke = true;
            f = Program.MainForm();
            if (f is MainSimpleMenuForm && f.IsDisposed == false)
            {//メインフォームへ通知
                try
                {
                    MainSimpleMenuForm self = (MainSimpleMenuForm)f;
                    self.Invoke(new FELintUpdateDelegate(self.FELintUpdateCallback));
                }
                catch (Exception e)
                {
                    Log.Error(e.ToString());
                }
            }
            this.IsFELintInvoke = false;
        }
コード例 #3
0
        private void AIRangeForm_Load(object sender, EventArgs e)
        {
            uint mapid = MainSimpleMenuForm.GetCurrentMapID();

            this.MapPictureBox.LoadMap(mapid);

            uint addr = (uint)this.ReadStartAddress.Value;

            if (!U.isSafetyOffset(addr + 3))
            {
                return;
            }
            this.B0.Value = Program.ROM.u8(addr + 0);
            this.B1.Value = Program.ROM.u8(addr + 1);
            this.B2.Value = Program.ROM.u8(addr + 2);
            this.B3.Value = Program.ROM.u8(addr + 3);

            List <Control> controls = InputFormRef.GetAllControls(this);

            InputFormRef.RegistNotifyNumlicUpdate(this.AllWriteButton, controls);
            InputFormRef.WriteButtonToYellow(this.AllWriteButton, false);

            this.ActiveControl = this.B0;
        }