Example #1
0
 public InputPort(GameWindow gw, MyIPlay myIPlay)
 {
     this.gw      = gw;
     this.myIPlay = myIPlay;
     midiInProc   = new NativeMethods.MidiInProc(MidiProc);
     handle       = IntPtr.Zero;
 }
Example #2
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);
        }