Beispiel #1
0
 private void Update(int elementID, Actions.ElementChanges.ChangeType changeType)
 {
     if (elementID != ElementId)
     {
         if (changeType == Actions.ElementChanges.ChangeType.Changed)
         {
             listen = false;
             UpdateTriggerDesc();
             listen = true;
         }
         else if (changeType == Actions.ElementChanges.ChangeType.TriggerChanged)
         {
             UpdateErrorProvider();
         }
     }
     else
     {
         if (changeType == Actions.ElementChanges.ChangeType.Renamed)
         {
             UpdateTitle();
         }
         else if (changeType == Actions.ElementChanges.ChangeType.TriggerChanged)
         {
             UpdateData();
         }
         else if (changeType == Actions.ElementChanges.ChangeType.Removed)
         {
             Close();
         }
     }
 }
Beispiel #2
0
 private void Update(int elementId, Actions.ElementChanges.ChangeType changeType)
 {
     if (!listen)
     {
         return;
     }
     if (elementId == m_Element.Id)
     {
         if (changeType == Actions.ElementChanges.ChangeType.Renamed)
         {
             listen       = false;
             this.Text    = m_Element.Title;
             nameBox.Text = m_Element.Title;
             listen       = true;
         }
         else if (changeType == Actions.ElementChanges.ChangeType.Removed)
         {
             Close();
         }
         else if (changeType == Actions.ElementChanges.ChangeType.Played)
         {
             DisableControls(false);
         }
         else if (changeType == Actions.ElementChanges.ChangeType.Stopped)
         {
             EnableControls();
         }
     }
 }
Beispiel #3
0
 private void Update(int elementID, Actions.ElementChanges.ChangeType changeType)
 {
     if (!m_Listen)
     {
         return;
     }
     UpdateControls();
 }
Beispiel #4
0
 private void Update(int id, Actions.ElementChanges.ChangeType changeType)
 {
     if (listen && changeType == Actions.ElementChanges.ChangeType.Changed)
     {
         listen = false;
         UpdateData();
         listen = true;
     }
 }
Beispiel #5
0
 private void Update(int id, Actions.ElementChanges.ChangeType changeType)
 {
     if (listen && changeType == Actions.ElementChanges.ChangeType.Changed)
     {
         listen = false;
         fixedDelayUpDown.Value = TimeConversion.GetTimeInUnit(m_Element.FixedStartDelay, fixedUnitBox);
         maxDelayUpDown.Value   = TimeConversion.GetTimeInUnit(m_Element.MaximumRandomStartDelay, randomUnitBox);
         listen = true;
     }
 }
Beispiel #6
0
 private void Update(int id, Actions.ElementChanges.ChangeType changeType)
 {
     if (listen && changeType == Actions.ElementChanges.ChangeType.Changed)
     {
         listen             = false;
         pitchBox.Checked   = m_Element.Effects.Pitch.Active;
         balanceBox.Checked = m_Element.Effects.Balance.Active;
         volumeBox.Checked  = m_Element.Effects.VolumeDB.Active;
         speakerBox.Checked = m_Element.Effects.SpeakerAssignment.Active;
         reverbBox.Checked  = m_Element.Effects.Reverb.Active;
         tempoBox.Checked   = m_Element.Effects.Tempo.Active;
         listen             = true;
     }
 }
Beispiel #7
0
 private void Update(int elementID, Actions.ElementChanges.ChangeType changeType)
 {
     if (listen && changeType == Actions.ElementChanges.ChangeType.Changed)
     {
         listen                  = false;
         loopButton.Checked      = m_Element.RepeatCount == -1;
         noLoopButton.Checked    = m_Element.RepeatCount != -1;
         repeatCountUpDown.Value = m_Element.RepeatCount == -1 ? 1 : m_Element.RepeatCount;
         fixedDelayUpDown.Value  = TimeConversion.GetTimeInUnit(m_Element.FixedIntermediateDelay, fixedUnitBox);
         maxDelayUpDown.Value    = TimeConversion.GetTimeInUnit(m_Element.MaximumRandomIntermediateDelay, randomUnitBox);
         UpdateControlActivation();
         this.Refresh();
         listen = true;
     }
 }
Beispiel #8
0
        private void Update(int id, Actions.ElementChanges.ChangeType changeType)
        {
            if (listen && changeType == Actions.ElementChanges.ChangeType.Changed)
            {
                listen = false;

                cueOutActive.Checked = m_Element.Effects.CueOut.Active;
                cueInActive.Checked  = m_Element.Effects.CueIn.Active;
                cueInTime.Enabled    = cueInActive.Checked;
                cueOutTime.Enabled   = cueOutActive.Checked;
                setCueTime(cueOutTime, m_Element.Effects.CueOut.Position);
                setCueTime(cueInTime, m_Element.Effects.CueIn.Position);

                listen = true;
            }
        }
Beispiel #9
0
 private void Update(int elementID, Actions.ElementChanges.ChangeType changeType)
 {
     if (!listen)
     {
         return;
     }
     if (elementID == ElementsContainer.Id && changeType == Actions.ElementChanges.ChangeType.PreRemoved)
     {
         listen = false;
         return;
     }
     else if (elementID == ElementsContainer.Id && changeType == Actions.ElementChanges.ChangeType.Removed)
     {
         listen = true;
         return;
     }
     listen = false;
     CancelRefillTask();
     if (elementID == ElementsContainer.Id && changeType == Actions.ElementChanges.ChangeType.Changed)
     {
         RefillGrid();
     }
     else if (m_ElementsToRows.ContainsKey(elementID))
     {
         if (changeType == Actions.ElementChanges.ChangeType.Removed)
         {
             RefillGrid();
         }
         else if (changeType == Actions.ElementChanges.ChangeType.Renamed)
         {
             foreach (int row in m_ElementsToRows[elementID])
             {
                 ChangeElementDataInGrid(elementID, row);
             }
         }
         else if (changeType == Actions.ElementChanges.ChangeType.Changed)
         {
             foreach (int row in m_ElementsToRows[elementID])
             {
                 ChangeElementDataInGrid(elementID, row);
                 SetElementAttributes(Grid, ElementsContainer.GetGeneralElements()[row], row);
             }
         }
     }
     listen = true;
 }
Beispiel #10
0
        private void Update(int id, Actions.ElementChanges.ChangeType changeType)
        {
            if (listen && changeType == Actions.ElementChanges.ChangeType.Changed)
            {
                listen = false;
                fixedVolumeButton.Checked = !m_Element.Effects.HasRandomVolume;
                randomButton.Checked      = m_Element.Effects.HasRandomVolume;
                volumeBar.Value           = m_Element.Effects.Volume;
                minRandomUpDown.Value     = m_Element.Effects.MinRandomVolume;
                maxRandomUpDown.Value     = m_Element.Effects.MaxRandomVolume;
                fadeInUpDown.Value        = TimeConversion.GetTimeInUnit(m_Element.Effects.FadeInTime, fadeInUnitBox);
                fadeOutUpDown.Value       = TimeConversion.GetTimeInUnit(m_Element.Effects.FadeOutTime, fadeOutUnitBox);
                crossFadingBox.Enabled    = m_Element.Effects.FadeOutTime > 0;
                crossFadingBox.Checked    = m_Element.Effects.CrossFading;

                listen = true;
            }
        }
Beispiel #11
0
        private void Update(int elementID, Actions.ElementChanges.ChangeType changeType)
        {
            if (!m_Listen)
            {
                return;
            }

            switch (changeType)
            {
            case Actions.ElementChanges.ChangeType.Renamed:
                this.Text = m_Element.Title;
                break;

            default:
                UpdateControls();
                break;
            }
        }