public MainWindow() { InitializeComponent(); var filePath = "C:\\temp\\commands.txt"; MyControl.Init(filePath); }