public LocalUserControl(NewMainWindow mw) { InitializeComponent(); this.mw = mw; Title = "Local"; }
public void SetMainWindow(NewMainWindow mw) { this.mw = mw; InitPlayLaunchpad(); tbBPM.Text = mw.NowProjectModel.Bpm.ToString(); }
public ErrorDialog(NewMainWindow mw, String content) { InitializeComponent(); this.mw = mw; tbContent.Text = (String)FindResource(content); }
public SearchUserControl(NewMainWindow mw) { InitializeComponent(); this.mw = mw; //InitShortcuts(); }
public SetupEditPlugInDialog(NewMainWindow mw, String setupFilePath, ThirdPartySetupModel thirdPartySetupModel) { InitializeComponent(); this.mw = mw; this.setupFilePath = setupFilePath; this.thirdPartySetupModel = thirdPartySetupModel; }
public DeviceWindow(NewMainWindow mw) { InitializeComponent(); this.mw = mw; Owner = mw; }
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; }
public AppreciateWindow(NewMainWindow mw) { InitializeComponent(); this.mw = mw; Owner = mw; }
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; }
public ShowPianoRollUserControl(NewMainWindow mw, List <Light> mLightList) { InitializeComponent(); this.mw = mw; pianoroll.SetData(mLightList); }
public ExportUserControl(NewMainWindow mw, List <Light> mLightList) { InitializeComponent(); this.mw = mw; this.mLightList = mLightList; }
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; }
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); } }
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); }
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(); }
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; }
public PlayerUserControl(NewMainWindow mw) { InitializeComponent(); this.mw = mw; InitPlayLaunchpad(); tbBPM.Text = mw.NowProjectModel.Bpm.ToString(); }
public GitUserControl(NewMainWindow mw) { InitializeComponent(); this.mw = mw; git = new CommandRunner("git", mw.LastProjectPath); }
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(); }
public PlayerManagementUserControl(NewMainWindow mw) { InitializeComponent(); this.mw = mw; _fileExtension = ".ini"; mainView = gMain; HideControl(); }
public PlayerUserControl(NewMainWindow mw, List <Light> mActionBeanList) { InitializeComponent(); this.mw = mw; InitPlayLaunchpad(); SetData(mActionBeanList); tbBPM.Text = mw.NowProjectModel.Bpm.ToString(); }
public EditUserControl(NewMainWindow mw) { InitializeComponent(); this.mw = mw; Title = "Edit"; IsShowWindowTitle = false; InitUserControl(); }
public HomeUserControl(NewMainWindow mw, String url) { InitializeComponent(); Title = "Home"; this.mw = mw; LoadUrl(url); }
public NormalFileManager(NewMainWindow mw) { InitializeComponent(); this.mw = mw; baseFileManager = new BaseFileManager(mw); InitContextMenu(); InitFile(); }
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; }