Esempio n. 1
0
        public Effect(DeviceGroup dg, int effectType)
        {
            MyDeviceGroup = dg;
            EffectType    = effectType;
            UIBorder      = CreateUIBorder(effectType);
            EffectLineUI  = CreateEffectLineUI(effectType);
            Start         = 0;
            Duration      = 100;

            _cursorSizeRight = false;
            _cursorSizeLeft  = false;
            _cursorMove      = false;
        }
Esempio n. 2
0
        public MainPage()
        {
            this.InitializeComponent();

            DeviceGroupCollection = new ObservableCollection <DeviceGroup>();

            DeviceGroup dg1 = new DeviceGroup("111");
            DeviceGroup dg2 = new DeviceGroup("222");
            DeviceGroup dg3 = new DeviceGroup("333");

            DeviceGroupCollection.Add(dg1);
            DeviceGroupCollection.Add(dg2);
            DeviceGroupCollection.Add(dg3);

            dg1.UICanvas.Background = new SolidColorBrush(Colors.Black);
            TimeLineStackPanel.Children.Add(dg1.UICanvas);
            Effect ef = new Effect(null, 0);

            ef.EffectLineUI.Width = 500;
            dg1.AddEffect(ef);
        }