private void InitControls()
        {
            this.WebsiteButton        = new Button();
            this.WebsiteButton.Text   = "Website";
            this.WebsiteButton.Click += this.WebsiteButtonOnClick;

            this.CloseButton        = new Button();
            this.CloseButton.Text   = "Close";
            this.CloseButton.Click += this.CloseButtonOnClick;

            this.LicenseTextArea = new RichTextArea();
            this.FillLicenseTextArea();

            this.ComponentsTextArea          = new RichTextArea();
            this.ComponentsTextArea.ReadOnly = true;
            this.ComponentsTextArea.Text     = string.Empty;
            this.ComponentsTextArea.Append(@"TimeStampClient uses following 3rd party components (in alphabetical order):" + Environment.NewLine
                                           + Environment.NewLine
                                           + "- DotNetZip" + Environment.NewLine
                                           + "- Eto.Forms" + Environment.NewLine
                                           + "- Eto.Platform.Gtk" + Environment.NewLine
                                           + "- Eto.Platform.Mac64" + Environment.NewLine
                                           + "- Eto.Platform.Wpf" + Environment.NewLine
                                           + "- BouncyCastle.Crypto" + Environment.NewLine
                                           + Environment.NewLine
                                           + "Full license text for each of these components can be found in the installation directory.");

            if (SharedUtils.RunningOnMacOs())
            {
                this.ComponentsTextArea.Selection = new Range <int>(0);
            }
        }
        private void TerminateApplication()
        {
            this.Close();

            if (SharedUtils.RunningOnMacOs())
            {
                Environment.Exit(0);
            }
        }
        private void FillLicenseTextArea()
        {
            this.LicenseTextArea.ReadOnly = true;
            this.LicenseTextArea.Append(@"TimeStampClient " + SharedUtils.AppVersion + Environment.NewLine);
            this.LicenseTextArea.Append(@"Copyright (c) 2016-2021 Disig a.s." + Environment.NewLine);
            this.LicenseTextArea.Append(Environment.NewLine + "Licensed under the Apache License, Version 2.0 (the \"License\"); " +
                                        "you may not use this file except in compliance with the License. You may obtain a copy of the License at " +
                                        Environment.NewLine + Environment.NewLine + "https://www.apache.org/licenses/LICENSE-2.0" + Environment.NewLine + Environment.NewLine +
                                        "Unless required by applicable law or agreed to in writing, software distributed under the License is " +
                                        "distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. " +
                                        "See the License for the specific language governing permissions and limitations under the License." + Environment.NewLine);

            if (SharedUtils.RunningOnMacOs())
            {
                this.LicenseTextArea.Selection = new Range <int>(0);
            }
        }