Ejemplo n.º 1
0
        public SystemImplementation(SmalltalkSystem parent, XmlNode xml, XmlNamespaceManager nsm)
            : this(parent)
        {
            if (xml == null)
            {
                throw new ArgumentNullException();
            }
            if (nsm == null)
            {
                throw new ArgumentNullException();
            }

            foreach (XmlNode node in xml.SelectNodes("si:Class", nsm))
            {
                this.GlobalItems.Add(new Class(this, node, nsm));
            }
            foreach (XmlNode node in xml.SelectNodes("si:Global", nsm))
            {
                this.GlobalItems.Add(new Global(this, node, nsm));
            }
            foreach (XmlNode node in xml.SelectNodes("si:Pool", nsm))
            {
                this.GlobalItems.Add(new Pool(this, node, nsm));
            }
        }
Ejemplo n.º 2
0
        public SystemDescription(SmalltalkSystem parent, XmlElement xml, XmlNamespaceManager nsm)
            : this(parent)
        {
            if (xml == null)
                throw new ArgumentNullException();
            if (nsm == null)
                throw new ArgumentNullException();

            foreach (XmlNode node in xml.SelectNodes("sd:Protocol", nsm))
                    this.Protocols.Add(new Protocol(this, node, nsm));
        }
Ejemplo n.º 3
0
        public SystemImplementation(SmalltalkSystem parent, XmlNode xml, XmlNamespaceManager nsm)
            : this(parent)
        {
            if (xml == null)
                throw new ArgumentNullException();
            if (nsm == null)
                throw new ArgumentNullException();

            foreach (XmlNode node in xml.SelectNodes("si:Class", nsm))
                this.GlobalItems.Add(new Class(this, node, nsm));
            foreach (XmlNode node in xml.SelectNodes("si:Global", nsm))
                this.GlobalItems.Add(new Global(this, node, nsm));
            foreach (XmlNode node in xml.SelectNodes("si:Pool", nsm))
                this.GlobalItems.Add(new Pool(this, node, nsm));
        }
Ejemplo n.º 4
0
        private void openToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.openFileDialog.InitialDirectory = Path.GetDirectoryName(Application.StartupPath);
            if (this.openFileDialog.ShowDialog(this) != DialogResult.OK)
            {
                return;
            }
            SmalltalkSystem ss = SmalltalkSystem.LoadFrom(this.openFileDialog.FileName);

            Properties.Settings.Default.LastFileName = this.openFileDialog.FileName;
            Properties.Settings.Default.Save();
            this.openLastToolStripMenuItem.Text    = Properties.Settings.Default.LastFileName;
            this.openLastToolStripMenuItem.Visible = true;
            this.SmalltalkSystemHolder.Value       = ss;
        }
Ejemplo n.º 5
0
        private void openLastToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string filename = Properties.Settings.Default.LastFileName;

            if (String.IsNullOrWhiteSpace(filename))
            {
                return;
            }
            if (!File.Exists(filename))
            {
                return;
            }
            SmalltalkSystem ss = SmalltalkSystem.LoadFrom(filename);

            this.SmalltalkSystemHolder.Value = ss;
        }
Ejemplo n.º 6
0
        public SystemDescription(SmalltalkSystem parent, XmlElement xml, XmlNamespaceManager nsm)
            : this(parent)
        {
            if (xml == null)
            {
                throw new ArgumentNullException();
            }
            if (nsm == null)
            {
                throw new ArgumentNullException();
            }

            foreach (XmlNode node in xml.SelectNodes("sd:Protocol", nsm))
            {
                this.Protocols.Add(new Protocol(this, node, nsm));
            }
        }
Ejemplo n.º 7
0
 public SystemImplementation(SmalltalkSystem parent)
 {
     this.SmalltalkSystem = parent;
     this.GlobalItems     = new NotifyingSortedSet <GlobalItem>();
 }
Ejemplo n.º 8
0
 public SystemDescription(SmalltalkSystem parent)
 {
     this.SmalltalkSystem = parent;
     this.Protocols = new NotifyingCollection<Protocol>();
 }
Ejemplo n.º 9
0
 public SystemImplementation(SmalltalkSystem parent)
 {
     this.SmalltalkSystem = parent;
     this.GlobalItems = new NotifyingSortedSet<GlobalItem>();
 }
Ejemplo n.º 10
0
 public SystemDescription(SmalltalkSystem parent)
 {
     this.SmalltalkSystem = parent;
     this.Protocols       = new NotifyingCollection <Protocol>();
 }