コード例 #1
0
        public USlot(SlotItem slot)
        {
            this.slot = slot;

            InitializeComponent();
            this.Height = 20;

            if (slot.item.dataitemtype == DS.DataItemType.SONG)
            {
                this.slotsong = new USlotSong(slot);
                /*Grid g = (Grid)this.Content;
                g.Children.Add(slotsong);
                Grid.SetRow(slotsong,1);*/
                this.Content = slotsong;
                this.Height = this.slotsong.Height;
            }

            else if (slot.item.dataitemtype == DS.DataItemType.SYNC)
            {
                DataSyncItem sync = (DataSyncItem)slot.item;

                this.uisync = new USlotSync(sync.synctype, sync.scheduleddatetime, slot.uniqID);
                /*Grid g = (Grid)this.Content;
                g.Children.Add(slotsong);
                Grid.SetRow(slotsong,1);*/
                this.Content = uisync;
                this.Height = this.uisync.Height;
            }

            else if (slot.item.dataitemtype == DS.DataItemType.LOGNOTE && slot.item.label.IndexOf("CONTENTSEQUENCE")==0)
            {
                this.uicontent = new USlotContent(slot);
                /*Grid g = (Grid)this.Content;
                g.Children.Add(slotsong);
                Grid.SetRow(slotsong,1);*/
                this.Content = uicontent;
                this.Height = this.uicontent.Height;
            }
        }
コード例 #2
0
 public void Dispose()
 {
     this.slot = null;
     this.slotsong = null;
 }