private void pCRegisterToolStripMenuItem_Click(object sender, EventArgs e) { FormRegister Register = new FormRegister(Pic.RegisterMap.ProgrammCounterAdapter); Register.MdiParent = this; Register.Text = "Programmcounter"; Register.Show(); }
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(); }
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(); }
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(); }