Example #1
0
        public LocalUserControl(NewMainWindow mw)
        {
            InitializeComponent();
            this.mw = mw;

            Title = "Local";
        }
Example #2
0
        public void SetMainWindow(NewMainWindow mw)
        {
            this.mw = mw;
            InitPlayLaunchpad();

            tbBPM.Text = mw.NowProjectModel.Bpm.ToString();
        }
Example #3
0
        public ErrorDialog(NewMainWindow mw, String content)
        {
            InitializeComponent();

            this.mw        = mw;
            tbContent.Text = (String)FindResource(content);
        }
        public SearchUserControl(NewMainWindow mw)
        {
            InitializeComponent();
            this.mw = mw;

            //InitShortcuts();
        }
Example #5
0
 public SetupEditPlugInDialog(NewMainWindow mw, String setupFilePath, ThirdPartySetupModel thirdPartySetupModel)
 {
     InitializeComponent();
     this.mw                   = mw;
     this.setupFilePath        = setupFilePath;
     this.thirdPartySetupModel = thirdPartySetupModel;
 }
Example #6
0
        public DeviceWindow(NewMainWindow mw)
        {
            InitializeComponent();
            this.mw = mw;

            Owner = mw;
        }
Example #7
0
        public NewFileDialog(NewMainWindow window, bool isRename, String extension, List <String> notContains, String fileType, String defaultName, ReturnResult toReturnResult)
        {
            InitializeComponent();

            this.window      = window;
            this.extension   = extension;
            this.notContains = notContains;
            this.fileType    = fileType;

            if (extension.Equals(".light"))
            {
                lbStep.SelectedIndex = 0;
            }
            else if (extension.Equals(".lightScript"))
            {
                lbStep.SelectedIndex = 1;
            }
            else if (extension.Equals(".limitlessLamp"))
            {
                lbStep.SelectedIndex = 2;
            }
            else if (extension.Equals(".lightPage"))
            {
                lbStep.SelectedIndex = 3;
            }

            if (!defaultName.Equals(String.Empty))
            {
                tbNumber.Text = defaultName;
            }

            this.toReturnResult = toReturnResult;
        }
Example #8
0
        public AppreciateWindow(NewMainWindow mw)
        {
            InitializeComponent();

            this.mw = mw;
            Owner   = mw;
        }
Example #9
0
        public CalcTimeWindow(NewMainWindow mw)
        {
            InitializeComponent();
            WindowStartupLocation = WindowStartupLocation.CenterScreen;

            this.mw = mw;
        }
        public DataGridUserControl(NewMainWindow mw, List <Light> mLightList)
        {
            InitializeComponent();
            this.mw = mw;

            dgMain.ItemsSource = mLightList;
        }
Example #11
0
        public ShowPianoRollUserControl(NewMainWindow mw, List <Light> mLightList)
        {
            InitializeComponent();
            this.mw = mw;

            pianoroll.SetData(mLightList);
        }
Example #12
0
        public ExportUserControl(NewMainWindow mw, List <Light> mLightList)
        {
            InitializeComponent();
            this.mw = mw;

            this.mLightList = mLightList;
        }
Example #13
0
        public PluginsWindow(NewMainWindow mw)
        {
            InitializeComponent();

            this.mw     = mw;
            DataContext = new People(mw.Plugs);
        }
 public ImportLibraryDialog(NewMainWindow mw, ScriptUserControl suc, String fileName)
 {
     InitializeComponent();
     this.mw       = mw;
     this.suc      = suc;
     this.fileName = fileName;
 }
Example #15
0
        public WelcomeUserControl(NewMainWindow mw)
        {
            InitializeComponent();

            this.mw = mw;

            List <String> strs = FileBusiness.CreateInstance().GetDirectorysName(AppDomain.CurrentDomain.BaseDirectory + @"\Project");

            for (int i = 0; i < strs.Count; i++)
            {
                Border border = new Border();
                border.Margin               = new Thickness(30, 0, 0, 0);
                border.MouseEnter          += StackPanel_MouseEnter;
                border.MouseLeave          += StackPanel_MouseLeave;
                border.MouseLeftButtonDown += Border_MouseLeftButtonDown;
                border.CornerRadius         = new CornerRadius(3);
                border.Background           = new SolidColorBrush(Color.FromRgb(115, 120, 125));
                StackPanel sp = new StackPanel();
                sp.Margin      = new Thickness(20);
                border.Child   = sp;
                sp.Orientation = Orientation.Vertical;
                TextBlock tb = new TextBlock();
                tb.Text       = strs[i];
                tb.Foreground = new SolidColorBrush(Colors.White);
                tb.FontSize   = 18;
                sp.Children.Add(tb);
                wpMain.Children.Add(border);
            }
        }
Example #16
0
        public PlayerUserControl(NewMainWindow mw, List <Light> mActionBeanList, String audioResources, double dTime, int nowTimeI)
        {
            InitializeComponent();
            this.mw = mw;

            AudioResources       = audioResources;
            this.dTime           = dTime;
            this.mActionBeanList = mActionBeanList;
            InitPlayLaunchpad();
            SetData(mActionBeanList);

            tbBPM.Text = mw.NowProjectModel.Bpm.ToString();

            playLpd.SmallTime = nowTimeI;
            //(int)(LightBusiness.GetMax(mActionBeanList) * dTime)
            //Console.WriteLine((int)Math.Round(nowTimeP * LightBusiness.GetMax(GetData())));

            if (!AudioResources.Equals(String.Empty))
            {
                dAllTime = double.Parse(MediaFileTimeUtil.GetAsfTime(AudioResources, double.Parse(tbBPM.Text)));

                //MediaElementPosition =  dTime * LightBusiness.GetMax(mActionBeanList) / dAllTime;
                MediaElementPosition = (nowTimeI * 1.0 / dAllTime);
            }

            //Console.WriteLine(nowTimeI +"---"+ LightBusiness.GetMax(mActionBeanList)+ "---"+dAllTime);
            //Console.WriteLine(MediaElementPosition);
        }
Example #17
0
        public FrameUserControl2(NewMainWindow mw)
        {
            InitializeComponent();

            this.mw = mw;

            mainView = gMain;
            HideControl();

            mLaunchpad.SetLaunchpadBackground(new SolidColorBrush(Color.FromRgb(46, 48, 51)));

            //初始化贴膜
            mLaunchpad.AddMembrane();
            mLaunchpad.IsMembrane = false;
            //初始化事件
            InitLaunchpadEvent();
            //初始化绘制事件
            mLaunchpad.SetCanDraw(true);
            //初始化回调函数
            mLaunchpad.SetOnDataChange(OnLaunchpadDataChange);
            completeColorPanel.SetSelectionChangedEvent(lbColor_SelectionChanged);

            XmlSerializer serializer = new XmlSerializer(typeof(FrameConfigModel));
            FileStream    stream     = new FileStream("Config/frame.xml", FileMode.Open);

            frameModel = (FrameConfigModel)serializer.Deserialize(stream);
            stream.Close();
        }
        public TextBoxUserControl(NewMainWindow mw)
        {
            InitializeComponent();
            //this.mw = mw;

            //mainView = gMain;
            //HideControl();
        }
Example #19
0
        public ShowPavedWindow(NewMainWindow mw, List <Light> mLightList)
        {
            InitializeComponent();
            this.mw = mw;

            this.mLightList = mLightList;
            pavedColumns    = mw.pavedConfigModel.Columns;
        }
        public ShowPavedUserControl(NewMainWindow mw, List <Light> mLightList, int pavedColumns)
        {
            InitializeComponent();
            this.mw = mw;

            this.mLightList   = mLightList;
            this.pavedColumns = pavedColumns;
        }
Example #21
0
        public PlayerUserControl(NewMainWindow mw)
        {
            InitializeComponent();
            this.mw = mw;
            InitPlayLaunchpad();

            tbBPM.Text = mw.NowProjectModel.Bpm.ToString();
        }
Example #22
0
        public GitUserControl(NewMainWindow mw)
        {
            InitializeComponent();

            this.mw = mw;

            git = new CommandRunner("git", mw.LastProjectPath);
        }
Example #23
0
 public GetStringDialog(NewMainWindow mw, String type, String hint, String help)
 {
     InitializeComponent();
     this.mw   = mw;
     this.type = type;
     this.hint = hint;
     this.help = help;
     Owner     = mw;
 }
        public PianoRollUserControl(NewMainWindow mw)
        {
            InitializeComponent();
            this.mw = mw;

            //mainView = gMain;
            //HideControl();
            mPianoRoll.CanDraw();
        }
Example #25
0
        public PlayerManagementUserControl(NewMainWindow mw)
        {
            InitializeComponent();
            this.mw = mw;

            _fileExtension = ".ini";

            mainView = gMain;
            HideControl();
        }
Example #26
0
        public PlayerUserControl(NewMainWindow mw, List <Light> mActionBeanList)
        {
            InitializeComponent();
            this.mw = mw;

            InitPlayLaunchpad();
            SetData(mActionBeanList);

            tbBPM.Text = mw.NowProjectModel.Bpm.ToString();
        }
Example #27
0
        public EditUserControl(NewMainWindow mw)
        {
            InitializeComponent();

            this.mw           = mw;
            Title             = "Edit";
            IsShowWindowTitle = false;

            InitUserControl();
        }
Example #28
0
        public HomeUserControl(NewMainWindow mw, String url)
        {
            InitializeComponent();

            Title = "Home";

            this.mw = mw;

            LoadUrl(url);
        }
Example #29
0
        public NormalFileManager(NewMainWindow mw)
        {
            InitializeComponent();

            this.mw = mw;

            baseFileManager = new BaseFileManager(mw);
            InitContextMenu();
            InitFile();
        }
Example #30
0
        public ShowPavedWindow(NewMainWindow mw, List <Light> mLightList, int pavedColumns, Dictionary <int, FramePointModel> points, Brush nowBrush)
        {
            InitializeComponent();
            this.mw = mw;

            this.mLightList   = mLightList;
            this.pavedColumns = pavedColumns;
            this.points       = points;
            this.nowBrush     = nowBrush;
        }