FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
MapWindow5/src/MW5.UI/Menu/MenuServiceBase.cs at develop · MapWindow/MapWindow5 · GitHub
MapWindow
/
MapWindow5
Public
Notifications
You must be signed in to change notification settings
Fork
102
Star
308
Code
Issues
14
Pull requests
12
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
MapWindow5
/
src
/
MW5.UI
/
Menu
/
MenuServiceBase.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
39 lines (34 loc) · 1.09 KB
Breadcrumbs
MapWindow5
/
src
/
MW5.UI
/
Menu
/
MenuServiceBase.cs
Copy path
File metadata and controls
39 lines (34 loc) · 1.09 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
using
System
;
using
System
.
Collections
.
Generic
;
using
System
.
Linq
;
using
System
.
Text
;
using
System
.
Threading
.
Tasks
;
using
MW5
.
Plugins
.
Concrete
;
using
MW5
.
Plugins
.
Interfaces
;
namespace
MW5
.
UI
.
Menu
{
public
abstract
class
MenuServiceBase
{
protected
readonly
IAppContext
_context
;
protected
readonly
PluginIdentity
_identity
;
protected
IToolbarCollectionBase
_toolbars
;
protected
IMenuBase
_menu
;
public
MenuServiceBase
(
IAppContext
context
,
PluginIdentity
identity
)
{
if
(
context
==
null
)
throw
new
ArgumentNullException
(
"context"
)
;
if
(
identity
==
null
)
throw
new
ArgumentNullException
(
"identity"
)
;
_context
=
context
;
_identity
=
identity
;
_toolbars
=
context
.
Toolbars
;
_menu
=
context
.
Menu
;
}
protected
IMenuItem
FindToolbarItem
(
string
itemKey
)
{
return
_toolbars
.
FindItem
(
itemKey
,
_identity
)
;
}
protected
IMenuItem
FindMenuItem
(
string
itemKey
)
{
return
_menu
.
FindItem
(
itemKey
,
_identity
)
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL