• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# Aga类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Aga的典型用法代码示例。如果您正苦于以下问题:C# Aga类的具体用法?C# Aga怎么用?C# Aga使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Aga类属于命名空间,在下文中一共展示了Aga类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: GetValue

 public override object GetValue(Aga.Controls.Tree.TreeNodeAdv node)
 {
     ValueEntry ent = node.Tag as ValueEntry;
     if (ent == null)
         return "";//if this is not a value entry, value is not relevant
     Entry linked = FormattedReader.ParseRef(ent, ent.Link);
     return ent.Value + (ent.Link != null && linked != null ? " (" + FormattedReader.ParseValueRefs(linked, linked.FriendlyName) + ")" : "");
 }
开发者ID:yuo123,项目名称:CK2Editor,代码行数:8,代码来源:EntryValueNodeText.cs


示例2: GetToolTip

        public string GetToolTip(TreeNodeAdv node, Aga.Controls.Tree.NodeControls.NodeControl nodeControl)
        {
            var pNode = _tree.FindNode(node);

            if (pNode != null)
                return pNode.GetTooltipText(this);
            else
                return "";
        }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:9,代码来源:ProcessToolTipProvider.cs


示例3: GetToolTip

			public string GetToolTip(TreeNodeAdv node, Aga.Controls.Tree.NodeControls.NodeControl nodeControl)
			{
				NodeBase dataNode = node.Tag as NodeBase;
				GameObjectNode objNode = dataNode as GameObjectNode;

				if (dataNode.LinkState == NodeBase.PrefabLinkState.None) return null;
				if (objNode == null) return null;
				if (objNode.Obj.PrefabLink == null) return null;

				return String.Format(PluginRes.EditorBaseRes.SceneView_PrefabLink, objNode.Obj.PrefabLink.Prefab.Path);
			}
开发者ID:Banbury,项目名称:duality,代码行数:11,代码来源:SceneView.cs


示例4: btx_DrawText

        /// <summary>
        /// Funkcja obsługująca zdarzenie DrawText na NodeControlle. Bierze status Tasku i zmienia kolor
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void btx_DrawText(object sender, Aga.Controls.Tree.NodeControls.DrawEventArgs e)
        {
            Task t = e.Node.Tag as Task;
            Task.TaskStatus status = Task.TaskStatus.ERROR;
            Color c = Color.Violet;

            if (t != null)
            {
                status = t.Status;
            }
            e.TextColor = getColorByTaskStatus(status);
        }
开发者ID:masterspambot,项目名称:MyProject,代码行数:17,代码来源:ProjectForm.cs


示例5: MouseDoubleClick

        public override void MouseDoubleClick(Aga.Controls.Tree.TreeNodeAdvMouseEventArgs args)
        {
            base.MouseDoubleClick(args);
            if (args.Node.Tag != null && !(args.Node.Tag is ValueEntry))
                return;//if this is not a value entry, value is not relevant

            ValueEntry ent = (ValueEntry)args.Node.Tag;
            if (ent == null)
            {//this is the "add new entry" button
                this.BeginEdit();
            }
            else
            {
                FileEditorGUI egui = (FileEditorGUI)this.Parent.Model;
                egui.GotoLink(ent.Link, args.Node);
            }
        }
开发者ID:yuo123,项目名称:CK2Editor,代码行数:17,代码来源:EntryValueNodeText.cs


示例6: nodeTextBoxName_DrawText

        private void nodeTextBoxName_DrawText(object sender, Aga.Controls.Tree.NodeControls.DrawTextEventArgs e)
        {
            if (e.Context.Bounds.IsEmpty) return;
            NodeBase node = e.Node.Tag as NodeBase;

            ComponentNode cmpNode = node as ComponentNode;
            GameObjectNode objNode = (cmpNode != null ? cmpNode.Parent : node) as GameObjectNode;
            DesignTimeObjectData data = objNode != null ? DesignTimeObjectData.Get(objNode.Obj) : null;
            bool lockedOrHidden = data != null ? data.IsLocked || data.IsHidden : false;

            // Prefab-linked entities
            if (lockedOrHidden)
                e.TextColor = Color.FromArgb(96, 96, 96);
            else if (node.LinkState == NodeBase.PrefabLinkState.Active)
                e.TextColor = Color.Blue;
            else if (node.LinkState == NodeBase.PrefabLinkState.Broken)
                e.TextColor = Color.DarkRed;
            else
                e.TextColor = Color.Black;

            // Flashing
            if (node == this.flashNode)
            {
                float intLower = this.flashIntensity;
                Color hlBase = Color.FromArgb(224, 64, 32);
                Color hlLower = Color.FromArgb(
                    (int)(this.objectView.BackColor.R * (1.0f - intLower) + hlBase.R * intLower),
                    (int)(this.objectView.BackColor.G * (1.0f - intLower) + hlBase.G * intLower),
                    (int)(this.objectView.BackColor.B * (1.0f - intLower) + hlBase.B * intLower));
                e.BackgroundBrush = new SolidBrush(hlLower);
            }
        }
开发者ID:ChrisLakeZA,项目名称:duality,代码行数:32,代码来源:SceneView.cs


示例7: nodeTextBox1_DrawText

 void nodeTextBox1_DrawText(object sender, Aga.Controls.Tree.NodeControls.DrawEventArgs e)
 {
     DebugNode node = e.Node.Tag as DebugNode;
     if (node.Changed)
     {
         e.TextColor = Color.Red;
     }
 }
开发者ID:zobo,项目名称:xdebugclient,代码行数:8,代码来源:ProperyControl.cs


示例8: nodeStateIcon_DrawIcon

        private void nodeStateIcon_DrawIcon(object sender, Aga.Controls.Tree.NodeControls.DrawIconEventArgs e)
        {
            if (e.Context.Bounds.IsEmpty) return;
            NodeBase node = e.Node.Tag as NodeBase;

            ComponentNode cmpNode = node as ComponentNode;
            GameObjectNode objNode = (cmpNode != null ? cmpNode.Parent : node) as GameObjectNode;
            DesignTimeObjectData data = objNode != null ? DesignTimeObjectData.Get(objNode.Obj) : null;
            bool lockedOrHidden = data != null ? data.IsLocked || data.IsHidden : false;

            if (lockedOrHidden) e.IconColorMatrix = this.inactiveIconMatrix;
        }
开发者ID:ChrisLakeZA,项目名称:duality,代码行数:12,代码来源:SceneView.cs


示例9: OnFragmentTreeItemDoubleClick

 private void OnFragmentTreeItemDoubleClick(object sender, Aga.Controls.Tree.TreeNodeAdvMouseEventArgs e)
 {
     if (e.Node != null && e.Node.Tag is TreeViewArchiveModel.ParameterStructItem)
     {
         ShaderParameterUtil.EditParameter(graphControl, ((TreeViewArchiveModel.ParameterStructItem)e.Node.Tag).ArchiveName);
     }
 }
开发者ID:ldh9451,项目名称:XLE,代码行数:7,代码来源:ExampleForm.cs


示例10: nodeCheckBox1_IsVisibleValueNeeded

 private void nodeCheckBox1_IsVisibleValueNeeded(object sender, Aga.Controls.Tree.NodeControls.NodeControlValueEventArgs e)
 {
     e.Value = e.Node.Tag is MyDebugTaskNode;
 }
开发者ID:Jlaird,项目名称:BrainSimulator,代码行数:4,代码来源:DebugForm.cs


示例11: nodeTextBoxObjId_DrawText

		private void nodeTextBoxObjId_DrawText(object sender, Aga.Controls.Tree.NodeControls.DrawTextEventArgs e)
		{
			DataTreeNode node = e.Node.Tag as DataTreeNode;
			ObjectRefTreeNode objRefNode = node as ObjectRefTreeNode;
			if (e.Text == "0") 
				e.TextColor = SystemColors.GrayText;
			else if (objRefNode != null)
			{
				if (this.IsObjectIdExisting(objRefNode.ObjId))
					e.TextColor = Color.Blue;
				else 
					e.TextColor = Color.Red;
			}
			else
				e.TextColor = Color.Black;
		}
开发者ID:Banbury,项目名称:duality,代码行数:16,代码来源:ResourceHacker.cs


示例12: treeViewAdv1_NodeMouseDoubleClick

		private void treeViewAdv1_NodeMouseDoubleClick(object sender, Aga.Controls.Tree.TreeNodeAdvMouseEventArgs e)
		{
			Console.WriteLine("DblClick {0}", e.Node);
		}
开发者ID:montague247,项目名称:treeviewadv,代码行数:4,代码来源:ColumnHandling.cs


示例13: nodeTextBoxValue_DrawText

		private void nodeTextBoxValue_DrawText(object sender, Aga.Controls.Tree.NodeControls.DrawTextEventArgs e)
		{
			e.TextColor = Color.Black;
		}
开发者ID:Banbury,项目名称:duality,代码行数:4,代码来源:ResourceHacker.cs


示例14:

 string IToolTipProvider.GetToolTip(TreeNodeAdv viewNode, Aga.Controls.Tree.NodeControls.NodeControl nodeControl)
 {
     IEditorAction action = this.GetResourceOpenAction(viewNode, false);
     if (action != null) return string.Format(
         Duality.Editor.Plugins.ProjectView.Properties.ProjectViewRes.ProjectFolderView_Help_Doubleclick,
         action.Description);
     else return null;
 }
开发者ID:priyanshus1,项目名称:duality,代码行数:8,代码来源:ProjectFolderView.cs


示例15: OnNodeDrawText

        void OnNodeDrawText(object sender, Aga.Controls.Tree.NodeControls.DrawEventArgs e)
        {
            if (e.Node.Tag == null)
                return;

            var ocolor = PropertyService.Get(ConfigProperties.OpenColor, Color.LightGreen);
            var dcolor = PropertyService.Get(ConfigProperties.DirtyColor, Color.Pink);

            var item = (RepositoryItem)e.Node.Tag;
            var ctx = e.Context;
            if (item.ClipboardState != RepositoryItem.ClipboardAction.None)
            {
                var oldFont = e.Font;
                e.Font = new Font(oldFont.FontFamily, oldFont.Size, oldFont.Style | FontStyle.Italic);
            }
            if (item.IsDirty)
                e.BackgroundBrush = new SolidBrush(dcolor);
            else if (item.IsOpen)
                e.BackgroundBrush = new SolidBrush(ocolor);
        }
开发者ID:kanbang,项目名称:Colt,代码行数:20,代码来源:SiteExplorer.cs


示例16: OnFragmentTreeItemDoubleClick

 private void OnFragmentTreeItemDoubleClick(object sender, Aga.Controls.Tree.TreeNodeAdvMouseEventArgs e)
 {
     // if (e.Node != null && e.Node.Tag is NodeEditorCore.ShaderFragmentArchiveModel.ParameterStructItem)
     // {
     //     NodeEditorCore.ShaderParameterUtil.EditParameter(_hyperGraphModel, ((NodeEditorCore.ShaderFragmentArchiveModel.ParameterStructItem)e.Node.Tag).ArchiveName);
     // }
 }
开发者ID:coreafive,项目名称:XLE,代码行数:7,代码来源:ExampleForm.cs


示例17: tree_DrawControl

        private void tree_DrawControl(object sender, Aga.Controls.Tree.NodeControls.DrawEventArgs e)
        {
            var item = e.Node.Tag as BaseItem;
            var groupItem = item as GroupItem;
            var regGroupItem = item as RegisterGroupItem;
            var registerItem = item as RegisterItem;
            var fieldItem = item as FieldItem;
            var control = e.Control as BindableControl;

            if (item == null || control == null) return;

            switch (control.DataPropertyName)
            {
                case "Bin":
                    e.Text = item.FormatBin();
                    e.TextColor = (item.Changed) ? System.Drawing.Color.Red : System.Drawing.SystemColors.ControlText;
                    break;
                case "Hex":
                    e.Text = item.FormatHex();
                    e.TextColor = (item.Changed) ? System.Drawing.Color.Red : System.Drawing.SystemColors.ControlText;
                    break;
                case "Reset":
                    e.Text = item.FormatReset();
                    break;
                case "Address":
                    e.Text = item.FormatAddress();
                    break;
                case "Description":
                    if (fieldItem != null)
                        e.Text = fieldItem.Interpretation();
                    break;
            }
        }
开发者ID:Erguotou,项目名称:EmbSysRegViewSharp,代码行数:33,代码来源:EmbSysRegViewMain.cs


示例18: treeProcesses_NodeMouseDoubleClick

        private void treeProcesses_NodeMouseDoubleClick(object sender, Aga.Controls.Tree.TreeNodeAdvMouseEventArgs e)
        {
            var pNode = treeProcesses.FindNode(e.Node);

            this.ShowProperties(pNode.ProcessItem);
        }
开发者ID:john-peterson,项目名称:processhacker,代码行数:6,代码来源:DumpHackerWindow.cs


示例19: GrtTreeModel

        /// <summary>
        /// The constructor that has to be overwritten in the derived model classes
        /// </summary>
        /// <param name="TreeView">The TreeViewAdv control this model is used for</param>
        /// <param name="GrtTree">The GRT tree this model is representing</param>
        /// <param name="StateIcon">The NodeStateIcon Node Control that displays the icon</param>
        /// <param name="DynamicContextMenu">Use context menu definition provided by backend</param>
        protected GrtTreeModel(TreeViewAdv TreeView, MySQL.Grt.TreeModelWrapper GrtTree, Aga.Controls.Tree.NodeControls.NodeStateIcon NodeStateIcon, bool DynamicContextMenu)
            : this(TreeView, GrtTree, DynamicContextMenu)
        {
            nodeStateIcon = NodeStateIcon;

              if (nodeStateIcon != null)
              {
            // Ensure that the VirtualMode is enabled
            nodeStateIcon.VirtualMode = true;

            // Assign virtual value events for displaying and processing the edited value content
            nodeStateIcon.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(StateIconNeeded);
              }
        }
开发者ID:abibell,项目名称:mysql-workbench,代码行数:21,代码来源:GrtTreeModel.cs


示例20: default_NodeMouseDoubleClick

 void default_NodeMouseDoubleClick(object sender, Aga.Controls.Tree.TreeNodeAdvMouseEventArgs e)
 {
     if (e.Node != null && e.Node.Tag != null)
       {
     if (e.Control is AdvNodeTextBox)
     {
       AdvNodeTextBox tbox = e.Control as AdvNodeTextBox;
       tbox.BeginEdit();
     }
     else if (e.Control is AdvNodeComboBox)
     {
       AdvNodeComboBox tbox = e.Control as AdvNodeComboBox;
       tbox.BeginEdit();
     }
       }
 }
开发者ID:abibell,项目名称:mysql-workbench,代码行数:16,代码来源:DbMysqlTableEditor.cs



注:本文中的Aga类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Agent类代码示例发布时间:2022-05-24
下一篇:
C# AfterPipeline类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap