示例#1
0
        public static async void Update(string rootPath, params DXData[] datas)
        {
            rootPath = DXApp.SolvePath(rootPath);

            foreach (var data in datas)
            {
                string itemPath = string.Format("{0}/{1}", rootPath, data.Path.Trim('/'));

                if (data.Value == null)
                {
                    continue;
                }

                await DB.SetAsync(GetAbsolutePath(itemPath), data.Value.ToString());
            }
        }
示例#2
0
        static void Main(string[] args)
        {
            var app = new DXApp();
            var dw  = new DXAppWindow()
            {
                WindowStartupLocation = WindowStartupLocation.CenterScreen,
                Title = "DeXign Compiled WPF Window"
            };

            try
            {
                { Function : PageInitialize, depth : 4 }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }

            MainWindow = dw;

            dw.Show();
            app.Run(dw);
        }