/// <summary> /// Setups the mock data used for design time. /// </summary> public void SetupMockData() { if (MockData != null) { MockData.Clear(); } MockData = new ObservableCollection <MockMonahrqField>(); var tempData = new MockMonahrqField(); tempData.Name = "Discharge disposition"; tempData.ShortDescription = "Short Description"; tempData.LongDescription = "Long Description"; tempData.Values.Add(new MockMonarqValues { ID = 0, Description = "0 : Ignore" }); tempData.Values.Add(new MockMonarqValues { ID = 1, Description = "1 : Routine" }); tempData.Values.Add(new MockMonarqValues { ID = 5, Description = "5 : Another type of facility" }); tempData.Values.Add(new MockMonarqValues { ID = 6, Description = "6 : Home health care" }); tempData.Values.Add(new MockMonarqValues { ID = 7, Description = "7 : Against medical advice" }); tempData.Values.Add(new MockMonarqValues { ID = 20, Description = "20 : Died" }); tempData.ClientValues.Add(new MockClientValues { ClientValue = "NULL", MonahrqID = 0 }); tempData.ClientValues.Add(new MockClientValues { ClientValue = "1", MonahrqID = 0 }); tempData.ClientValues.Add(new MockClientValues { ClientValue = "5", MonahrqID = 0 }); tempData.ClientValues.Add(new MockClientValues { ClientValue = "6", MonahrqID = 6 }); tempData.ClientValues.Add(new MockClientValues { ClientValue = "7", MonahrqID = 7 }); tempData.ClientValues.Add(new MockClientValues { ClientValue = "20", MonahrqID = 20 }); MockData.Add(tempData); tempData = new MockMonahrqField(); tempData.Name = "Another one"; tempData.ShortDescription = "Short Description"; tempData.LongDescription = "Long Description"; tempData.Values.Add(new MockMonarqValues { ID = 0, Description = "0 : Value 0" }); tempData.Values.Add(new MockMonarqValues { ID = 1, Description = "1 : Value 1" }); tempData.Values.Add(new MockMonarqValues { ID = 2, Description = "2 : Value 2" }); tempData.Values.Add(new MockMonarqValues { ID = 3, Description = "3 : Value 3" }); tempData.Values.Add(new MockMonarqValues { ID = 4, Description = "4 : Value 4" }); tempData.Values.Add(new MockMonarqValues { ID = 5, Description = "5 : Value 5" }); tempData.ClientValues.Add(new MockClientValues { ClientValue = "NULL", MonahrqID = 0 }); MockData.Add(tempData); }