private void Cpviewer_ClipboardHandler(object sender, ClipboardViewer.ClipboardEventArgs ev) { if (chkClipboard.Checked) { if (ev.Text != PrevCripboardString) { PrevCripboardString = ev.Text; textBox1.Text = ev.Text; button1.PerformClick(); } } }
// クリップボード変更時 private void OnClipBoardChanged(object sender, ClipboardViewer.ClipboardEventArgs e) { if (ClipEventCheckBox.Checked && e.Text != "") { #if DEBUG System.Diagnostics.Trace.WriteLine("Clip:" + e.Text); #endif string status; vtwasay.AutoGetPlay(out status, e.Text); this.StatusLabel.Text = status; } }