示例#1
0
        /// <summary>
        /// 变量初始化 创建:fjl
        /// </summary>
        /// <returns>返回true</returns>
        public async Task <bool> InitAsync()
        {
            Lengend  = new ObservableCollection <LineChartLengend>();
            ChartDao = new ChartUtilImpl();
            siteDao  = new SiteDaoImpl();
            logDao   = new LogDaoImpl();
            Infos.LineChartCollection = new ObservableCollection <ObservableCollection <LineChartData> >();
            Infos.SiteInfoCompleted   = new ObservableCollection <AddSiteInfo>();
            Infos.SiteSelected        = new List <SiteModel>();
            Infos.Logs     = new List <LogModel>();
            Infos.BarChart = new ObservableCollection <BarChartData>();
            await Task.CompletedTask;

            return(true);
        }
        //变量初始化
        public async Task <bool> InitAsync()
        {
            Lengend                    = new ObservableCollection <ChartLengend>();
            ChartDao                   = new ChartUtilImpl();
            siteDao                    = new SiteDaoImpl();
            logDao                     = new LogDaoImpl();
            Chart1Collection           = new ObservableCollection <ObservableCollection <Chart1> >();
            Infos.Chart1CollectionCopy = new ObservableCollection <ObservableCollection <Chart1> >();
            Infos.SelectSites          = new ObservableCollection <SelectSite>();
            Infos.Sites                = new List <SiteModel>();
            Infos.Logs                 = new List <LogModel>();
            Infos.BarChart             = new ObservableCollection <BarChartData>();
            await Task.CompletedTask;

            return(true);
        }