当前位置: 首页>>代码示例>>C#>>正文


C# DevComponents类代码示例

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


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

示例1: Compare

 public int Compare(DevComponents.AdvTree.Node node1, DevComponents.AdvTree.Node node2)
 {
     if (node1 == null && node2 == null) return 0;
     else if (node1 == null && node2 != null) return -1;
     else if (node1 != null && node2 == null) return 1;
     else
     {
         if (node1.Tag is ArchAngel.Interfaces.Template.File &&
             node2.Tag is ArchAngel.Interfaces.Template.File)
             return ((ArchAngel.Interfaces.Template.File)node1.Tag).Name.CompareTo(((ArchAngel.Interfaces.Template.File)node2.Tag).Name);
         else if (node1.Tag is ArchAngel.Interfaces.Template.Folder &&
             node2.Tag is ArchAngel.Interfaces.Template.Folder)
             return ((ArchAngel.Interfaces.Template.Folder)node1.Tag).Name.CompareTo(((ArchAngel.Interfaces.Template.Folder)node2.Tag).Name);
         else if (node1.Tag is ArchAngel.Interfaces.Template.StaticFile &&
             node2.Tag is ArchAngel.Interfaces.Template.StaticFile)
             //return ((ArchAngel.Interfaces.Template.StaticFile)node1.Tag).Name.CompareTo(((ArchAngel.Interfaces.Template.StaticFile)node2.Tag).Name);
             return node1.Text.CompareTo(node2.Text);
         else
         {
             if (node1.Tag is ArchAngel.Interfaces.Template.Folder)
                 return -1;
             else if (node1.Tag is ArchAngel.Interfaces.Template.StaticFile)
                 return -1;
             else
                 return 1;
         }
         //return node1.Tag is ArchAngel.Interfaces.Template.Folder ? -1 : 1;
     }
 }
开发者ID:uQr,项目名称:Visual-NHibernate,代码行数:29,代码来源:TreelistNodeSort.cs

示例2: DisplayLabelItems

        public void DisplayLabelItems(DevComponents.DotNetBar.Controls.GroupPanel panel)
        {
            var itemlist = new ArrayList();

            for (int i = 0; i < panel.Controls.Count; i++)
            {
                if (panel.Controls[i] is Label)
                {
                    itemlist.Add(panel.Controls[i]);
                }
            }

            var values = new ArrayList
                             {
                                  FormatNumber(Math.Round(Strategyperformance.EntireTradesSum, 2)),
                                  FormatNumber(Math.Round(Strategyperformance.ProfitTradesSum, 2)),
                                 FormatNumber(Math.Round(Strategyperformance.LossTradesSum, 2)),
                                  FormatNumber(Math.Round(Strategyperformance.Profitability, 2)),
                                 FormatNumber(Math.Round(Strategyperformance.ProfitFactor, 2)),
                                  FormatNumber(Math.Round(Strategyperformance.AverageTrade, 4)),
                                 Strategyperformance.EntireTradesCount,
                                 Strategyperformance.ProfitTradesCount,
                                 Strategyperformance.LossTradesCount,
                                 MinDt.ToString("dd/MM/yyyy"),
                                 MaxDt.ToString("dd/MM/yyyy")
                             };

            for (int i = values.Count - 1; i >= 0; i--)
            {
                MethodInvoker action = delegate { ((Label)itemlist[(values.Count - 1) - i]).Text = values[i].ToString(); };
                ((Label)itemlist[(values.Count - 1) - i]).Invoke(action);
                //((Label)itemlist[(values.Count - 1) - i]).Text = values[i].ToString();
            }
        }
开发者ID:rlyalko,项目名称:REVERSALS_v14,代码行数:34,代码来源:SummaryDisplayer.cs

示例3: Compare

            public int Compare(DevComponents.AdvTree.Node node1, DevComponents.AdvTree.Node node2)
            {
                if (node1 == null && node2 == null)
                {
                    return 0;
                }
                else if (node1 == null && node2 != null)
                {
                    return (this._direction == SortDirection.Ascending) ? -1 : 1;
                }
                else if (node1 != null && node2 == null)
                {
                    return (this._direction == SortDirection.Ascending) ? 1 : -1;
                }
                else
                {
                    string node1Text = node1.Cells[ColumnIndex].Text;
                    string node2Text = node2.Cells[ColumnIndex].Text;

                    if (node1Text != node2Text)
                    {
                        // The names are not the same, so no need to check parameters
                        return (this._direction == SortDirection.Ascending) ? node1Text.CompareTo(node2Text) : node2Text.CompareTo(node1Text);
                    }
                    else // The names are equal, so need to check data-type as well
                    {
                        return (this._direction == SortDirection.Ascending) ? node1Text.CompareTo(node2Text) : node2Text.CompareTo(node1Text);
                    }
                }
            }
开发者ID:uQr,项目名称:Visual-NHibernate,代码行数:30,代码来源:TreelistUtility.cs

示例4: FrmOutEarth

 public FrmOutEarth(GSOGlobeControl globeControl, DevComponents.DotNetBar.Controls.DataGridViewX dataGridViewX11, ToolStripStatusLabel toolStripNumbers1)
 {
     InitializeComponent();
     globeControl1 = globeControl;
     dataGridViewX1 = dataGridViewX11;
     toolStripNumbers = toolStripNumbers1;
 }
开发者ID:StarU,项目名称:qkKL6Dgf12,代码行数:7,代码来源:FrmOutEarth.cs

示例5: ShowBorderForDragOver

 internal void ShowBorderForDragOver(DevComponents.DotNetBar.eBorderSide eSide)
 {
     this.panelEx1.Style.BorderWidth = 2;
     this.panelEx1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
     this.panelEx1.Style.BorderColor.Color = System.Drawing.Color.Red;
     this.panelEx1.Style.BorderSide = eSide;
 }
开发者ID:ca045065,项目名称:usercontrol-listcontrol,代码行数:7,代码来源:ControlBase.cs

示例6: DataConverTool

 public DataConverTool(DevComponents.DotNetBar.LabelX lab_progress, DevComponents.DotNetBar.LabelX lb, DevExpress.XtraEditors.MarqueeProgressBarControl progressBar, DevComponents.DotNetBar.Controls.RichTextBoxEx MessageShow,AxMapControl axMap)
 {
     this.axMapControl = axMap;
     this.lb = lb;
     this.lab_progress = lab_progress;
     this.progressBar = progressBar;
     this.MessageShow = MessageShow;
 }
开发者ID:AgentWord,项目名称:DataConverV2.0,代码行数:8,代码来源:DataConverTool.cs

示例7: DecScheduler

 /// <summary>
 /// pnl : 整個課表的 container
 /// schType : 課表類型
 /// 
 /// </summary>
 /// <param name="pnl"></param>
 /// <param name="schType"></param>
 public DecScheduler(DevComponents.DotNetBar.PanelEx pnl, SchedulerType schType)
 {
     this.pnlContainer = pnl;
     this.schType = schType;
     this.cells = new Dictionary<string, DevComponents.DotNetBar.PanelEx>();
     this.decPeriods = new Dictionary<string, DecPeriod>();
     this.headerCells = new Dictionary<string, DevComponents.DotNetBar.PanelEx>();
 }
开发者ID:KunHsiang,项目名称:ischedule,代码行数:15,代码来源:DecScheduler.cs

示例8: SortNodes

        public static void SortNodes(DevComponents.AdvTree.AdvTree treeList, TreelistNodeComparer comparer)
        {
            treeList.Nodes.Sort((IComparer)comparer);

            foreach (DevComponents.AdvTree.Node subNode in treeList.Nodes)
            {
                SortSubNodes(subNode, comparer);
            }
        }
开发者ID:uQr,项目名称:Visual-NHibernate,代码行数:9,代码来源:TreelistUtility.cs

示例9: SortSubNodes

        private static void SortSubNodes(DevComponents.AdvTree.Node node, TreelistNodeComparer comparer)
        {
            node.Nodes.Sort((IComparer)comparer);

            foreach (DevComponents.AdvTree.Node subNode in node.Nodes)
            {
                SortSubNodes(subNode, comparer);
            }
        }
开发者ID:uQr,项目名称:Visual-NHibernate,代码行数:9,代码来源:TreelistUtility.cs

示例10: CreateChildNode

 private DevComponents.AdvTree.Node CreateChildNode(Framework.Entity.Module module, System.Drawing.Image image, DevComponents.DotNetBar.ElementStyle subItemStyle)
 {
     DevComponents.AdvTree.Node childNode = new DevComponents.AdvTree.Node(module.Title);
     childNode.Image = image;
     childNode.Cells.Add(new DevComponents.AdvTree.Cell(module.Title, subItemStyle));
     childNode.Tag = module;
     childNode.NodeDoubleClick += new System.EventHandler(MnModify_Click);
     return childNode;
 }
开发者ID:callme119,项目名称:civil,代码行数:9,代码来源:UclModule.cs

示例11: cboMaTS_DataColumnCreated

 private void cboMaTS_DataColumnCreated(object sender, DevComponents.DotNetBar.Controls.DataColumnEventArgs e)
 {
     DevComponents.AdvTree.ColumnHeader header = e.ColumnHeader;
     if (header.DataFieldName == "TEN_TS")
     {
         header.Width.Relative = 50; // 20% of available width
     }
     else { header.Width.Relative = 50; }
 }
开发者ID:thanhphung901,项目名称:ketoan.app,代码行数:9,代码来源:ThemTSCD.cs

示例12: btnchedo_Click

 private void btnchedo_Click(object sender, DevComponents.DotNetBar.ClickEventArgs e)
 {
     frmchedo fcd = new frmchedo();
     panel_show.Show();
     panel_show.Controls.Clear();
     fcd.TopLevel = false;
     fcd.Dock = DockStyle.Fill;
     panel_show.Controls.Add(fcd);
     fcd.Show();
 }
开发者ID:yenxichha1993,项目名称:thuctapnhom,代码行数:10,代码来源:FrmMain.cs

示例13: btndmk_Click

 private void btndmk_Click(object sender, DevComponents.DotNetBar.ClickEventArgs e)
 {
     frmdoimatkhau fdm = new frmdoimatkhau();
     panel_show.Show();
     panel_show.Controls.Clear();
     fdm.TopLevel = false;
     fdm.Dock = DockStyle.Fill;
     panel_show.Controls.Add(fdm);
     fdm.Show();
 }
开发者ID:yenxichha1993,项目名称:thuctapnhom,代码行数:10,代码来源:FrmMain.cs

示例14: SetRowNum

 public static void SetRowNum(DevComponents.DotNetBar.Controls.DataGridViewX dgv)
 {
     dgv.RowPostPaint += (s, e) =>
     {
         using (SolidBrush b = new SolidBrush(Color.Black))
         {
             e.Graphics.DrawString((e.RowIndex + 1).ToString(), e.InheritedRowStyle.Font, b, e.RowBounds.Location.X + 12, e.RowBounds.Location.Y + 6);
         }
     };
 }
开发者ID:hefju,项目名称:JuBuilder,代码行数:10,代码来源:WinUI.cs

示例15: PaintButtonBackground

        protected override void PaintButtonBackground(PaintInfo p, DevComponents.DotNetBar.Rendering.Office2007ButtonItemStateColorTable ct)
        {
            base.PaintButtonBackground(p, ct);

            if (this.Text.Length == 0 && this.Image == null)
            {
                using (SolidBrush brush = new SolidBrush(ct.Text))
                    p.Graphics.FillPolygon(brush, Office2007ButtonItemPainter.GetExpandPolygon(this.RenderBounds, ePopupSide.Default));
            }
        }
开发者ID:huamanhtuyen,项目名称:VNACCS,代码行数:10,代码来源:VisualDropDownButton.cs


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