private void Patches_DoubleClick(object sender, EventArgs e) { if (Patches.SelectedRows.Count != 1) { return; } var patchFile = (PatchFile)Patches.SelectedRows[0].DataBoundItem; var viewPatch = new ViewPatch(); viewPatch.LoadPatch(patchFile.FullName); viewPatch.ShowDialog(); }
public bool StartViewPatchDialog(IWin32Window owner) { if (!InvokeEvent(owner, PreViewPatch)) { return(true); } using (var applyPatch = new ViewPatch()) applyPatch.ShowDialog(owner); InvokeEvent(owner, PostViewPatch); return(true); }
public bool StartViewPatchDialog() { if (!InvokeEvent(PreViewPatch)) { return(true); } var applyPatch = new ViewPatch(); applyPatch.ShowDialog(); InvokeEvent(PostViewPatch); return(true); }