Example #1
0
 void ws_GetSchoolsCompleted(object sender, GetSchoolsCompletedEventArgs e)
 {
     if (e.Error != null)
     {
         System.Windows.Browser.HtmlPage.Window.Alert(e.Error.Message);
     }
     else if (e.ServiceError != null)
     {
         System.Windows.Browser.HtmlPage.Window.Alert(e.ServiceError.Message);
     }
     else
     {
         _tables = e.Result.Tables;
         IEnumerable list = DynamicDataBuilder.GetDataList(e.Result);
         if (e.UserState as string == "Lookup")
         {
             _lookup = list;
         }
         else
         {
             //theGrid.Columns.Clear();
             //theGrid.ItemsSource = e.Result;
         }
     }
 }
Example #2
0
		void ws_GetSchoolsCompleted(object sender, GetSchoolsCompletedEventArgs e)
		{
            if (e.Error != null)
                System.Windows.Browser.HtmlPage.Window.Alert(e.Error.Message);
			else if (e.ServiceError != null)
				System.Windows.Browser.HtmlPage.Window.Alert(e.ServiceError.Message);
			else
			{
				_tables = e.Result.Tables;
                IEnumerable list = DynamicDataBuilder.GetDataList(e.Result);
                if (e.UserState as string == "Lookup")
                    _lookup = list;
                else
                {
                    //theGrid.Columns.Clear();
                    //theGrid.ItemsSource = e.Result;
				}
			}
        }