private void timer_Clipboard_Tick(object sender, EventArgs e) { if (DictionaryClipboard.HasContent()) { DictionaryClipboard.SetClipboadText(); } else { } }
private DictionaryItem WordItem() { DictionaryItem dItem = new DictionaryItem(false); dItem.WordName = DictionaryClipboard.GetWordSearch(); dItem.CategoryName = comboBox_Category.Text; dItem.WordDefinition = textBox_Definition.Text; return(dItem); }
public void SearchStatus(Label label1, TextBox textbox1) { if (DictionaryClipboard.HasContent() == true && !TypingInTextBox) {//if the ClipBoard has text, clear text box display the words found from the clipBoard textbox1.Text = ""; label1.Text = "Searching... " + ActiveDictionary.ActiveSearchList.Count() + " Words found"; } else if (TypingInTextBox) { if (textbox1.Text == "") { label_Status.Text = ""; } else { label_Status.Text = "Searching... " + ActiveDictionary.ActiveSearchList.Count() + " Words found"; } } }