public AddAuctionViewModel(IMainWindowsCodeBehind codeBehind) { if (codeBehind == null) { throw new ArgumentNullException(nameof(codeBehind)); } _MainCodeBehind = codeBehind; for (int i = 0; i < 24; i++) { if (i < 10) { hours[i] = "0" + i.ToString(); } else { hours[i] = i.ToString(); } } for (int i = 0; i < 60; i++) { if (i < 10) { minutes[i] = "0" + i.ToString(); seconds[i] = "0" + i.ToString(); } else { minutes[i] = i.ToString(); seconds[i] = i.ToString(); } } }
public VMLearnWords(IMainWindowsCodeBehind codeBehind) { _codeBehind = codeBehind; _data = new Data(); LearnWord.LearnFirstWords(_data.GetDictionary, ref _sourseImage, ref _ukrWord, ref _englWord, ref _tranckWord); }
public SnifferViewModel(IMainWindowsCodeBehind codeBehind) { if (codeBehind == null) { throw new ArgumentNullException(nameof(codeBehind)); } _MainCodeBehind = codeBehind; _dispatcher = Dispatcher.CurrentDispatcher; SdeviceList = LibPcapLiveDeviceList.Instance; DeviceList = new ObservableCollection <LibPcapLiveDevice>(); DeviceListDescription = new ObservableCollection <string>(); CurrentDevice = ""; for (int i = 0; i < SdeviceList.Count(); i++) { DeviceList.Add(SdeviceList[i]); DeviceListDescription.Add(SdeviceList[i].Interface.FriendlyName); } Col = new ObservableCollection <MyTable>(); TcpCol = new ObservableCollection <Tcp>(); UdpCol = new ObservableCollection <Udp>(); ArpCol = new ObservableCollection <Arp>(); IcmpCol = new ObservableCollection <Icmp>(); IgmpCol = new ObservableCollection <Igmp>(); }
public VMTopicQuestion(IMainWindowsCodeBehind codeBehind) { _codeBehind = codeBehind; _size = 116; _second = 16.1; // double.Parse(ConfigurationManager.AppSettings["Second"]); Timer(); }
public InfoViewModel(IMainWindowsCodeBehind codeBehind) { if (codeBehind == null) { throw new ArgumentNullException(nameof(codeBehind)); } _MainCodeBehind = codeBehind; }
public RegistViewModel(IMainWindowsCodeBehind codeBehind) { if (codeBehind == null) { throw new ArgumentNullException(nameof(codeBehind)); } _MainCodeBehind = codeBehind; Initial_Timer(); }
public Forum_topicViewModel(IMainWindowsCodeBehind codeBehind) { if (codeBehind == null) { throw new ArgumentNullException(nameof(codeBehind)); } _MainCodeBehind = codeBehind; Set_Timer(); }
//ctor public CallAndSmsVM(int idUser, IMainWindowsCodeBehind codeBehind) { CodeBehind = codeBehind; /* ClientModel clientModel = dbOperation.GetItemClient(idUser); * TariffPlanModel activeTariff = dbOperation.GetActiveTariff(idUser);*/ //dbOperation. idClient = idUser; Call = new BindableCollection <CallModel>(dbOperation.GetCallClient(idClient)); Sms = new BindableCollection <SMSModel>(dbOperation.GetSmsClient(idClient)); }
//ctor public SecondViewModel(IMainWindowsCodeBehind codeBehind) { if (codeBehind == null) { throw new ArgumentNullException(nameof(codeBehind)); } _MainCodeBehind = codeBehind; //создаем список чисел NumbersList = Enumerable.Range(1, 10).ToList(); }
public TestVM(IMainWindowsCodeBehind codeBehind) { _codeBehind = codeBehind; var _firstItem = data.GetDictionary.Values.First(); _englishWord = _firstItem.WordEngl; _transcription = _firstItem.WordTranscription; _versionOne = data.GetUkrWord(); _versionTwo = data.GetUkrWord(); _versionThree = data.GetUkrWord(); _versionFour = data.GetUkrWord(); _versionFive = data.GetUkrWord(); _versionSix = data.GetUkrWord(); _resoursePhoto = data.GetDictionary.Keys.First(); Word.Initialize(); }
public LiseningVM(IMainWindowsCodeBehind codeBehind) { _codeBehind = codeBehind; _englishWord = _data.GetDictionary.Values.First().WordEngl; }
public VMStartPage(IMainWindowsCodeBehind codeBehind) { _codeBehind = codeBehind; }
public CreateSmsVM(int IdUser, IMainWindowsCodeBehind codeBehin) { CodeBehind = codeBehin; idUser = IdUser; }
public VMQuestionThems(IMainWindowsCodeBehind codeBehind) { _codeBehind = codeBehind; }
public VMSetting(IMainWindowsCodeBehind codeBehind) { _codeBehind = codeBehind; }
public ShooseStyleVM(IMainWindowsCodeBehind codeBehind) { _codeBehind = codeBehind; }
public DesignerWordsVM(IMainWindowsCodeBehind codeBehind) { _codeBehind = codeBehind; }
public VMSubStages(IMainWindowsCodeBehind codeBehind) { _codeBehind = codeBehind; }