using System; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Ink; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; using SilverlightCairngorm.Model; using Hanray.Azurelight.Service; namespace Hanray.Azurelight.Model { public class AzurelightModel : ModelLocator { private static readonly AzurelightModel _instance = new AzurelightModel(); /// <summary> /// Returns the single instance of the app model /// </summary> /// <returns>single instance of the app model</returns> public static AzurelightModel Instance { get { return _instance; } } // Explicit static constructor to tell C# compiler // not to mark type as beforefieldinit static AzurelightModel() { } /// <summary> /// Private constructor for singeltom object /// </summary> private AzurelightModel() : base() { } private SurveyContext _riaSvc = new SurveyContext(); public SurveyContext RIASvc { get { return _riaSvc; } } public bool surveyLoaded { get; set; } public Survey CreateFeedback() { return new Survey() { Target = "Azurelight Survery Demo" }; } private Survey _feedBack; public Survey Feedback { get { return _feedBack;} set { _feedBack = value; NotifyPropertyChanged("Feedback"); } } private String _topFrameSource; public String TopFrameSource { get { return _topFrameSource; } set { _topFrameSource = value; NotifyPropertyChanged("TopFrameSource"); } } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Common Development and Distribution License (CDDL)