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)); } }
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)); }
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)); }
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; }
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; }
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)); } }
public SystemImplementation(SmalltalkSystem parent) { this.SmalltalkSystem = parent; this.GlobalItems = new NotifyingSortedSet <GlobalItem>(); }
public SystemDescription(SmalltalkSystem parent) { this.SmalltalkSystem = parent; this.Protocols = new NotifyingCollection<Protocol>(); }
public SystemImplementation(SmalltalkSystem parent) { this.SmalltalkSystem = parent; this.GlobalItems = new NotifyingSortedSet<GlobalItem>(); }
public SystemDescription(SmalltalkSystem parent) { this.SmalltalkSystem = parent; this.Protocols = new NotifyingCollection <Protocol>(); }