private const string SEARCH_DEFAULT = "Search for an item..."; // store searchTextBox's default text public MainWindow() { // required method for Designer support this.InitializeComponent(); // hand this instance to the static classes that utilize MainWindow MsgLabel.MainWindow = this; Config.MainWindow = this; LocalClipboard.MainWindow = this; // read from CONFIG file and update items accordingly Config.FromFile(); // read from CLIPBOARD file and write to local clipboard LocalClipboard.FromFile(); // init WndProc event hook _ = new GlobalEventHook(this); wnd = new PopupWindow(); }