mirror of
https://github.com/chylex/TweetDuck.git
synced 2024-11-23 17:42:46 +01:00
28 lines
824 B
C#
28 lines
824 B
C#
using System;
|
|
using System.Windows.Forms;
|
|
|
|
namespace TweetDuck.Core.Other.Settings.Dialogs{
|
|
sealed partial class DialogSettingsSearchEngine : Form{
|
|
public string Url => textBoxUrl.Text;
|
|
|
|
public DialogSettingsSearchEngine(){
|
|
InitializeComponent();
|
|
|
|
Text = Program.BrandName+" Options - Custom Search Engine";
|
|
|
|
textBoxUrl.Text = Program.Config.User.SearchEngineUrl ?? "";
|
|
textBoxUrl.Select(textBoxUrl.Text.Length, 0);
|
|
}
|
|
|
|
private void btnApply_Click(object sender, EventArgs e){
|
|
DialogResult = DialogResult.OK;
|
|
Close();
|
|
}
|
|
|
|
private void btnCancel_Click(object sender, EventArgs e){
|
|
DialogResult = DialogResult.Cancel;
|
|
Close();
|
|
}
|
|
}
|
|
}
|