Exemple #1
0
        public bool StartFileHistoryDialog(IWin32Window owner, string fileName, GitRevision revision, bool filterByRevision, bool showBlame)
        {
            if (!RequiresValidWorkingDir(owner))
            {
                return(false);
            }

            if (!InvokeEvent(owner, PreFileHistory))
            {
                return(false);
            }

            using (var form = new FormFileHistory(fileName, revision, filterByRevision))
            {
                if (showBlame)
                {
                    form.SelectBlameTab();
                }
                form.ShowDialog(owner);
            }

            InvokeEvent(owner, PostFileHistory);

            return(false);
        }
Exemple #2
0
        public bool StartFileHistoryDialog(string fileName, GitRevision revision)
        {
            if (!InvokeEvent(PreFileHistory))
            {
                return(false);
            }

            var form = new FormFileHistory(fileName, revision);

            form.ShowDialog();

            InvokeEvent(PostFileHistory);

            return(false);
        }
Exemple #3
0
        public bool StartFileHistoryDialog(IWin32Window owner, string fileName, GitRevision revision)
        {
            if (!RequiresValidWorkingDir())
            {
                return(false);
            }

            if (!InvokeEvent(PreFileHistory))
            {
                return(false);
            }

            var form = new FormFileHistory(fileName, revision);

            form.ShowDialog(owner);

            InvokeEvent(PostFileHistory);

            return(false);
        }
        public bool StartFileHistoryDialog(IWin32Window owner, string fileName, GitRevision revision, bool filterByRevision, bool showBlame)
        {
            if (!RequiresValidWorkingDir(owner))
                return false;

            if (!InvokeEvent(owner, PreFileHistory))
                return false;

            using (var form = new FormFileHistory(this, fileName, revision, filterByRevision))
            {
                if (showBlame)
                    form.SelectBlameTab();
                form.ShowDialog(owner);
            }

            InvokeEvent(owner, PostFileHistory);

            return false;
        }
        public bool StartFileHistoryDialog(IWin32Window owner, string fileName, GitRevision revision)
        {
            if (!RequiresValidWorkingDir())
                return false;

            if (!InvokeEvent(PreFileHistory))
                return false;

            var form = new FormFileHistory(fileName, revision);
            form.ShowDialog(owner);

            InvokeEvent(PostFileHistory);

            return false;
        }
        public bool StartFileHistoryDialog(string fileName, GitRevision revision)
        {
            if (!InvokeEvent(PreFileHistory))
                return false;

            FormFileHistory form = new FormFileHistory(fileName, revision);
            form.ShowDialog();

            InvokeEvent(PostFileHistory);

            return false;
        }
Exemple #7
0
        private void GitTree_DoubleClick(object sender, EventArgs e)
        {
            if (GitTree.SelectedNode == null || !(GitTree.SelectedNode.Tag is IGitItem)) return;

            IGitItem item = (IGitItem)GitTree.SelectedNode.Tag;
            if (item is GitItem)
                if (((GitItem)item).ItemType == "blob")
                {
                    FormFileHistory form = new FormFileHistory(((GitItem)item).FileName);
                    form.ShowDialog();

                }
        }
Exemple #8
0
 private void fileHistoryToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (var frm = new FormFileHistory(GetFileName())) frm.ShowDialog(this);
 }
 private void fileHistoryToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (var frm = new FormFileHistory(GetFileName())) frm.ShowDialog(this);
 }