本文整理汇总了C#中IManager类的典型用法代码示例。如果您正苦于以下问题:C# IManager类的具体用法?C# IManager怎么用?C# IManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IManager类属于命名空间,在下文中一共展示了IManager类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: CategoryViewModel
public CategoryViewModel(IManager manager)
{
this.manager = manager;
this.category = new Category();
this.SaveCommand = new RelayCommand(o => UpdateCategory());
ConfigureValidation();
}
开发者ID:amigobv,项目名称:UFO,代码行数:7,代码来源:CategoryViewModel.cs
示例2: Item
public Item(Item item)
{
ID = item.ID;
Name = item.Name;
Health = item.Health;
Armour = item.Armour;
Speed = item.Speed;
RotationSpeed = item.RotationSpeed;
Prefab = item.Prefab;
Cost = item.Cost;
BuildTime = item.BuildTime;
TypeIdentifier = item.TypeIdentifier;
TeamIdentifier = item.TeamIdentifier;
PlayerIdentifier = item.PlayerIdentifier;
BuildingIdentifier = item.BuildingIdentifier;
m_ItemImage = item.ItemImage;
m_Button = item.Button;
ItemImageHover = item.ItemImageHover;
SortOrder = item.SortOrder;
RequiredBuildings = item.RequiredBuildings;
Explosion = item.Explosion;
m_Manager = ManagerResolver.Resolve<IManager>();
m_CostPerSecond = ((float)Cost)/BuildTime;
m_ButtonStyle = item.ButtonStyle;
ObjectType = item.ObjectType;
}
开发者ID:SexySicilianSoprano,项目名称:thegreatdeepblue,代码行数:26,代码来源:Item.cs
示例3: FindReplaceDialog
public FindReplaceDialog(IManager manager)
{
InitializeComponent();
mManager = manager;
DialogMode = Mode.Find;
TextPlugin plugin = (TextPlugin)mManager.GetPlugin(typeof(TextPlugin));
plugin.FindReplaceDialog = this;
LoadFromRegistry(comboBoxFindWhat);
LoadFromRegistry(comboBoxReplaceWith);
LoadFromRegistry(comboBoxSearchIn);
LoadFromRegistry(comboBoxFileTypes);
if (comboBoxSearchIn.Items.Count == 0)
comboBoxSearchIn.Items.AddRange(new string[] { "Current Project", "All Open Documents" });
comboBoxSearchIn.Text = (string) comboBoxSearchIn.Items[0];
if (comboBoxFileTypes.Items.Count > 0)
comboBoxFileTypes.Text = (string) comboBoxFileTypes.Items[0];
else
FileTypes = "*.*";
checkBoxIncludeSubFolders.Checked = true;
}
开发者ID:zcnet4,项目名称:lua-tilde,代码行数:28,代码来源:FindReplaceDialog.cs
示例4: SearchManager
public SearchManager(IManager pParentManager)
: base(pParentManager)
{
_searchService = new GoodMangaSearchService();
_searchService.Subscribe(this);
SearchEngine.Instance.Register(_searchService);
}
开发者ID:ber2dev,项目名称:manga-utilities,代码行数:7,代码来源:SearchManager.cs
示例5: Add
public void Add(IManager manager)
{
manager.Register(_gameManager);
_managers.Add(manager);
_managers.Sort();
}
开发者ID:Coderrob,项目名称:PhoenixSystem,代码行数:7,代码来源:ManagerManager.cs
示例6: MainWindow
public MainWindow(IManager pManager)
: base(pManager)
{
InitializeComponent();
var mainManager = new MainManager(GetManager());
TabControl.Items.Add(new GoodMangaTabController(mainManager));
}
开发者ID:ber2dev,项目名称:manga-utilities,代码行数:7,代码来源:MainWindow.xaml.cs
示例7: CategoriesViewModel
public CategoriesViewModel(IManager manager)
{
this.manager = manager;
Categories = new List<CategoryViewModel>();
currentCategory = new CategoryViewModel(new Category(), manager);
currentCategory.NotifyUpdate += () => LoadCategories();
}
开发者ID:amigobv,项目名称:UFO,代码行数:7,代码来源:CategoriesViewModel.cs
示例8: ProjectPanel
public ProjectPanel(IManager manager)
{
InitializeComponent();
m_manager = manager;
m_mainWindow = (MainWindow) manager.MainWindow;
m_manager.PropertyChange += new PropertyChangeEventHandler(Manager_PropertyChange);
manager.ProjectOpened += new ProjectOpenedEventHandler(Manager_ProjectOpened);
m_systemImageList = new SystemImageList();
m_systemImageList.SetImageList(projectView);
m_italicFont = new Font(projectView.Font, FontStyle.Italic);
m_boldFont = new Font(projectView.Font, FontStyle.Bold);
UpdateTree();
foreach (Type docType in m_manager.GetPluginImplementations(typeof(Document)))
{
DocumentClassAttribute docAttr = DocumentClassAttribute.ForType(docType);
if(docAttr != null)
{
ToolStripMenuItem item = new ToolStripMenuItem();
item.Text = "New " + docAttr.Name;
item.Click += new EventHandler(AddNewDocument_Click);
item.Tag = docType;
addToolStripMenuItem.DropDownItems.Insert(0, item);
}
}
}
开发者ID:zcnet4,项目名称:lua-tilde,代码行数:31,代码来源:ProjectPanel.cs
示例9: LocationViewModel
public LocationViewModel(IManager manager)
{
this.manager = manager;
this.location = new Location();
SaveCommand = new RelayCommand(o => UpdateLocation());
ConfigureValidation();
}
开发者ID:amigobv,项目名称:UFO,代码行数:7,代码来源:LocationViewModel.cs
示例10: ExecuteToChildren
public static IEnumerable<IActionResult> ExecuteToChildren(
IManager pManager,
IAction pAction,
bool pCheckSource)
{
ArgumentsValidation.NotNull(pManager, "pManager");
ArgumentsValidation.NotNull(pAction, "pAction");
var result = new List<IActionResult>();
var children = pManager.GetChildren();
if (children != null)
{
var checkedChildren = children.Where(x => !pCheckSource || !ReferenceEquals(x, pAction.GetSource()));
foreach (var child in checkedChildren)
{
var r = child.Execute(pManager, pAction);
if (r == null || r is NotAvailableActionResult)
{
continue;
}
result.Add(r);
}
}
return new ReadOnlyCollection<IActionResult>(result);
}
开发者ID:ber2dev,项目名称:manga-utilities,代码行数:28,代码来源:ManagerUtilities.cs
示例11: PerformanceViewModel
public PerformanceViewModel(VenueViewModel venueVm, ArtistViewModel artistVm, DateTime day, IManager manager)
{
this.manager = manager;
this.performance = new Performance();
this.performance.Start = day;
var artist = manager.GetArtistByName(artistVm.Name);
if (artist != null && artist.Count > 0)
this.performance.Artist = artist.ElementAt(0);
else
this.performance.Artist = new Artist();
var venue = manager.GetVenueById(venueVm.Id);
if (venue != null)
this.performance.Venue = venue;
this.venueVm = venueVm;
this.artistVm = artistVm;
this.day = day;
this.artists = new List<ArtistViewModel>();
this.venues = new List<VenueViewModel>();
SaveCommand = new RelayCommand(o => manager.UpdatePerformance(performance));
RemoveCommand = new RelayCommand(o => manager.RemovePerformance(performance));
}
开发者ID:amigobv,项目名称:UFO,代码行数:26,代码来源:PerformanceViewModel.cs
示例12: VenuesViewModel
public VenuesViewModel(IManager manager)
{
this.manager = manager;
Venues = new List<VenueViewModel>();
CurrentVenue = new VenueViewModel(new Venue(), manager);
CurrentVenue.NotifyUpdate += () => LoadVenues();
}
开发者ID:amigobv,项目名称:UFO,代码行数:7,代码来源:VenuesViewModel.cs
示例13: Start
void Start()
{
iManager = GameObject.FindGameObjectWithTag ( "IManager" ).GetComponent<IManager>();
if(Environment.OSVersion.ToString().Substring (0, 4) == "Unix")
{
path = mac;
} else
{
path = windows;
}
logPath = path + "Transaction Log.txt";
if ( File.Exists ( logPath ))
{
iManager.transactionHistory = new List<String> ( File.ReadAllText( logPath ).Split( new string[] { "\r\n", "\n" }, StringSplitOptions.None ));
iManager.ReadLog ();
} else {
UnityEngine.Debug.Log ( "No log file could be found." );
}
}
开发者ID:2CatStudios,项目名称:UnityBookkeeper,代码行数:26,代码来源:IOManager.cs
示例14: Server
static Server()
{
RemotingConfiguration.Configure(_configFile, false);
WellKnownClientTypeEntry[] entries = RemotingConfiguration.GetRegisteredWellKnownClientTypes();
Console.WriteLine(entries[0].TypeName + " " + entries[0].ObjectType + " " + entries[0].ObjectUrl);
_manager = (IManager)Activator.GetObject(entries[0].ObjectType, entries[0].ObjectUrl);
}
开发者ID:Baptista,项目名称:SD,代码行数:7,代码来源:Class1.cs
示例15: LocationsViewModel
public LocationsViewModel(IManager manager)
{
this.manager = manager;
Locations = new List<LocationViewModel>();
CurrentLocation = new LocationViewModel(new Location(), manager);
CurrentLocation.NotifyUpdate += () => LoadLocations();
}
开发者ID:amigobv,项目名称:UFO,代码行数:7,代码来源:LocationsViewModel.cs
示例16: ConsoleWindow
public ConsoleWindow(IManager manager)
{
InitializeComponent();
m_manager = manager;
m_plugin = (LuaPlugin)m_manager.GetPlugin(typeof(LuaPlugin));
m_debugger = m_plugin.Debugger;
m_manager.ProjectOpened += new ProjectOpenedEventHandler(Manager_ProjectOpened);
m_manager.ProjectClosing += new ProjectClosingEventHandler(Manager_ProjectClosing);
m_debugger.DebuggerConnected += new DebuggerConnectedEventHandler(Debugger_DebuggerConnected);
m_debugger.DebuggerDisconnected += new DebuggerDisconnectedEventHandler(Debugger_DebuggerDisconnected);
m_plugin.Options.OptionsChanged += new OptionsChangedDelegate(Options_OptionsChanged);
m_autocompletePopup = new AutocompletePopup(m_debugger, this);
m_autocompletePopup.Selection += new AutocompleteSelectionEventHandler(m_autocompletePopup_Selection);
SetWaitingForResult(false);
ConfigureScintillaControl(inputBox);
ClearBrowser();
}
开发者ID:zcnet4,项目名称:lua-tilde,代码行数:25,代码来源:ConsoleWindow.cs
示例17: DebugManager
public DebugManager(IManager manager)
{
mManager = manager;
mPlugin = (LuaPlugin) manager.GetPlugin(typeof(LuaPlugin));
mTransports = new List<ITransport>();
mConnectionStatus = ConnectionStatus.NotConnected;
mTargetStatus = TargetState.Disconnected;
mConnectedTarget = null;
mBreakpoints = new List<BreakpointDetails>();
mWatches = new Dictionary<int, WatchDetails>();
mValueCache = new ValueCache();
mMainWindowComponents = new MainWindowComponents(this);
InitialiseTransports();
Manager.AddToMenuStrip(mMainWindowComponents.menuStrip.Items);
Manager.AddToStatusStrip(mMainWindowComponents.statusStrip.Items);
Manager.AddToolStrip(mMainWindowComponents.toolStrip, DockStyle.Top, 1);
Manager.ProjectOpened += new ProjectOpenedEventHandler(Manager_ProjectOpened);
if(Manager.MainWindow != null)
Manager.MainWindow.FormClosing += new FormClosingEventHandler(MainWindow_FormClosing);
}
开发者ID:zcnet4,项目名称:lua-tilde,代码行数:25,代码来源:DebugManager.cs
示例18: GetNewsManager
// if NewsManager is null, create a new NewsManager.
public IManager<News> GetNewsManager()
{
if (_newsManager == null)
{
_newsManager = new NewsManager();
}
return _newsManager;
}
开发者ID:Raakost,项目名称:OSG,代码行数:9,代码来源:Facade.cs
示例19: GetCommentManager
public IManager<Comment> GetCommentManager()
{
if (_commentManager == null)
{
_commentManager = new CommentManager();
}
return _commentManager;
}
开发者ID:Raakost,项目名称:OSG,代码行数:8,代码来源:Facade.cs
示例20: ConnectInitializer
private void ConnectInitializer(IManager manager)
{
Console.WriteLine(manager.ManagerType + "Initializer");
var clientThread = new Thread(HandleClientConnection);
clientThread.Start(manager.GetClient());
}
开发者ID:Tarakan1992,项目名称:TcpUdpServer,代码行数:8,代码来源:TcpUdpServer.cs
注:本文中的IManager类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论