예제 #1
0
 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();
         }
     }
 }
예제 #2
0
        public VMLearnWords(IMainWindowsCodeBehind codeBehind)
        {
            _codeBehind = codeBehind;
            _data       = new Data();

            LearnWord.LearnFirstWords(_data.GetDictionary, ref _sourseImage, ref _ukrWord, ref _englWord, ref _tranckWord);
        }
예제 #3
0
        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>();
        }
예제 #4
0
 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();
 }
예제 #7
0
 public Forum_topicViewModel(IMainWindowsCodeBehind codeBehind)
 {
     if (codeBehind == null)
     {
         throw new ArgumentNullException(nameof(codeBehind));
     }
     _MainCodeBehind = codeBehind;
     Set_Timer();
 }
예제 #8
0
        //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();
        }
예제 #10
0
        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();
        }
예제 #11
0
 public LiseningVM(IMainWindowsCodeBehind codeBehind)
 {
     _codeBehind  = codeBehind;
     _englishWord = _data.GetDictionary.Values.First().WordEngl;
 }
예제 #12
0
 public VMStartPage(IMainWindowsCodeBehind codeBehind)
 {
     _codeBehind = codeBehind;
 }
예제 #13
0
 public CreateSmsVM(int IdUser, IMainWindowsCodeBehind codeBehin)
 {
     CodeBehind = codeBehin;
     idUser     = IdUser;
 }
예제 #14
0
 public VMQuestionThems(IMainWindowsCodeBehind codeBehind)
 {
     _codeBehind = codeBehind;
 }
예제 #15
0
 public VMSetting(IMainWindowsCodeBehind codeBehind)
 {
     _codeBehind = codeBehind;
 }
예제 #16
0
 public ShooseStyleVM(IMainWindowsCodeBehind codeBehind)
 {
     _codeBehind = codeBehind;
 }
예제 #17
0
 public DesignerWordsVM(IMainWindowsCodeBehind codeBehind)
 {
     _codeBehind = codeBehind;
 }
예제 #18
0
 public VMSubStages(IMainWindowsCodeBehind codeBehind)
 {
     _codeBehind = codeBehind;
 }