Exemplo n.º 1
0
 public ExceptionPestTab(TaskException taskException)
 {
     _taskException = taskException;
     InitializeComponent();
     ImageList.DataContext = ImgDataContext;
 }
Exemplo n.º 2
0
 public PoiInfoPage()
 {
     InitializeComponent();
     _taskDataAccessLayer = new CollectionTaskDataAccessLayer();
     _resultDataAccessLayer = new CollectionTaskResultDataAccessLayer();
     _pestDataAccessLayer = new CollectionTaskPestViewDataAccessLayer();
     _natureDataAccessLayer = new CollectionTaskNatureDataAccessLayer();
     _photoDataAccessLayer = new PhotoDataAccessLayer();
     _service = new CollectionTaskService();
     _pestDataContext = new PestDataContext();
     ((PivotItem)(tabList.Items[0])).Header = "基本信息";
     var esBorder = ((Border)(esPest.LayoutRoot.Children[0]));
     esBorder.Background = new SolidColorBrush(Color.FromArgb(255, 187, 122, 54));
     ((TextBlock)esBorder.Child).Foreground = new SolidColorBrush(Color.FromArgb(255, 255, 255, 255));
     _diseaseList = new List<CollectionTaskResultDisease>();
     _pestList = new List<CollectionTaskResultPest>();
     _weedList = new List<CollectionTaskResultWeed>();
     _taskResult = new CollectionTaskResult();
     _taskException = new TaskException();
     _imageDataDic = new Dictionary<int, ImageListViewDataContext>();
 }