Exemplo n.º 1
0
 public InputIntervalBox(Interval inputInterval)
 {
     InitializeComponent();
     textLabel.Text = inputInterval.Abbreviation;
     added = false;
     interval = inputInterval;
 }
Exemplo n.º 2
0
 public void playInterval(Interval intervalToPlay, bool ascending, int rootNote)
 {
 }
Exemplo n.º 3
0
 public void playInterval(Interval intervalToPlay, int rootNote)
 {
 }
Exemplo n.º 4
0
        private void loadIntervalsFromXMLNode(XElement intervalReader)
        {
            intervals = new Dictionary<Guid, Interval>();

            foreach (XElement currentInterval in intervalReader.Elements("interval") ?? XElement.EmptySequence)
            {
                string intervalName = currentInterval.Attribute("name").Value;
                string intervalAbbreviation = currentInterval.Attribute("abbreviation").Value;

                string intervalDistanceString = currentInterval.Attribute("distance").Value;
                int intervalDistance = int.Parse(intervalDistanceString);

                string intervalIDString = currentInterval.Attribute("id").Value;
                Guid intervalID = Guid.Parse(intervalIDString);

                Interval newInterval = new Interval(intervalName, intervalAbbreviation, intervalDistance, intervalID);

                intervals.Add(intervalID, newInterval);
            }
        }