Exemplo n.º 1
0
        private void IPageParent_IOperationEvent(object sender, OperationEventArgs e)
        {
            string        LStrNewValue     = string.Empty;
            List <string> LListStrNewValue = new List <string>();

            if (CheckBoxExtension.IsChecked == true)
            {
                LListStrNewValue.Add("E");
            }
            if (CheckBoxAgentID.IsChecked == true)
            {
                LListStrNewValue.Add("A");
            }
            if (CheckRealExtension.IsChecked == true)
            {
                LListStrNewValue.Add("R");
            }
            if (LListStrNewValue.Count <= 0)
            {
                return;
            }
            LStrNewValue = string.Join(IPageParent.IStrSpliterChar, LListStrNewValue.ToArray());
            if (e.StrObjectTag == "Save")
            {
                IPageParent.SaveEditedParameterValue(LStrNewValue);
            }
        }
Exemplo n.º 2
0
        private void IPageParent_IOperationEvent(object sender, OperationEventArgs e)
        {
            string LStrNewValue = string.Empty;

            LStrNewValue = TextBoxPositiveInteger.GetElementData();

            if (e.StrObjectTag == "Save")
            {
                IPageParent.SaveEditedParameterValue(LStrNewValue);
            }
        }
Exemplo n.º 3
0
        private void IPageParent_IOperationEvent(object sender, OperationEventArgs e)
        {
            string LStrNewValue = string.Empty;

            LStrNewValue = TextBoxValueInput.Text.Trim();

            if (e.StrObjectTag == "Save")
            {
                IPageParent.SaveEditedParameterValue(LStrNewValue);
            }
        }
Exemplo n.º 4
0
        private void IPageParent_IOperationEvent(object sender, OperationEventArgs e)
        {
            string LStrNewValue = string.Empty;

            if (RadioButtonValue0.IsChecked == true)
            {
                LStrNewValue = "0";
            }
            else
            {
                LStrNewValue = TextBoxPositiveInteger.GetElementData();
            }
            if (e.StrObjectTag == "Save")
            {
                IPageParent.SaveEditedParameterValue(LStrNewValue);
            }
        }
Exemplo n.º 5
0
        private void IPageParent_IOperationEvent(object sender, OperationEventArgs e)
        {
            string LStrNewValue = string.Empty;

            if (RadioButtonValue1.IsChecked == true)
            {
                LStrNewValue = "1";
            }
            else
            {
                LStrNewValue = "0";
            }
            if (e.StrObjectTag == "Save")
            {
                IPageParent.SaveEditedParameterValue(LStrNewValue);
            }
        }
Exemplo n.º 6
0
        private void IPageParent_IOperationEvent(object sender, OperationEventArgs e)
        {
            string LStrNewValue = string.Empty;

            if (RadioButtonValue1.IsChecked == true)
            {
                LStrNewValue = "1";
            }
            else
            {
                ComboBoxItem LComboBoxItemSeleted = ComboBoxFirstDay.SelectedItem as ComboBoxItem;
                LStrNewValue = LComboBoxItemSeleted.DataContext.ToString();
            }
            if (e.StrObjectTag == "Save")
            {
                IPageParent.SaveEditedParameterValue(LStrNewValue);
            }
        }
Exemplo n.º 7
0
        private void IPageParent_IOperationEvent(object sender, OperationEventArgs e)
        {
            string LStrNewValue = string.Empty;

            foreach (RadioButton LRadioButtonSingleItem in StackPanelDataEnumeration.Children)
            {
                if (LRadioButtonSingleItem.IsChecked == true)
                {
                    LStrNewValue = LRadioButtonSingleItem.DataContext.ToString(); break;
                }
            }
            if (string.IsNullOrEmpty(LStrNewValue))
            {
                return;
            }
            if (e.StrObjectTag == "Save")
            {
                IPageParent.SaveEditedParameterValue(LStrNewValue);
            }
        }
Exemplo n.º 8
0
        private void IPageParent_IOperationEvent(object sender, OperationEventArgs e)
        {
            string LStrNewValue = string.Empty;

            if (RadioButtonValue0.IsChecked == true)
            {
                LStrNewValue = "0";
            }
            else if (RadioButtonValue1.IsChecked == true)
            {
                LStrNewValue = "1";
            }
            else if (RadioButtonValue2.IsChecked == true)
            {
                LStrNewValue = "2";
            }
            else if (RadioButtonValue3.IsChecked == true)
            {
                LStrNewValue = "3";
            }
            else if (RadioButtonValue4.IsChecked == true)
            {
                LStrNewValue = "4";
            }
            else if (RadioButtonValue5.IsChecked == true)
            {
                LStrNewValue = "5";
            }
            else if (RadioButtonValue6.IsChecked == true)
            {
                LStrNewValue = "6";
            }
            if (string.IsNullOrEmpty(LStrNewValue))
            {
                return;
            }
            if (e.StrObjectTag == "Save")
            {
                IPageParent.SaveEditedParameterValue(LStrNewValue);
            }
        }