예제 #1
0
        abstractSwitch GetSwitch(enumStageSwitch stageSwitch)
        {
            abstractSwitch abstractswitch = null;

            switch (stageSwitch)
            {
            case enumStageSwitch.SwitchFF00003D:
                abstractswitch = new SwitchFF00003D(canvas, rectangle, new TimeSpan(0, 0, 0, 0, 800));
                break;

            case enumStageSwitch.SwitchFF00003E:
                abstractswitch = new SwitchFF00003E(canvas, rectangle, new TimeSpan(0, 0, 0, 0, 800));
                break;

            case enumStageSwitch.SwitchFF00003F:
                abstractswitch = new SwitchFF00003F(canvas, rectangle, new TimeSpan(0, 0, 0, 0, 800), _direction);
                break;

            case enumStageSwitch.SwitchFF000040:
                abstractswitch = new SwitchFF000040(canvas, rectangle, new TimeSpan(0, 0, 0, 0, 800));
                break;

            case enumStageSwitch.SwitchFF00008C:
                abstractswitch = new SwitchFF00008C(canvas, rectangle, new TimeSpan(0, 0, 0, 0, 800));
                break;
            }
            return(abstractswitch);
        }
예제 #2
0
 public PageStage(enumStageSwitch abstractswitch, SavePageInfo pageitem, string direction)
 {
     InitializeComponent();
     PageItem            = pageitem;
     _direction          = direction;
     this.abstractswitch = abstractswitch;
     this.Loaded        += new RoutedEventHandler(PageStage_Loaded);
     this.Unloaded      += PageStage_Unloaded;
     foreach (var v in PageItem.saveItemList)
     {
         timeLineItemList.Add(v.timeLineItemInfo);
     }
 }