コード例 #1
0
        private void RuleCommandType_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
        {
            var ruleCommandComboBox = sender as ComboBox;

            if (ruleCommandComboBox != null && m_ruleCommandLabel != null && ruleCommandComboBox.SelectedValue != null)
            {
                var command = (SimpleWizardCommandTypes)Enum.Parse(typeof(SimpleWizardCommandTypes), ((TextBlock)ruleCommandComboBox.SelectedValue).Text, true);

                switch (command)
                {
                case SimpleWizardCommandTypes.Dial:
                    AdvancedDialCommandSB.Stop();
                    RejectCommandSB.Stop();
                    DialCommandSB.Begin();
                    break;

                case SimpleWizardCommandTypes.DialAdvanced:
                    DialCommandSB.Stop();
                    RejectCommandSB.Stop();
                    AdvancedDialCommandSB.Begin();
                    break;

                case SimpleWizardCommandTypes.Reject:
                    DialCommandSB.Stop();
                    AdvancedDialCommandSB.Stop();
                    RejectCommandSB.Begin();
                    break;
                }
            }
        }
コード例 #2
0
        private SimpleWizardRule m_ruleToUpdate;        // If this is set means the control is updating an existing rule as opposed to adding a new one.

        public SimpleWizardOutRuleControl()
        {
            // Required to initialize variables
            InitializeComponent();
            m_rulePriority.Text = DEFAULT_RULE_PRIORITY.ToString();
            DialCommandSB.Begin();
            HideError.Begin();
        }
コード例 #3
0
 public SimpleWizardInRuleControl()
 {
     // Required to initialize variables
     InitializeComponent();
     m_rulePriority.Text = DEFAULT_RULE_PRIORITY.ToString();
     DialCommandSB.Begin();
     HideErrorSB.Begin();
     SpecificTimeStoryboard.Begin();
     m_initialised = true;
 }