private void buttonAccept_Click(object sender, EventArgs e) { this.Close(); this.callback(new DragCallback() { Type = DragCallbackType.Image, Image = this.img }); }