Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何将JSON结果链接到Syncfusion调度程序xamarin_C#_Xamarin_Xamarin.forms - Fatal编程技术网

C# 如何将JSON结果链接到Syncfusion调度程序xamarin

C# 如何将JSON结果链接到Syncfusion调度程序xamarin,c#,xamarin,xamarin.forms,C#,Xamarin,Xamarin.forms,我的应用程序上有一个syncfusion调度程序,我需要在调度程序中显示Json结果 public partial class test : ContentPage { public Picker viewPicker; public class Data { public DateTime date_start { get; set; } public DateTime date_end { get; set; } pub

我的应用程序上有一个syncfusion调度程序,我需要在调度程序中显示Json结果

public partial class test : ContentPage
{
    public Picker viewPicker;
    public class Data
    {
        public DateTime date_start { get; set; }
        public DateTime date_end { get; set; }
        public string salle { get; set; }
        public string professeur { get; set; }
        public string lib1_formation { get; set; }
        public string semaine { get; set; }
        public string jours { get; set; }
        public string module { get; set; }
        public string groupe_de_classe { get; set; }
        public string type { get; set; }
        public string remarque { get; set; }
        public string autre_professeur { get; set; }
        public string autre_groupe { get; set; }
        public string descrption { get; set; }
        public Color Color { get; set; }
    }

    public test ()
    {
        SfSchedule schedule;
        InitializeComponent();
        Calend();
        Rest();



    }

    public void Rest()
    {

        Restcours Rest_3 = new Restcours();

        Rest Student = new Rest();
        IRestResponse result_Student = Rest_3.Student("y.abasri@net.estia.fr");
        var JResponse_student = JsonConvert.DeserializeObject<dynamic>(result_Student.Content);
        Trace.Write(string.Format("Request completed in {0} ms,  Response: {1} ", 50, "ffffffffffffffffffffffff"));
        Console.WriteLine("This is the JSON RESULT --> " + JResponse_student);

        List<Data> lstData = new List<Data>();
        lstData.Add(JResponse_student.events);

        Console.WriteLine("hada houwaa --->" + JResponse_student.data.events);
    }

    public void Calend()
    {
        schedule = new SfSchedule();
        new ContentPage { Content = schedule };
        schedule.FirstDayOfWeek = (int)DayOfWeek.Tuesday;
        schedule.ScheduleView = ScheduleView.MonthView;
        MonthViewSettings monthViewSettings = new MonthViewSettings();
        monthViewSettings.AppointmentIndicatorCount = 2;
        schedule.MonthViewSettings = monthViewSettings;
    }
公共部分类测试:ContentPage
{
公共选择器查看选择器;
公共类数据
{
公共日期时间日期\开始{get;set;}
public DateTime date_end{get;set;}
公共字符串salle{get;set;}
公共字符串professeur{get;set;}
公共字符串lib1_格式{get;set;}
公共字符串语义{get;set;}
公共字符串jours{get;set;}
公共字符串模块{get;set;}
公共字符串groupe_de_classe{get;set;}
公共字符串类型{get;set;}
公共字符串remarque{get;set;}
公共字符串autre_professeur{get;set;}
公共字符串autre_groupe{get;set;}
公共字符串描述{get;set;}
公共颜色{get;set;}
}
公开考试()
{
SF时间表;
初始化组件();
Calend();
Rest();
}
公众休憩
{
Restcours Rest_3=新的Restcours();
Rest学生=新Rest();
iResponse result_Student=Rest_3.Student(“y。abasri@net.estia.fr");
var JResponse_student=JsonConvert.DeserializeObject(result_student.Content);
Write(string.Format(“请求在{0}毫秒内完成,响应:{1}”,50,“ffffffffffffffffffff”);
WriteLine(“这是JSON结果-->”+JResponse_student);
List lstData=新列表();
lstData.Add(JResponse_student.events);
Console.WriteLine(“hada houwaa-->”+JResponse_student.data.events);
}
公共无效日历()
{
计划=新的SfSchedule();
新内容页{Content=schedule};
schedule.FirstDayOfWeek=(int)DayOfWeek.周二;
schedule.ScheduleView=ScheduleView.MonthView;
MonthViewSettings MonthViewSettings=新的MonthViewSettings();
monthViewSettings.AppointmentIndicatorCount=2;
schedule.MonthViewSettings=MonthViewSettings;
}
我没有找到任何关于将JSON链接到Syncfusion的教程或文档,只有Syncfusion链接:


请帮助我,谢谢你

你需要再次阅读这些文档,它们讨论了如何使用SF的内置类来实现这一点,以及如何创建自己的自定义类谢谢你@Jason你能指定哪一行吗