示例#1
0
        public void GetData(Action<DataItem, Exception> callback)
        {
            // Use this to connect to the actual data service

            var item = new DataItem("Welcome to MVVM Light");
            callback(item, null);
        }
示例#2
0
        public void GetData(Action<DataItem, Exception> callback)
        {
            // Use this to create design time data

            var item = new DataItem("Welcome to MVVM Light [design]");
            callback(item, null);
        }
示例#3
0
        private void _initializeData(DataItem item)
        {
            // Title
            Title = Version.APP_NAME;

            // WelcomeTitle
            WelcomeTitle = item.Title;

            // FirstGeneration
            var first_path = item.FirstGeneration.First<string>();
            _folderChange(first_path);

            // EditText
            EditText = "";
            EditHtml = "";

            // IsEnabled_EditText
            IsEnabledEditText = false;
        }