public DesignMainViewModel() { Message = "Message goes here"; ScreenState = ScreenStates.HomeState; Reports = new ObservableCollection <ReportInfo>(); var arg1 = new ReportInfo.Builder(1, "OpenOffice Document") .Author("Jim") .Dependencies("RadEnterprise") .Description("Lists the top ranking products for the year") .Name("Top Products") .Parameters("startDate:2012-01-01;endDate:2012-12-31") .Script("screen.output('hello world')") .Build(); Reports.Add(arg1); Reports.Add(arg1.Copy()); }
public DefaultDesignerViewModel() { ReportDefinition = new ReportInfo.Builder(1, "OpenOffice Document") .Author("Jim") .Dependencies("RadEnterprise") .Description("Lists the top ranking products for the year") .Name("Top Products") .Parameters("startDate:2012-01-01;endDate:2012-12-31") .Script("print 'hello world'") .Build(); OutputEntries = new ObservableCollection <OutputEntry>(); output("output goes here"); LanguagesList = new List <string>() { "IronPython", "IronRuby" }; TemplateMessage = "No template selected"; ValidText = true; }