/// <summary> /// Remove initial message on focus /// </summary> private void TxBx_Url_Click(object sender, EventArgs e) { if (TxBx_Url.Text == WelcomeMessage) { TxBx_Url.Clear(); } }
private void MnTx_Undo_Click(object sender, EventArgs e) { if (TxBx_Url.CanUndo) { TxBx_Url.Undo(); } }
/// <summary> /// Constructor of the page /// </summary> public GetUrl(string savedURL = null) { InitializeComponent(); if (Clipboard.GetText().IndexOf("hentai.org/g/") > -1) { TxBx_Url.Text = Clipboard.GetText(); } else if (!string.IsNullOrWhiteSpace(savedURL)) { TxBx_Url.Text = savedURL; } else { TxBx_Url.Text = WelcomeMessage; TxBx_Url.SelectAll(); } }
private void MnTx_SelAll_Click(object sender, EventArgs e) { TxBx_Url.SelectAll(); }
private void MnTx_Paste_Click(object sender, EventArgs e) { TxBx_Url.Paste(); }
private void MnTx_Copy_Click(object sender, EventArgs e) { TxBx_Url.Copy(); }
private void MnTx_Cut_Click(object sender, EventArgs e) { TxBx_Url.Cut(); }
private void Mn_TxBx_Opening(object sender, CancelEventArgs e) { TxBx_Url.Select(); }