private void LoadVersionsOfComposeFileFromSite()
        {
            List <string> versions = new List <string>();
            HtmlWeb       web      = new HtmlWeb();
            HtmlDocument  doc;

            try
            {
                doc = web.Load(@"https://docs.docker.com/compose/compose-file/");
            }
            catch
            {
                return;
            }
            HtmlNode tbody = doc.DocumentNode.SelectSingleNode("//tbody");

            foreach (HtmlNode t in tbody.ChildNodes)
            {
                if (t.InnerLength > 5)
                {
                    if (!versions.Contains(t.ChildNodes[1].InnerText))
                    {
                        versions.Add(t.ChildNodes[1].InnerText);
                    }
                    else
                    {
                        break;
                    }
                }
            }
            PersonalSettings.appConfig.ComposeFileVerions = versions.ToArray();
            PersonalSettings.Save();
        }
 protected void OnDeleteEvent(object sender, DeleteEventArgs a)
 {
     if (AllocatedHeight != MainWindowHeight || AllocatedWidth != MainWindowWidth)
     {
         PersonalSettings.appConfig.MainWindowHeight = AllocatedHeight;
         PersonalSettings.appConfig.MainWindowWidth  = AllocatedWidth;
         PersonalSettings.Save();
     }
     Application.Quit();
     a.RetVal = true;
 }
 private void OnComposeVerEChanged(object sender, EventArgs e)
 {
     PersonalSettings.appConfig.LastChoosedVersion = PersonalSettings.appConfig.ComposeFileVerions[ComposeVerCB.Active];
     PersonalSettings.Save();
 }