public CatalogUserControl2(NewMainWindow mw) { InitializeComponent(); this.mw = mw; //FrameUserControl fuc = new FrameUserControl(mw); userControls.Add(fuc); //TextBoxUserControl tbuc = new TextBoxUserControl(mw); userControls.Add(tbuc); //PianoRollUserControl pruc = new PianoRollUserControl(mw); userControls.Add(pruc); //ScriptUserControl suc = new ScriptUserControl(mw); userControls.Add(suc); //CodeUserControl cuc = new CodeUserControl(mw); userControls.Add(cuc); //PageMainUserControl puc = new PageMainUserControl(mw); userControls.Add(puc); //PlayExportUserControl peuc = new PlayExportUserControl(mw); userControls.Add(peuc); //PlayUserControl - 未接入 //userControls.Add(new PlayUserControl(mw)); //PlayerUserControl pmuc = new PlayerManagementUserControl(mw); userControls.Add(pmuc); tw = new ToolWindow { Topmost = true }; ////定义存储缓冲区大小 //StringBuilder s = new StringBuilder(300); ////获取Window 桌面背景图片地址,使用缓冲区 //SystemParametersInfo(SPI_GETDESKWALLPAPER, 300, s, 0); ////缓冲区中字符进行转换 //String wallpaper_path = s.ToString(); //系统桌面背景图片路径 //ImageBrush b = new ImageBrush //{ // ImageSource = new BitmapImage(new Uri(wallpaper_path)), // Stretch = Stretch.Fill //}; //Background = b; }
/// <summary> /// 初始化用户控件 /// </summary> private void InitUserControl() { //FrameUserControl fuc = new FrameUserControl(mw); userControls.Add(fuc); //TextBoxUserControl tbuc = new TextBoxUserControl(mw); userControls.Add(tbuc); //PianoRollUserControl pruc = new PianoRollUserControl(mw); userControls.Add(pruc); //ScriptUserControl suc = new ScriptUserControl(mw); userControls.Add(suc); //CodeUserControl cuc = new CodeUserControl(mw); userControls.Add(cuc); //PageMainUserControl puc = new PageMainUserControl(mw); userControls.Add(puc); //PlayExportUserControl peuc = new PlayExportUserControl(mw); userControls.Add(peuc); //PlayUserControl playuc = new PlayUserControl(mw); userControls.Add(playuc); //PlayerUserControl pmuc = new PlayerManagementUserControl(mw); userControls.Add(pmuc); //LimitlessLampUserControl lluc = new LimitlessLampUserControl(mw); userControls.Add(lluc); //IdeaUserControl iuc = new IdeaUserControl(mw); userControls.Add(iuc); titleListUserControl.InitData( new List <string>() { (String)Application.Current.Resources["Light"], (String)Application.Current.Resources["LightScript"], (String)Application.Current.Resources["LimitlessLamp"], (String)Application.Current.Resources["Play_"], } , RefreshFile, 1, bNew_MouseLeftButtonDown); popNew.PlacementTarget = titleListUserControl.bRight; }
/// <summary> /// 初始化用户控件 /// </summary> private void InitUserControl() { //FrameUserControl fuc = new FrameUserControl(mw); userControls.Add(fuc); //TextBoxUserControl tbuc = new TextBoxUserControl(mw); userControls.Add(tbuc); //PianoRollUserControl pruc = new PianoRollUserControl(mw); userControls.Add(pruc); //ScriptUserControl suc = new ScriptUserControl(mw); userControls.Add(suc); //CodeUserControl cuc = new CodeUserControl(mw); userControls.Add(cuc); //PageMainUserControl puc = new PageMainUserControl(mw); userControls.Add(puc); //PlayExportUserControl peuc = new PlayExportUserControl(mw); userControls.Add(peuc); //PlayUserControl playuc = new PlayUserControl(mw); userControls.Add(playuc); //PlayerUserControl pmuc = new PlayerManagementUserControl(mw); userControls.Add(pmuc); //LimitlessLampUserControl lluc = new LimitlessLampUserControl(mw); userControls.Add(lluc); //IdeaUserControl iuc = new IdeaUserControl(mw); userControls.Add(iuc); }
public TutorialFileExportChild(TutorialFileExportModel tutorialFileExportModel, PlayExportUserControl suc) : base(suc) { this.tutorialFileExportModel = tutorialFileExportModel; ToCreate(); }
public PagesExportChild(PagesExportModel pagesExportModel, PlayExportUserControl suc) : base(suc) { this.pagesExportModel = pagesExportModel; ToCreate(); }
public ModelExportChild(ModelExportModel modelExportModel, PlayExportUserControl suc) : base(suc) { this.modelExportModel = modelExportModel; ToCreate(); }
public ExportStyle(PlayExportUserControl suc) { this.suc = suc; }
public ExportStyleUserControl(PlayExportUserControl mw) : base() { this.mw = mw; }