Exemplo n.º 1
0
        /// <summary>
        /// Get the relative data. Notice the Action and callback parameters.
        /// NOTE: Look at the MainViewModel on how this is used.
        /// </summary>
        /// <param name="callback"></param>
        public void GetData(Action <MainItem, Exception> callback)
        {
            var item = new MainItem("This is a MVVM Light Template!");

            callback(item, null);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Get the relative data. Notice the Action and callback parameters.
        /// NOTE: Look at the MainViewModel on how this is used.
        /// </summary>
        /// <param name="callback"></param>
        public void GetData(Action <MainItem, Exception> callback)
        {
            var item = new MainItem("MVVM Light Base Template");

            callback(item, null);
        }