private void ConfigureCommitNotifier() { _commitNotifier.OpeningMilliseconds = _configuration.NotifierOpeningMilliseconds; _commitNotifier.HidingMilliseconds = _configuration.NotifierHidingMilliseconds; _commitNotifier.StayOpenMilliseconds = _configuration.NotifierStayOpenMilliseconds; _commitNotifier.MinWidth = 600; _commitNotifier.MaxWidth = 600; _commitNotifier.Show(); _commitNotifier.ChangesetLinkClicked += (sender, args) => { var selectedProject = _projects.Single(p => p.ServerConfiguration.Id == args.ProjectId); using ( var ci = new ChangesetInfo(selectedProject, args.CurrentChangeset)) ci.ShowDialog(); }; }
private void ConfigureCommitNotifier() { _commitNotifier .OpeningMilliseconds = _configuration.NotifierOpeningMilliseconds; _commitNotifier.HidingMilliseconds = _configuration.NotifierHidingMilliseconds; _commitNotifier.StayOpenMilliseconds = _configuration.NotifierStayOpenMilliseconds; _commitNotifier.MinWidth = 600; _commitNotifier.MaxWidth = 600; _commitNotifier.Show(); _commitNotifier.ChangesetLinkClicked += (sender, args) => { var selectedProject = _projects.Single(p => p.ServerConfiguration.Id == args.ProjectId); using ( var ci = new ChangesetInfo(selectedProject, args.CurrentChangeset)) ci.ShowDialog(); }; }
private void ListView1MouseDoubleClick(object sender, MouseEventArgs e) { if (e == null) { return; } TopMost = false; var selectedItem = listView1.GetItemAt(e.X, e.Y); var checkin = (TfsCheckin)selectedItem.Tag; selectedItem.Font = new Font(Font, FontStyle.Regular); using (var ci = new ChangesetInfo(_projects.Single(p => p.ServerConfiguration.Id == checkin.ServerId), checkin)) { Hide(); ci.ShowDialog(); if (!IsDisposed) { Show(); } } }
private void ListView1MouseDoubleClick(object sender, MouseEventArgs e) { if (e == null) return; TopMost = false; var selectedItem = listView1.GetItemAt(e.X, e.Y); var checkin = (TfsCheckin)selectedItem.Tag; selectedItem.Font = new Font(Font, FontStyle.Regular); using (var ci = new ChangesetInfo(_projects.Single(p => p.ServerConfiguration.Id == checkin.ServerId), checkin)) { Hide(); ci.ShowDialog(); if(!IsDisposed) Show(); } }