forked from jakobehn/GitFlow.VS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTeamExplorerBasePage.cs
91 lines (80 loc) · 2.38 KB
/
TeamExplorerBasePage.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
using System;
using Microsoft.TeamFoundation.Controls;
namespace TeamExplorer.Common
{
/// <summary>
/// Team Explorer page base class.
/// </summary>
public class TeamExplorerBasePage : TeamExplorerBase, ITeamExplorerPage
{
#region ITeamExplorerPage
/// <summary>
/// Initialize the page.
/// </summary>
public virtual void Initialize(object sender, PageInitializeEventArgs e)
{
ServiceProvider = e.ServiceProvider;
}
/// <summary>
/// Loaded handler that is called once the page and all sections
/// have been initialized.
/// </summary>
public virtual void Loaded(object sender, PageLoadedEventArgs e)
{
}
/// <summary>
/// Save context handler that is called before a page is unloaded.
/// </summary>
public virtual void SaveContext(object sender, PageSaveContextEventArgs e)
{
}
/// <summary>
/// Get/set the page title.
/// </summary>
public string Title
{
get { return m_title; }
set { m_title = value; RaisePropertyChanged("Title"); }
}
private string m_title;
/// <summary>
/// Get/set the page content.
/// </summary>
public object PageContent
{
get { return m_pageContent; }
set { m_pageContent = value; RaisePropertyChanged("PageContent"); }
}
private object m_pageContent;
/// <summary>
/// Get/set the IsBusy flag.
/// </summary>
public bool IsBusy
{
get { return m_isBusy; }
set { m_isBusy = value; RaisePropertyChanged("IsBusy"); }
}
private bool m_isBusy = false;
/// <summary>
/// Refresh the page contents.
/// </summary>
public virtual void Refresh()
{
}
/// <summary>
/// Cancel any running operations.
/// </summary>
public virtual void Cancel()
{
}
/// <summary>
/// Get the requested extensibility service from the page. Return
/// null if the service is not offered by this page.
/// </summary>
public virtual object GetExtensibilityService(Type serviceType)
{
return null;
}
#endregion
}
}