Пример #1
0
        private void pCRegisterToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormRegister Register = new FormRegister(Pic.RegisterMap.ProgrammCounterAdapter);

            Register.MdiParent = this;
            Register.Text      = "Programmcounter";
            Register.Show();
        }
Пример #2
0
        private void ShowRegisterDetail(Point StartPosition, int RegisterAddress, string Title)
        {
            if (Pic == null)
            {
                Dialogs.ShowNoFileDialog();
                return;
            }
            FormRegister Register = new FormRegister(Pic.RegisterMap.GetAdapter(RegisterAddress));

            Register.StartPosition = FormStartPosition.Manual;
            Register.Location      = StartPosition;
            Register.MdiParent     = this;
            Register.Text          = Title;
            Register.Show();
        }
Пример #3
0
        private void ShowWRegister(Point StartPosition)
        {
            if (Pic == null)
            {
                Dialogs.ShowNoFileDialog();
                return;
            }
            FormRegister Register = new FormRegister(Pic.WRegister);

            Register.StartPosition = FormStartPosition.Manual;
            Register.Location      = StartPosition;
            Register.MdiParent     = this;
            Register.Text          = "W Register";
            Register.Show();
        }
Пример #4
0
        private void T_BindDoubleclick(DataAdapter <int> Adapter, string ID)
        {
            FormRegister Reg;

            if (Adapter is ByteToIntDataAdapter)
            {
                Reg = new FormRegister(((ByteToIntDataAdapter)Adapter).SourceAdapter);
            }
            else
            {
                Reg = new FormRegister(Adapter);
            }
            Reg.Text      = "Register " + ID;
            Reg.MdiParent = MdiParent;
            Reg.Show();
        }