EventHandler<BoolEventArgs> NewSwitchHandler(DesignerItem item)
 {
     Switch sw = new Switch();
     SwitchPropertiesWindow spw = new SwitchPropertiesWindow(sw, item, Level);
     this.Children.Add(spw);
     return spw.SelectionHandler;
 }
        private void AddSwitch(Switch sw)
        {
            DesignerItem item = CreateDesignerImage(mSwitchImage);

            PropertiesWindow pw = new SwitchPropertiesWindow(sw, item, Level);
            MyDesignerCanvas.Children.Add(pw);

            item.OnSelected += pw.SelectionHandler;
            item.IsSelected = true;
        }