﻿using System.Linq;

namespace Pemberley.Utility.Windows
{
    public class InputDialogViewModelDesign : InputDialogViewModel
    {
        

        public InputDialogViewModelDesign() 
        {
            this.Message = "a test messagessage that is very long to see the over all effect of fjdsio joif  oijfd ssage that is very long to see the over all effect of fjdsio joif  oijfd";
            this.UnitWidth = 150;
            this.Window.UnitWidth = 200;
            


            var a = new InputGroup("ques1");
            a.PreMessage = "a test message that is very long to see the over all effect of fjdsio joif  oijfdaoi jo";
            a.PostMessage = "a simple one";
            
            a.AddSelection("opp 1 2321231 23 123 12ji2 jio2 j1oij 1 joi21j oij2 1o2j3 o1j2o ij12 o1j2 oijoij2 oij1o2ij o1j  j1oij 1 joi21j oij2 1o2j3 o1j2o ij12 o1j2 oijoij2 oij1o2ij o1 j1oij 1 joi21j oij2 1o2j3 o1j2o ij12 o1j2 oijoij2 oij1o2ij o1");
            a.AddSelection("jenga");
            a.HasPrompt = true;
            InputBase inpt;
            inpt = new SinglePrompt("p1");
            a.AddItem(inpt);
            inpt = new SinglePrompt("p2");
            a.AddItem(inpt);


            var b = new InputGroup("qus 2");
            b.IsMultiple = true;
            b.PreMessage = "FrequencyCode:";
            b.PostMessage = "Please make sure any selection is made before changing. fdsg sdfg sdf ..";
            b.AddSelection("jido");
            b.AddSelection("jido 2 e dsa"); 
            b.AddSelection("after meals and at bedtime");
            b.AddSelection("at bedtime");
            b.AddSelection("before bedtime/snack");
            b.AddSelection("before breakfast");
            b.AddSelection("before dinner");
            b.AddSelection("before lunch");
            b.AddSelection("before meals and at bedtime");
            b.AddSelection("BID 0900-1300");
            b.AddSelection("BID after meals");
            b.AddSelection("BID before meals");
            b.AddSelection("BID twice daily");
            b.AddSelection("BID with meals");
            b.AddSelection("Daily");
            b.AddSelection("Daily at 0700");
            b.AddSelection("every other day");
            b.AddSelection("five times daily");

            b.HasPrompt = true;            
            b.AddPrompt("dfs");

            b.Items.ElementAt(3).IsSelected = true;
            b.Items.ElementAt(5).IsSelected = true;

            


            Repository.Add(a);
            Repository.Add(b);
        }
    }
}
