Exemplo n.º 1
0
        public GameWindow()
        {
            InitializeComponent();

            Left   = 0;
            Top    = 0;
            Height = SystemParameters.WorkArea.Height;//获取屏幕的宽高  使之不遮挡任务栏
            Width  = SystemParameters.WorkArea.Width;

            myIPlay    = new MyIPlay(this, tbHint);
            mLaunchpad = new AccuratePlayerLaunchpadPro(myIPlay);
            myIPlay.SetLaunchpad(mLaunchpad);

            mBorderLaunchpad.Child = mLaunchpad;
            mLaunchpad.Size        = 400;
            mLaunchpad.SetLaunchpadBackground(new SolidColorBrush(Colors.Transparent));
            mLaunchpad.SetButtonBackground(new SolidColorBrush(Colors.White));
            mLaunchpad.MembraneBrush = new SolidColorBrush(Colors.Black);
            mLaunchpad.IsMembrane    = true;

            sb = new Soundbyte(this);
            gMain.Children.Add(sb);
        }
Exemplo n.º 2
0
 public void SetLaunchpad(AccuratePlayerLaunchpadPro mLaunchpad)
 {
     this.mLaunchpad = mLaunchpad;
 }