コード例 #1
0
 public void saveState(XmlWriter xmlOut)
 {
     xmlOut.WriteStartElement(RegistersView.ViewName);
     xmlOut.WriteAttributeString(_displayBaseElement, this.CurrentDisplayBase.ToString());
     xmlOut.WriteAttributeString(_displayRegisterTab, tabControl1.SelectedIndex.ToString());
     xmlOut.WriteAttributeString(_displayFPBaseElement, this.CurrentFloatingPointType.ToString());
     _graphicElements.SaveToXML(xmlOut);
     xmlOut.WriteEndElement();
 }//saveState
コード例 #2
0
 public void saveState(XmlWriter xmlOut)
 {
     //Memory0
     xmlOut.WriteStartElement(this.ViewName);
     xmlOut.WriteAttributeString("Index", this.Index.ToString());
     xmlOut.WriteAttributeString("WordSize", this.CheckedMemorySizeString);
     xmlOut.WriteAttributeString("Address", this.CurrentAddressString);
     _graphicElements.SaveToXML(xmlOut);
     xmlOut.WriteEndElement();
 }
コード例 #3
0
        }//LoadFromXML

        /// <summary>
        /// Called when the application is shutting down. Save all the view settings
        /// to the xml document.
        /// </summary>
        /// <param name="xmlOut"></param>
        public void saveState(XmlWriter xmlOut)
        {
            xmlOut.WriteStartElement(WatchView.ViewName);
            //_graphicElements.savetoXML(xmlOut);

            foreach (ListViewItem lvi in listView1.Items)
            {
                WatchEntry we = (lvi.Tag as WatchEntry);
                xmlOut.WriteStartElement("WatchItem");
                xmlOut.WriteAttributeString("Label", we.Label);
                xmlOut.WriteAttributeString("WatchType", Enum.GetName(typeof(WatchType), we.WatchType));
                xmlOut.WriteAttributeString("Signed", we.Signed.ToString());
                xmlOut.WriteAttributeString("DisplayHex", we.DisplayHex.ToString());
                xmlOut.WriteEndElement();
            }//foreach

            _graphicElements.SaveToXML(xmlOut);
            xmlOut.WriteEndElement();
        }
コード例 #4
0
        }//LoadFromXML

        //Save the CodeView settings to the save document
        public void saveState(XmlWriter xmlOut)
        {
            xmlOut.WriteStartElement(CodeView.ViewName);
            //save the graphic settings, regardless of error mode
            _graphicElements.SaveToXML(xmlOut);

            //Breakpoint logic moved to sim engine
            ////we are in error mode, all done
            //if (!_errors)
            //{
            //    foreach (CodeViewTab tab in this.Controls)
            //    {
            //        List<uint> al = tab.BreakPoints;
            //        foreach (uint address in al)
            //        {
            //            xmlOut.WriteStartElement("Breakpoint");
            //            xmlOut.WriteAttributeString("Position", address.ToString("x8"));
            //            xmlOut.WriteEndElement();
            //        }//foreach
            //    }//foreach
            //}

            xmlOut.WriteEndElement();
        }//saveState
コード例 #5
0
ファイル: CacheView.cs プロジェクト: nhorspool/ARMSim-Windows
 public void saveState(XmlWriter xmlOut)
 {
     xmlOut.WriteStartElement(this.Text);
     _graphicElements.SaveToXML(xmlOut);
     xmlOut.WriteEndElement();
 }
コード例 #6
0
 public void saveState(XmlWriter xmlOut)
 {
     xmlOut.WriteStartElement(PluginsUIView.ViewName);
     _graphicElements.SaveToXML(xmlOut);
     xmlOut.WriteEndElement();
 }//saveState