private void debugToolStripMenuItem_Click(object sender, EventArgs e) { if (Pic == null) { Dialogs.ShowNoFileDialog(); return; } FormDebugActions S = new FormDebugActions(Pic); S.MdiParent = this; S.Show(); }
/// <summary> /// Wird aufgerufen wenn eine neue Datei geladen und gesparst wurde. /// -> Alle alten Fenster schließen und Oberfläche neu aufbauen /// </summary> private void HasNewSource() { // Alle alten Fenster schließen foreach (Form frm in this.MdiChildren) { frm.Close(); } Text = "PIC16F84 - " + Pic.CurrentFile; FormSourcecode Source = new FormSourcecode(Pic); Source.MdiParent = this; Source.Location = new Point(0, 0); Source.StartPosition = FormStartPosition.Manual; Source.Show(); FormRegisterOverview Data = new FormRegisterOverview(Pic); Data.MdiParent = this; Data.StartPosition = FormStartPosition.Manual; Data.Location = new Point(Source.Location.X + Source.Width + 10, Source.Location.Y); Data.Show(); Form Register = ShowIORegister(new Point(0, Source.Location.Y + Source.Height + 10), 0x5, 0x85, "Port A"); Register = ShowIORegister(new Point(Register.Location.X + Register.Width, Source.Location.Y + Source.Height + 10), 0x6, 0x86, "Port B"); ShowWRegister(new Point(Register.Location.X + Register.Width, Source.Location.Y + Source.Height + 10)); FormTime Time = new FormTime(Pic); Time.MdiParent = this; Time.StartPosition = FormStartPosition.Manual; Time.Location = new Point(0, Source.Location.Y + Source.Height + 10 + Register.Height); Time.Show(); FormDebugActions Debug = new FormDebugActions(Pic); Debug.MdiParent = this; Debug.StartPosition = FormStartPosition.Manual; Debug.Location = new Point(Time.Location.X + Time.Width, Source.Location.Y + Source.Height + 10 + Register.Height); Debug.Show(); }