private void Patches_DoubleClick(object sender, EventArgs e) { if (Patches.SelectedRows.Count != 1) return; PatchFile patchFile = (PatchFile)Patches.SelectedRows[0].DataBoundItem; ViewPatch viewPatch = new ViewPatch(); viewPatch.LoadPatch(patchFile.FullName); viewPatch.ShowDialog(); }
private void Patches_DoubleClick(object sender, EventArgs e) { if (Patches.SelectedRows.Count != 1) return; var patchFile = (PatchFile)Patches.SelectedRows[0].DataBoundItem; using (var viewPatch = new ViewPatch(UICommands)) { viewPatch.LoadPatch(patchFile.FullName); viewPatch.ShowDialog(this); } }
public bool StartViewPatchDialog(IWin32Window owner, string patchFile) { if (!InvokeEvent(owner, PreViewPatch)) return true; using (var viewPatch = new ViewPatch(this)) { if (!String.IsNullOrEmpty(patchFile)) viewPatch.LoadPatch(patchFile); viewPatch.ShowDialog(owner); } InvokeEvent(owner, PostViewPatch); return true; }
public bool StartViewPatchDialog(IWin32Window owner) { if (!InvokeEvent(owner, PreViewPatch)) return true; 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; }
private void patchToolStripMenuItem_Click(object sender, EventArgs e) { ViewPatch applyPatch = new ViewPatch(); applyPatch.ShowDialog(); Initialize(); }