private void MethodMenuBotButton_Click(object sender, RoutedEventArgs e) { int index = methodListBox.SelectedIndex; if (index != -1) { MyAppItem.Move(_methodList, index, _methodList.Count - 1); MyAppItem.ReloadList(_seclectingListView, methodListBox); } }
private void FileMenuTopButton_Click(object sender, RoutedEventArgs e) { int index = _seclectingListView.SelectedIndex; if (index != -1) { MyAppItem.Move(_fileList, index, 0); MyAppItem.ReloadList(_seclectingListView, methodListBox); } }
private void CheckBox_Checked(object sender, RoutedEventArgs e) { var method = methodListBox.SelectedItem as ItemMethod; if (method.Item.Args.CheckArgs()) { MyAppItem.ReloadList(_seclectingListView, methodListBox); } else { method.IsActive = false; MessageBox.Show("Invalid " + method.Item.Name + " Argument"); } }
private void Tab_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (Tab.SelectedIndex == 0 && _seclectingListView == filesListView) { return; } if (Tab.SelectedIndex == 1 && _seclectingListView == folderListView) { return; } if (Tab.SelectedIndex == 0) { _seclectingListView = filesListView; } else { _seclectingListView = folderListView; } if (_seclectingListView.ItemsSource != null) { MyAppItem.ReloadList(_seclectingListView, methodListBox); } }
private void ClearMethodMenuButton_Click(object sender, RoutedEventArgs e) { _methodList.Clear(); MyAppItem.ReloadList(_seclectingListView, methodListBox); }
private void CheckBox_Unchecked(object sender, RoutedEventArgs e) { MyAppItem.ReloadList(_seclectingListView, methodListBox); }
private void StartButton_Click(object sender, RoutedEventArgs e) { MyAppItem.ReloadList(_seclectingListView, methodListBox); //Handling conflict MyAppItem.StartBatch(_seclectingListView, methodListBox, _isSkip); }