Beispiel #1
0
 public PhotoFromDbViewModel(PhotoFromDbView view, PhotoSearchServiceClient proxy)
 {
     this.view     = view;
     this.proxy    = proxy;
     this.dbWorker = new DbWorker();
     //this.birthday = new DateTime();
     this.operationDateStart = DateTime.Now.Date;
     this.operationDateEnd   = this.operationDateStart.Add(new TimeSpan(23, 59, 59));
     //this.personNames = getPersonNamesList();
     //this.personNames.Add("Иванов Петр Петрович");
     //this.personNames.Add("Сидоров Иван Евгеньевич");
     //this.personNames.Add("Петров Петр Петрович");
 }
Beispiel #2
0
 private PhotoSearchServiceClient getProxy()
 {
     if (this.proxy == null || this.proxy.State != CommunicationState.Opened)
     {
         InstanceContext          instanceContext = new InstanceContext(context);
         PhotoSearchServiceClient proxy           = new PhotoSearchServiceClient(instanceContext);
         this.proxy = proxy;
         return(proxy);
     }
     else
     {
         return(this.proxy);
     }
 }