forked from gitextensions/gitextensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IGitUICommandsSource.cs
33 lines (28 loc) · 1.01 KB
/
IGitUICommandsSource.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
namespace GitUI
{
public class GitUICommandsChangedEventArgs : EventArgs
{
public GitUICommandsChangedEventArgs(GitUICommands oldCommands)
{
OldCommands = oldCommands;
}
public GitUICommands OldCommands { get; private set; }
}
public class GitUICommandsSourceEventArgs : EventArgs
{
public GitUICommandsSourceEventArgs(IGitUICommandsSource gitUiCommandsSource)
{
GitUICommandsSource = gitUiCommandsSource;
}
public IGitUICommandsSource GitUICommandsSource { get; private set; }
}
/// <summary>Provides <see cref="GitUICommands"/> and a change notification.</summary>
public interface IGitUICommandsSource
{
/// <summary>Raised after <see cref="UICommands"/> changes.</summary>
event EventHandler<GitUICommandsChangedEventArgs> GitUICommandsChanged;
/// <summary>Gets the <see cref="GitUICommands"/> value.</summary>
GitUICommands UICommands { get; }
}
}