Пример #1
0
        private void LoopConditionData_loaded(object sender, RoutedEventArgs e)
        {
            firstOperand = LoopConditionData.FirstOperand;

            if (LoopConditionData.FirstOperand != null)
            {
                first_operand.Text = LoopConditionData.FirstOperand.VariableName;
            }


            secondOperand = LoopConditionData.SecondOperand;

            if (LoopConditionData.SecondOperand != null)
            {
                second_operand.Text = LoopConditionData.SecondOperand.VariableName;
            }


            condition_combo.SelectedIndex = LoopConditionData.ConditionIndex;

            if (LoopConditionData.ConditionIndex < 4)
            {
                secondOperand_grid.SetValue(Grid.RowProperty, 3);
                ignoreCase_grid.Visibility = System.Windows.Visibility.Collapsed;
            }
            else if (LoopConditionData.ConditionIndex == 11 && LoopConditionData.ConditionIndex == 12)
            {
                secondOperand_grid.Visibility = System.Windows.Visibility.Collapsed;
                ignoreCase_grid.Visibility    = System.Windows.Visibility.Collapsed;
            }
            else
            {
                ignoreCase_grid.Visibility = System.Windows.Visibility.Visible;
            }
        }
Пример #2
0
 private void list_from_click(object sender, RoutedEventArgs e)
 {
     working_variable = VariableStorage.Pick();
     if (working_variable != null)
     {
         listFrom_text.Text = working_variable.VariableName;
     }
 }
Пример #3
0
 private void addItem_click(object sender, RoutedEventArgs e)
 {
     itemToAdd = VariableStorage.Pick();
     if (itemToAdd != null)
     {
         addItem_text.Text = itemToAdd.VariableName;
     }
 }
Пример #4
0
 private void secondList_click(object sender, RoutedEventArgs e)
 {
     SecondList = VariableStorage.Pick();
     if (SecondList != null)
     {
         secondList.Text = SecondList.VariableName;
     }
 }
Пример #5
0
 private void remove_index_click(object sender, RoutedEventArgs e)
 {
     index_variable = VariableStorage.Pick();
     if (index_variable != null)
     {
         removeIndex_text.Text = index_variable.VariableName;
     }
 }
Пример #6
0
 private void endRowPick_click(object sender, RoutedEventArgs e)
 {
     endRowvar = VariableStorage.Pick();
     if (endRowvar != null)
     {
         RangeEndsatRow_text.Text = endRowvar.VariableName;
     }
 }
Пример #7
0
 private void decreaseByVarialbe_click(object sender, RoutedEventArgs e)
 {
     decreaseBy_variable = VariableStorage.Pick();
     if (decreaseBy_variable != null)
     {
         decreaseByVariable_text.Text = decreaseBy_variable.VariableName;
     }
 }
Пример #8
0
 private void clearList_click(object sender, RoutedEventArgs e)
 {
     working_list = VariableStorage.Pick();
     if (working_list != null)
     {
         reverseList_text.Text = working_list.VariableName;
     }
 }
Пример #9
0
 private void charachterPosition_click(object sender, RoutedEventArgs e)
 {
     startPosition_variable = VariableStorage.Pick();
     if (startPosition_variable != null)
     {
         startPositon_text.Text = startPosition_variable.VariableName;
     }
 }
Пример #10
0
 private void second_operand_click(object sender, RoutedEventArgs e)
 {
     secondOperand = VariableStorage.Pick();
     if (secondOperand != null)
     {
         second_operand.Text = secondOperand.VariableName;
     }
 }
Пример #11
0
 private void firstList_click(object sender, RoutedEventArgs e)
 {
     FirstList = VariableStorage.Pick();
     if (FirstList != null)
     {
         firstList.Text = FirstList.VariableName;
     }
 }
Пример #12
0
 private void singleRowPick_click(object sender, RoutedEventArgs e)
 {
     singleRowvar = VariableStorage.Pick();
     if (singleRowvar != null)
     {
         singleCellRow_text.Text = singleRowvar.VariableName;
     }
 }
Пример #13
0
 private void startRowPick_click(object sender, RoutedEventArgs e)
 {
     startRowvar = VariableStorage.Pick();
     if (startRowvar != null)
     {
         RangeStartatRow_text.Text = startRowvar.VariableName;
     }
 }
Пример #14
0
 private void first_operand_click(object sender, RoutedEventArgs e)
 {
     firstOperand = VariableStorage.Pick();
     if (firstOperand != null)
     {
         first_operand.Text = firstOperand.VariableName;
     }
 }
Пример #15
0
 private void variable_name_click(object sender, RoutedEventArgs e)
 {
     working_variable = VariableStorage.Pick();
     if (working_variable != null)
     {
         variableName_text.Text = working_variable.VariableName;
     }
 }
Пример #16
0
 private void numberofCharacter_click(object sender, RoutedEventArgs e)
 {
     numberOfChar_variable = VariableStorage.Pick();
     if (numberOfChar_variable != null)
     {
         numberOfChar_text.Text = numberOfChar_variable.VariableName;
     }
 }
Пример #17
0
        private void pickVar_click(object sender, RoutedEventArgs e)
        {
            working_variable = VariableStorage.Pick();

            if (working_variable != null)
            {
                msg_rtb.Document.Blocks.Clear();
                msg_rtb.Document.Blocks.Add(new Paragraph(new Run(working_variable.VariableName)));
            }
        }
Пример #18
0
        private void Template_loaded(object sender, RoutedEventArgs e)
        {
            FirstList  = MergeListsData.FirstList;
            SecondList = MergeListsData.SecondList;

            firstList.Text  = MergeListsData.FirstListStr;
            secondList.Text = MergeListsData.SecondListStr;

            outputList_text.Text = MergeListsData.ResultStoreVar;
        }
Пример #19
0
        private void ok_button_Click(object sender, RoutedEventArgs e)
        {
            if (variableGrid.SelectedItem == null)
            {
                return;
            }
            selectedVariable = variableGrid.SelectedItem as VariableCollectionModel;

            Window.GetWindow(this).Close();
            // (((Parent as Grid).Parent as TaskViewFrameUC).Parent as MetroWindow).DialogResult = false;
        }
Пример #20
0
        private void AddTtemToListData_loaded(object sender, RoutedEventArgs e)
        {
            intoList_text.Text = AddTtemToListData.WorkingListStr;

            addItem_text.Text = AddTtemToListData.ItemToAddStr;

            if (AddTtemToListData.WorkingList != null)
            {
                working_list = AddTtemToListData.WorkingList;
            }

            if (AddTtemToListData.ItemToAdd != null)
            {
                itemToAdd = AddTtemToListData.ItemToAdd;
            }
        }
Пример #21
0
 private void textToTrim_click(object sender, RoutedEventArgs e)
 {
     working_variable     = VariableStorage.Pick();
     textToTrim_text.Text = working_variable.VariableName;
 }
Пример #22
0
        private void ClearListData_loaded(object sender, RoutedEventArgs e)
        {
            working_list = ReverseListData.ListToReverse;

            reverseList_text.Text = ReverseListData.ListToReverseStr;
        }
Пример #23
0
        private void SuffleList_loaded(object sender, RoutedEventArgs e)
        {
            working_list = SuffleListData.ListToSuffle;

            suffleList_text.Text = SuffleListData.ListToSuffleStr;
        }
Пример #24
0
 private void truncate_number_click(object sender, RoutedEventArgs e)
 {
     working_variable = VariableStorage.Pick();
     if (working_variable != null)
         numberToTruncate_text.Text = working_variable.VariableName;
 }