コード例 #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();
        }
コード例 #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);
            }
        }
コード例 #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;
        }
コード例 #4
0
ファイル: GitUICommands.cs プロジェクト: phiree/gitextensions
        public bool StartViewPatchDialog(IWin32Window owner)
        {
            if (!InvokeEvent(owner, PreViewPatch))
                return true;

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

            InvokeEvent(owner, PostViewPatch);

            return true;
        }
コード例 #5
0
        public bool StartViewPatchDialog()
        {
            if (!InvokeEvent(PreViewPatch))
                return true;

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

            InvokeEvent(PostViewPatch);

            return true;
        }
コード例 #6
0
ファイル: Browse.cs プロジェクト: rzeng/gitextensions
 private void patchToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ViewPatch applyPatch = new ViewPatch();
     applyPatch.ShowDialog();
     Initialize();
 }