/// <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); }