예제 #1
0
        public SMidiOutput ToOutput()
        {
            var r = new SMidiOutput();

            r.Type   = TypeOut;
            r.Action = new SMidiAction {
                Channel = _channel, Cmd = _cmd, Data1 = _data1, Data2 = _data2
            };
            return(r);
        }
예제 #2
0
 private void dataGridView2_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (parent.Device != null && parent.Device.IsReady())
     {
         var senderGrid = (DataGridView)sender;
         if (senderGrid.Columns[e.ColumnIndex] is DataGridViewButtonColumn)
         {
             SMidiOutput data = datalist_out[e.RowIndex].ToOutput();
             parent.Device.Send(data.Action);
         }
     }
 }
예제 #3
0
 public void OutputData(SMidiOutput d)
 {
     TypeOut = d.Type;
     setData(d.Action);
 }