예제 #1
0
        public OptionViewModel(Option option)
        {
            _option = option;

            AddProxy = new RelayCommand(() => AddProxyExec(), () => { return true; });
            RemoveProxy = new RelayCommand(() => RemoveProxyExec(), () => { return true; });
            ImportProxys = new RelayCommand(() => ImportProxysExec(), () => { return true; });
            ExportProxys = new RelayCommand(() => ExportProxysExec(), () => { return true; });
            ClearProxys = new RelayCommand(() => ClearProxysExec(), () => { return true; });
            RunSpider = new RelayCommand(() => ProxySpider.run(), () => { return true; });
            PushIpToOption = new RelayCommand(() => PushIpToOptionExec(), () => { return true; });
            CheckProxy = new RelayCommand(() => CheckProxyExec(), () => { return true; });
            badCheckedProxys = new List<string>();

            proxySpider = new ProxySpider();
        }
예제 #2
0
 public OptionWindow(Option option)
 {
     InitializeComponent();
     DataContext = new OptionViewModel(option);
     
 }
예제 #3
0
        private void initConfig()
        {
            TabItemsGroup = new ObservableCollection<TabItemsGroup> { };
            TabItemsGroup.Add(new TabItemsGroup());
            SelectedGroupIndex = 0;
            option = new Option();

            logger = new Logger();
        }
예제 #4
0
 public Requester(TabItem _tabItem, Option _option, ParameterInterpreter _pi)
 {
     tabItem = _tabItem;
     option = _option;
     pi = _pi;
 }