private void GridChangedFiles_SelectionChanged(object sender, EventArgs e) { if (GridChangedFiles.SelectedRows.Count == 0) { return; } var patch = (Patch)GridChangedFiles.SelectedRows[0].DataBoundItem; CurrentPatch = patch; if (patch == null) { return; } ChangesList.ViewPatch(patch.Text); /* * ChangesList.Text = ""; * * try * { * ChangesList.SetHighlighting("Patch"); * ChangesList.Refresh(); * ChangesList.IsReadOnly = true; * } * catch * { * ChangesList.Text = ""; * ChangesList.Refresh(); * } * ChangesList.Text = patch.Text; * //PatchedFileEdit.Text = changedFile.New;*/ }
private void GridChangedFiles_SelectionChanged(object sender, EventArgs e) { if (GridChangedFiles.SelectedRows.Count == 0) { return; } var patch = (Patch)GridChangedFiles.SelectedRows[0].DataBoundItem; if (patch == null) { return; } ChangesList.ViewPatch(patch.FileNameB, patch.Text ?? ""); }