예제 #1
0
 // Constructor
 public ControllerCallbacks()
 {
     // out
     // nanoKontrol: 1
     // Launchpad: 3
     lpd = new Launchpad(MIDIs.Get(3));
 }
예제 #2
0
        // Constructor
        public ControllerCallbacks()
        {
            Logger.Log("Profile Running.");

            // Load Launchpad (Helper class) from MIDIout#2
            if (MIDIs.Get(2) != null)
            {
                lpd = new Launchpad(MIDIs.Get(2));                      // lame but the only pain
            }
        }
예제 #3
0
        // Constructor
        public ControllerCallbacks()
        {
            MIDIs.ListAll();
            lpd = new Launchpad(MIDIs.Get("MIDIOUT2"));

            Thread th = new Thread(SyncScreen);

            th.IsBackground = true;
            th.Start();
        }
예제 #4
0
        // Constructor
        public ControllerCallbacks()
        {
            Logger.Log("Profile Running");

            Keyboard.FullScanCodeMode = true;   // virtual key codes might not works to some game settings, so scan mode instead.

            if (MIDIs.Get(2) != null)
            {
                lpd = new Launchpad(MIDIs.Get(2));                     // lame but the only pain
            }
            Thread th = new Thread(Shift);

            th.IsBackground = true;
            th.Start();
        }
예제 #5
0
        protected void b1_Click(object sender, EventArgs e)
        {
            id = Convert.ToInt32(Request.QueryString["id"].ToString());
            con.Open();
            SqlCommand cmd = con.CreateCommand();

            cmd.CommandType = CommandType.Text;
            cmd.CommandText = "select * from products where id=" + id + "";
            cmd.ExecuteNonQuery();
            DataTable      dt = new DataTable();
            SqlDataAdapter da = new SqlDataAdapter(cmd);

            da.Fill(dt);

            foreach (DataRow dr in dt.Rows)
            {
                Names = dr["ProductName"].ToString();

                PlayBys = dr["PlayBy"].ToString();

                PDFs = dr["PDF"].ToString();

                OVEs = dr["OVE"].ToString();

                MIDIs = dr["MIDI"].ToString();

                //ProductCategorys = dr["ProductCategory"].ToString();

                Originals = dr["Original"].ToString();

                Sells = dr["Sell"].ToString();

                //  ProductQuantitys = dr["ProductQuantity"].ToString();

                Purchaselinks = dr["Purchaselink"].ToString();

                ProductImages = dr["ProductImage"].ToString();
            }
            con.Close();

            if (Request.Cookies["aa"] == null)
            {
                Response.Cookies["aa"].Value   = Names.ToString() + "&" + PlayBys.ToString() + "&" + PDFs.ToString() + "&" + OVEs.ToString() + "&" + MIDIs.ToString() + "&" + Sells.ToString() + "&" + ProductImages.ToString();
                Response.Cookies["aa"].Expires = DateTime.Now.AddDays(1);
            }
            else
            {
                Response.Cookies["aa"].Value   = Request.Cookies["aa"].Value + "|" + Names.ToString() + "&" + PlayBys.ToString() + "&" + PDFs.ToString() + "&" + OVEs.ToString() + "&" + MIDIs.ToString() + "&" + Sells.ToString() + "&" + ProductImages.ToString();
                Response.Cookies["aa"].Expires = DateTime.Now.AddDays(1);
            }
        }