Exemple #1
0
        private void Service_GetDetailexhibitionCompleted(object sender, ServiceReference1.GetDetailexhibitionCompletedEventArgs e)
        {
            List <ServiceReference1.Exhibition> list = new List <ServiceReference1.Exhibition>();

            list.Add(e.Result);
            ObservableCollection <ServiceReference1.Exhibition> listExhibition = new ObservableCollection <ServiceReference1.Exhibition>(list);

            if (e.Result.ExhibitionStatusId == (int)EnumExhibitionStatus.New)
            {
                pivot.DataContext   = listExhibition;
                pivot.SelectedIndex = 0;
                total1.Text         = "";
            }
            else if (e.Result.ExhibitionStatusId == (int)EnumExhibitionStatus.Wait)
            {
                pivot.DataContext   = listExhibition;
                pivot.SelectedIndex = 1;
                total4.Text         = "";
            }
            else if (e.Result.ExhibitionStatusId == (int)EnumExhibitionStatus.Complete)
            {
                pivot.DataContext   = listExhibition;
                pivot.SelectedIndex = 2;
                total2.Text         = "";
            }
            else if (e.Result.ExhibitionStatusId == (int)EnumExhibitionStatus.Fail)
            {
                pivot.DataContext   = listExhibition;
                pivot.SelectedIndex = 3;
                total3.Text         = "";
            }
        }
Exemple #2
0
        private void Service_GetDetailexhibitionCompleted(object sender, ServiceReference1.GetDetailexhibitionCompletedEventArgs e)
        {
            var service = new ServiceReference1.ShipwayServiceSoapClient();

            this.DataContext = e.Result;
            service.GetExhibitionStatusAsync(e.Result.ExhibitionStatusId);
            service.GetExhibitionStatusCompleted += Service_GetExhibitionStatusCompleted;
        }
 private void Service_GetDetailexhibitionCompleted(object sender, ServiceReference1.GetDetailexhibitionCompletedEventArgs e)
 {
     this.DataContext = e.Result;
 }