private void ResultPanel_DragDrop(object sender, DragEventArgs e) { DragDropWaveArgs args = (DragDropWaveArgs)e.Data.GetData("Voice.Visual.DragDropWaveArgs"); ResultPic.AddWavePart(args.bytes, (ResultPanel.PointToClient(Control.MousePosition)).X < ResultPic.Left ? 0 : -1); //if() //MessageBox.Show(e.Data.ToString() + "olala"); }
void PartsPanel_DragDrop(object sender, DragEventArgs e) { DragDropWaveArgs args = (DragDropWaveArgs)e.Data.GetData("Voice.Visual.DragDropWaveArgs"); addPart(args.bytes, args.color, PartsPanel.PointToClient(Control.MousePosition).X, "name0"); }