public GeshiWindow(Settings settings)
 {
     InitializeComponent();
     SourceCode = settings.SourceCode;
     Language = string.IsNullOrEmpty(settings.Language) ? "csharp" : settings.Language;
     sourceCode.Focus();
 }
        private void editCodeLink_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
        {
            var settings = new Settings(SelectedContent.Properties);

            using (var form = new GeshiWindow(settings)) {
                var result = form.ShowDialog();

                if (result == DialogResult.OK) {
                    settings.SourceCode = form.SourceCode;
                    settings.Language = form.Language;
                }

                OnContentEdited();
            }
        }