Exemplo n.º 1
0
        private void RegisterDemos(IDemoPage demo)
        {
            if (demo.Title == null)
            {
                throw new ApplicationException(string.Format("page has no title : {0}", demo.GetType()));
            }

            var item = new DemoItem()
            {
                Page = demo
            };

            listBoxDemos.Items.Add(item);
        }
Exemplo n.º 2
0
 public DemoItem(IDemoPage demo)
 {
     Page = demo;
 }
Exemplo n.º 3
0
 public DemoItem(IDemoPage demo)
 {
     Page = demo;
 }
Exemplo n.º 4
0
        private void RegisterDemos(IDemoPage demo)
        {
            if(demo.Title == null)
                throw new ApplicationException(string.Format("page has no title : {0}", demo.GetType()));

            var item = new DemoItem() {Page = demo};
            listBoxDemos.Items.Add(item);
        }