Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
        public bool StartViewPatchDialog(IWin32Window owner)
        {
            if (!InvokeEvent(owner, PreViewPatch))
                return true;

            var applyPatch = new ViewPatch();
            applyPatch.ShowDialog(owner);

            InvokeEvent(owner, PostViewPatch);

            return true;
        }
Ejemplo n.º 5
0
        public bool StartViewPatchDialog()
        {
            if (!InvokeEvent(PreViewPatch))
                return true;

            var applyPatch = new ViewPatch();
            applyPatch.ShowDialog();

            InvokeEvent(PostViewPatch);

            return true;
        }
Ejemplo n.º 6
0
 private void patchToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ViewPatch applyPatch = new ViewPatch();
     applyPatch.ShowDialog();
     Initialize();
 }