private void ShowLicenseWindow(string textPath) { var window = new LicenseBox(); window.Icon = this.Icon; window.Left = Screen.PrimaryScreen.WorkingArea.Width / 8; window.Top = Screen.PrimaryScreen.WorkingArea.Height / 8; window.Width = Screen.PrimaryScreen.WorkingArea.Width * 6 / 10; window.Height = Screen.PrimaryScreen.WorkingArea.Height * 8 / 10; window.Prepare(textPath); window.ShowDialog(this); window.Dispose(); }