本文整理汇总了C#中TomShane.Neoforce.Controls.Manager.Remove方法的典型用法代码示例。如果您正苦于以下问题:C# Manager.Remove方法的具体用法?C# Manager.Remove怎么用?C# Manager.Remove使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TomShane.Neoforce.Controls.Manager
的用法示例。
在下文中一共展示了Manager.Remove方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: EditLinkWindow
public EditLinkWindow(Sidebar sidebar, Link link, string FieldName)
{
this.sidebar = sidebar;
this.manager = sidebar.manager;
neoSidebar = new NeoSidebar(manager);
neoSidebar.Init();
int tomtom = 5;
neoSidebar.ClientArea.BackColor = UserInterface.TomDark;
neoSidebar.BackColor = Color.Black;
neoSidebar.BevelBorder = BevelBorder.All;
Margins tomtomtomtom = new Margins(tomtom, tomtom, tomtom, tomtom);
neoSidebar.ClientMargins = tomtomtomtom;
neoSidebar.Left = sidebar.master.Left;
neoSidebar.Width = sidebar.Width;
neoSidebar.Top = 0;
neoSidebar.Resizable = false;
neoSidebar.Movable = false;
neoSidebar.Height = OrbIt.ScreenHeight;
neoSidebar.Text = "Edit";
manager.Add(neoSidebar);
int width = 120;
int offset = neoSidebar.Width - width - 20;
titlePanelEditNode = new TitlePanel(sidebar, neoSidebar, "Edit" + FieldName, true);
titlePanelEditNode.btnBack.Click += (s, e) =>
{
sidebar.groupsView.UpdateGroups();
manager.Remove(neoSidebar);
};
HeightCounter += titlePanelEditNode.Height;
componentView = new ComponentView(sidebar, neoSidebar, 0, HeightCounter, ViewType.Link);
componentView.Width = neoSidebar.Width - 20;
componentView.insView.Height += componentView.insView.Height / 2;
neoSidebar.Width += 100;
neoSidebar.Width -= 100;
componentView.SwitchLink(link);
}
示例2: EditNodeWindow
private EditNodeWindow(Sidebar sidebar, ViewType viewType)
{
this.sidebar = sidebar;
this.manager = sidebar.manager;
neoSidebar = new NeoSidebar(manager);
neoSidebar.Init();
int tomtom = 5;
neoSidebar.ClientArea.BackColor = UserInterface.TomDark;
neoSidebar.BackColor = Color.Black;
neoSidebar.BevelBorder = BevelBorder.All;
Margins tomtomtomtom = new Margins(tomtom, tomtom, tomtom, tomtom);
neoSidebar.ClientMargins = tomtomtomtom;
neoSidebar.Left = sidebar.master.Left;
neoSidebar.Width = sidebar.Width;
neoSidebar.Top = 0;
neoSidebar.Resizable = false;
neoSidebar.Movable = false;
neoSidebar.Height = OrbIt.ScreenHeight;
neoSidebar.Text = "Edit";
manager.Add(neoSidebar);
int width = 120;
int offset = neoSidebar.Width - width - 20;
titlePanelEditNode = new TitlePanel(sidebar, neoSidebar, "Edit", true);
titlePanelEditNode.btnBack.Click += (s, e) =>
{
sidebar.groupsView.UpdateGroups();
manager.Remove(neoSidebar);
};
HeightCounter += titlePanelEditNode.Height;
lblName = new Label(manager);
lblName.Init();
lblName.Parent = neoSidebar;
lblName.Left = LeftPadding;
lblName.Top = HeightCounter;
lblName.Width = width;
txtName = new TextBox(manager);
txtName.Init();
txtName.Parent = neoSidebar;
txtName.Top = HeightCounter;
txtName.Width = width;
txtName.Left = offset;
HeightCounter += txtName.Height + LeftPadding;
txtName.TextColor = Color.Black;
txtName.Enabled = false;
componentView = new ComponentView(sidebar, neoSidebar, 0, HeightCounter, viewType);
componentView.Width = neoSidebar.Width - 20;
componentView.insView.Height += componentView.insView.Height / 2;
neoSidebar.Width += 100;
neoSidebar.Width -= 100;
}