Exemplo n.º 1
0
 EventHandler<BoolEventArgs> NewCheckpointHandler(DesignerItem item)
 {
     Checkpoint cp = new Checkpoint();
     CheckpointPropertiesWindow cpw = new CheckpointPropertiesWindow(cp, this, item, Level);
     this.Children.Add(cpw);
     return cpw.SelectionHandler;
 }
Exemplo n.º 2
0
        private void AddCheckpoint(Checkpoint cp)
        {
            DesignerItem item = CreateDesignerImage(mCheckpointImage);

            PropertiesWindow pw = new CheckpointPropertiesWindow(cp, MyDesignerCanvas, item, Level);
            MyDesignerCanvas.Children.Add(pw);

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