protected void SampleEdit()
        {
            var hideSampleList = SampleList.Where(s => !s.IsSelected).ToList();

            this.SampleList = hideSampleList;
            //this.SampleList.Remove(selectSample);

            SetDetailClear();
            // FooterMessage = "Select sample : " + this.SampleList.Count();
        }
 private async void Search()
 {
     if (!string.IsNullOrEmpty(SearchSample.ToString()))
     {
         SampleList.Where(a => a.Id == SearchSample);
     }
     else
     {
         MessageSearch = "Debe ingresar un Número";
     }
 }
        private void DateSelectSampleList()
        {
            if (this._sampleList == null || !this._sampleList.Any())
            {
                this.SampleList = Dao.SampleDao.GetSamples().ToList();
            }

            var datePicSelectSampleList = SampleList.Where(s => this._fromDatePick <= DateTime.Parse(s.DATEONLY) &&
                                                           DateTime.Parse(s.DATEONLY) <= this._toDatePick)
                                          .ToList();

            this.SampleList = datePicSelectSampleList;
            SetDetailClear();
        }
        protected void SampleDelete()
        {
            string messageBoxText = "Are you sure you want to delete selected data?";
            string caption        = "Delete sample";

            // Display message box
            if (ShowConfirmDialog(messageBoxText, caption))
            {
                var deleteSampleList = SampleList.Where(s => s.IsSelected)
                                       .Select(s => (long)s.ID)
                                       .ToArray();
                // Console.WriteLine("delete sample");

                // リスト更新(DBから更新すると、Hideのものが復活するのでViewの中で完結させる)
                var res = Dao.SampleDao.DeleteSample(deleteSampleList);
                SampleEdit();
                return;
            }
            // Console.WriteLine("Delete Cancel");
        }