private void SetRightStimulus(Stimulus stim) { right_stimulus.ImageLocation = stim.GetFilename(); right_stimulus_top.Text = stim.GetTop().ToString(); right_stimulus_left.Text = stim.GetLeft().ToString(); right_stimulus_width.Text = stim.GetWidth().ToString(); right_stimulus_height.Text = stim.GetHeight().ToString(); right_stimulus_name.Text = stim.GetName(); }
public void XMLWriteStimulusParameters(XmlWriter xmlWriter, Stimulus stim, string screen) { xmlWriter.WriteStartElement("stimulus"); xmlWriter.WriteAttributeString("screen", screen); xmlWriter.WriteStartElement("name"); xmlWriter.WriteString(stim.GetName()); xmlWriter.WriteEndElement(); xmlWriter.WriteStartElement("location"); xmlWriter.WriteString(stim.GetFilename()); xmlWriter.WriteEndElement(); xmlWriter.WriteStartElement("width"); xmlWriter.WriteString(stim.GetWidth().ToString()); xmlWriter.WriteEndElement(); xmlWriter.WriteStartElement("height"); xmlWriter.WriteString(stim.GetHeight().ToString()); xmlWriter.WriteEndElement(); xmlWriter.WriteStartElement("top"); xmlWriter.WriteString(stim.GetTop().ToString()); xmlWriter.WriteEndElement(); xmlWriter.WriteStartElement("left"); xmlWriter.WriteString(stim.GetLeft().ToString()); xmlWriter.WriteEndElement(); xmlWriter.WriteEndElement(); }