Exemple #1
0
        private void PatchListView_SelectedIndexChanged(object sender, EventArgs e)
        {
            OpenInEditorButton.Enabled = SelectedPatch != null;
            if (SelectedPatch == null)
            {
                return;
            }

            var sb = new StringBuilder();

            {
                sb.AppendLine("Author: " + SelectedPatch.Author);
                sb.AppendLine("Version: " + SelectedPatch.Version);
                sb.AppendLine();
                sb.AppendLine(SelectedPatch.Description);
            }
            DescriptionTextBox.Text = sb.ToString();

            var conflicts = m_patchManager.CheckConflicts(SelectedPatch, m_suitablePatches);

            sb = new StringBuilder();
            foreach (var conflict in conflicts)
            {
                sb.AppendLine(conflict.ToString());
            }
            ConflictsTextBox.Text = sb.ToString();
        }
Exemple #2
0
        private void PatchListView_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (SelectedPatch == null)
            {
                return;
            }

            var sb = new StringBuilder();

            {
                sb.AppendLine("Author: " + SelectedPatch.Author);
                sb.AppendLine("Version: " + SelectedPatch.Version);
                sb.AppendLine();
                sb.AppendLine((SelectedPatch.Description ?? string.Empty).Trim().Replace("\n", Environment.NewLine));
            }
            DescriptionTextBox.Text = sb.ToString();

            var conflicts = m_patchManager.CheckConflicts(SelectedPatch, m_suitablePatches);

            sb = new StringBuilder();
            foreach (var conflict in conflicts)
            {
                sb.AppendLine(conflict.Name);
            }
            ConflictsTextBox.Text = sb.ToString();
        }