public MainWindow() { InitializeComponent(); for (var i = 0; i < 5; i++) { DemoList.Add($"通常的文字 {i}"); } DataContext = this; }
public void Initialize(CanvasAnimatedControl canvasAnimatedControl) { _canvasAnimatedControl = canvasAnimatedControl; _game = new Game <DemoMoveController, NeuralNetworkScene>(_canvasAnimatedControl); RunButtonText = "Run train"; DemoList.Add(new Xor2Trainer()); DemoList.Add(new Xor3Trainer()); DemoList.Add(new QratorTaskTrainer()); CurrentDemo = DemoList[0]; }
public override Task <DemoList> Get(Search request, ServerCallContext context) { var result = new DemoList(); result.Details.Add(new DemoRequest() { CommentId = 1, Id = DateTime.Now.Ticks.ToString(), IsDeleted = false }); return(Task.FromResult(result)); }
public static void test() { DemoList demo = ScriptableObject.CreateInstance <DemoList>(); Demo de = new Demo(); de.Id = 1; de.Name = "sl"; de.FloatCol = 0.1f; demo.demoList.Add(de); string path = "Assets/Resources/Data/DemoList.asset"; AssetDatabase.CreateAsset(demo, path); }
public MainPage(int id) { _mId = id; InitializeComponent(); Options.IsEnabled = DependencyService.Get <ISettingsService>().SettingsDialogueAvailable; DependencyService.Get <ISettingsService>().PropertyChanged += (sender, e) => { DemoList.BeginRefresh(); DemoList.RefreshCommand.Execute(DemoList); DemoList.EndRefresh(); }; if (WeatherDataFetcher.LastUpDate.Date <= DateTime.Now.AddDays(-2)) //is this how you use async things??? { WeatherDataFetcher.UpdateWeatherForecastDbAsync(); } }
public AduSkinDemo() { InitializeComponent(); DemoModel item = new DemoModel() { ID = 1, Name = " “ AduChat ” 极简聊天UI ", Cover = "http://m.qpic.cn/psb?/V12WtbKq4PLaCF/RS2rHkLeCVhVkNXaXT7LaeIC9aNE19yHsrQ6Fy0mdxU!/b/dLYAAAAAAAAA&bo=GgQEAxoEBAMDCSw!&rf=viewer_4", Link = "https://baidu.com", Likes = "99+", Shares = "99+", BlogDate = "November 3, 2019", Describe = "基于AduSkin 和 HandyControl,仿Win10菜单,聊天气泡,极致UI !", }; DemoList.Add(item); DemoModel item4 = new DemoModel() { ID = 1, Name = "“Maker Wallpaper” 让我们来见一见这款精心为您打造的视频桌面壁纸!", Cover = "http://dmskin.com/image/xxxx.png", Link = "https://baidu.com", Likes = "99+", Shares = "99+", BlogDate = "November 1, 2019", Describe = "At Maker Wallpaper we’re passionate about breaking boundaries and setting a new bar for player expectations. We believe that all gamers deserve to share beautiful, immersive experiences regardless of which platform they play on.", }; DemoList.Add(item4); DemoModel item3 = new DemoModel() { ID = 1, Name = "“Shadow” 心理FM PC客户端, 众多贴心新功能等你去发现!", Cover = "http://b191.photo.store.qq.com/psb?/V12WtbKq4PLaCF/nQlvRpwSF72VutvTvmKvqhGyFXZrnz2B2dQTk436wdc!/b/dL8AAAAAAAAA&bo=VgUAA1YFAAMDCSw!&rf=viewer_4", Link = "https://baidu.com", Likes = "99+", Shares = "99+", BlogDate = "September 6, 2019", Describe = "Shadow 2.0 launched today with a bunch of fun new features. Most importantly - we’re now live on Steam so whether you and your friends play on a PC, Mac, iOS or Android, you can all Listen FM together. Download link here: ", }; DemoList.Add(item3); DemoModel item2 = new DemoModel() { ID = 1, Name = " “Super Evil” 一款独具匠心的音乐播放器!", Cover = "http://b191.photo.store.qq.com/psb?/V12WtbKq4PLaCF/qcNDwznfR2QbFMy96v53FD93ClzOuRbra6p.x0If4w8!/b/dL8AAAAAAAAA&bo=gAc4BIAHOAQDCSw!&rf=viewer_4", Link = "https://baidu.com", Likes = "99+", Shares = "99+", BlogDate = "August 1, 2019", Describe = "At Super Evil we’re passionate about breaking boundaries and setting a new bar for player expectations. We believe that all gamers deserve to share beautiful, immersive experiences regardless of which platform they play on.", }; DemoList.Add(item2); DemoModel item1 = new DemoModel() { ID = 1, Name = "“AduMusic” QQ Music For WPF , 没想到你是这样的播放器!", Cover = "http://b301.photo.store.qq.com/psb?/V12WtbKq4PLaCF/XRG14p7ndKsURVgQHY1NfIeYYwEaQ3euaDhKuStSpTU!/b/dC0BAAAAAAAA&bo=QgfKA0IHygMDCSw!&rf=viewer_4", Link = "https://baidu.com", Likes = "99+", Shares = "99+", BlogDate = "12月 6, 2018", Describe = "At Super Evil we’re passionate about breaking boundaries and setting a new bar for player expectations. We believe that all gamers deserve to share beautiful, immersive experiences regardless of which platform they play on.", }; DemoList.Add(item1); Demos.ItemsSource = DemoList; Carousels.ItemsSource = DemoList; }
public AduSkinDemo() { InitializeComponent(); DemoModel item5 = new DemoModel() { ID = 1, Name = " “ AduChat ” 极简聊天UI ", Cover = "http://r.photo.store.qq.com/psb?/V12WtbKq3d7FCg/o0OzX8R8r*a1G*b3VMqHXnuel.eKFqw2BTUoO7yn03U!/r/dE8BAAAAAAAA", Link = "", Likes = "99+", Shares = "99+", BlogDate = "November 3, 2019", Describe = "基于AduSkin 和 HandyControl,仿Win10菜单,聊天气泡,极致UI !", }; DemoList.Add(item5); DemoModel item4 = new DemoModel() { ID = 1, Name = "“Maker Wallpaper” 让我们来见一见这款精心为您打造的视频桌面壁纸!", Cover = "https://qqadapt.qpic.cn/txdocpic/0/784b3a8183c2b0a49715fcaec57825ab/0?w=1353&h=864", Link = "", Likes = "99+", Shares = "99+", BlogDate = "November 1, 2019", Describe = "At Maker Wallpaper we’re passionate about breaking boundaries and setting a new bar for player expectations. We believe that all gamers deserve to share beautiful, immersive experiences regardless of which platform they play on.", }; DemoList.Add(item4); DemoModel item3 = new DemoModel() { ID = 1, Name = "“Shadow” 心理FM PC客户端, 众多贴心新功能等你去发现!", Cover = "http://m.qpic.cn/psc?/V12WtbKq3d7FCg/45NBuzDIW489QBoVep5mcd*RuyMAAEPwPETX7aEl05kVsaPx4L9m2bWiIMCWbehhLJZXnN1BSqihQPiaMhMA*ZuiyYRfFCxKSD2.oekIFwI!/b&bo=CgX0AgoF9AIDORw!&rf=viewer_4", Link = "https://github.com/aduskin/Shadow-FM", Likes = "99+", Shares = "99+", BlogDate = "September 6, 2019", Describe = "Shadow 2.0 launched today with a bunch of fun new features. Most importantly - we’re now live on Steam so whether you and your friends play on a PC, Mac, iOS or Android, you can all Listen FM together. Download link here: ", }; DemoList.Add(item3); DemoModel item2 = new DemoModel() { ID = 1, Name = " “Super Evil” 一款独具匠心的音乐播放器!", Cover = "http://r.photo.store.qq.com/psb?/V12WtbKq3d7FCg/SOxjPTd2KC2KWCr0oQVNkAx1nQlBs4KLpcUiVJZoeXs!/r/dMMAAAAAAAAA", Link = "", Likes = "99+", Shares = "99+", BlogDate = "August 1, 2019", Describe = "At Super Evil we’re passionate about breaking boundaries and setting a new bar for player expectations. We believe that all gamers deserve to share beautiful, immersive experiences regardless of which platform they play on.", }; DemoList.Add(item2); DemoModel item1 = new DemoModel() { ID = 1, Name = "“AduMusic” QQ Music For WPF , 没想到你是这样的播放器!", Cover = "http://b301.photo.store.qq.com/psb?/V12WtbKq4PLaCF/XRG14p7ndKsURVgQHY1NfIeYYwEaQ3euaDhKuStSpTU!/b/dC0BAAAAAAAA&bo=QgfKA0IHygMDCSw!&rf=viewer_4", Link = "https://github.com/aduskin/AduMusic", Likes = "99+", Shares = "99+", BlogDate = "December 6, 2018", Describe = "At Super Evil we’re passionate about breaking boundaries and setting a new bar for player expectations. We believe that all gamers deserve to share beautiful, immersive experiences regardless of which platform they play on.", }; DemoList.Add(item1); DemoModel item = new DemoModel() { ID = 1, Name = "“HttpTool” Http 请求工具,方便接口调试!", Cover = "http://r.photo.store.qq.com/psb?/V12WtbKq3d7FCg/pybEVyta4jzLubeIXR*cEzsBi0uQEhr14T1xMWjFHVM!/r/dIMAAAAAAAAA", Link = "https://github.com/aduskin/HttpTool", Likes = "99+", Shares = "99+", BlogDate = "May 6, 2019", Describe = "‘HttpTool’支持参数、请求头、文件上传,适用于接口调试!", }; DemoList.Add(item); Demos.ItemsSource = DemoList; Carousels.ItemsSource = DemoList; }