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

C# DevComponents类代码示例

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

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



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


示例16: CheckPara

        private bool CheckPara( DevComponents .DotNetBar .TabItem  lTab)
        {
            bool IsOK;
            IsOK = true;

            foreach (Control  lText in lTab.AttachedControl.Controls)
            {
                if (lText.Name.ToUpper().StartsWith("TEXTBOX"))
                {
                    switch (lText.Name.ToUpper())
                    {
                        case "TEXTBOX1":
                        case "TEXTBOX2":
                        case "TEXTBOX3":
                        case "TEXTBOX7":
                        case "TEXTBOX6":
                        //case "TEXTBOX5":

                        //    if (lText.Text.Length == 0) IsOK = false;
                        //    break;

                        case "COMBOBOXEX1":

                            if (lText.Text.Length == 0) IsOK = false;
                            break;
                    }
                    if (IsOK == false)
                    {
                        switch (lText.Name.ToUpper())
                        {
                            case "TEXTBOX1":
                            case "TEXTBOX2":
                            case "TEXTBOX3":
                            case "TEXTBOX7":
                                MessageBox.Show("请输入连接数据库的参数!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                                lText.Focus();
                                break;
                            case "TEXTBOX6":
                            //case "TEXTBOX5":
                            //    MessageBox.Show("请输入用户号和密码!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                            //    lText.Focus();
                            //    break;
                            case "COMBOBOXEX1":

                                MessageBox.Show("请输入用户号和密码!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                                lText.Focus();
                                break;
                        }
                        break;
                    }

                }
            }
            return IsOK;
        }
开发者ID:TJWHProject,项目名称:LiebaoCMBManage,代码行数:55,代码来源:frmlogin.cs


示例17: superTabControlRegion_SelectedTabChanging

        private void superTabControlRegion_SelectedTabChanging(object sender, DevComponents.DotNetBar.SuperTabStripSelectedTabChangingEventArgs e)
        {
            DevComponents.DotNetBar.SuperTabItem currentItem = e.NewValue as DevComponents.DotNetBar.SuperTabItem;

            RegionDataInfo regionData = currentItem.Tag as RegionDataInfo;

            if (!m_RegionControlCache[regionData.RegionID].LoadFinish)
            {
                //未加载
                //需要进行数据加载
                LazyLoadSingleRegion(regionData.RegionID);
            }
        }
开发者ID:FeelingMars,项目名称:DispatchPlatform,代码行数:13,代码来源:FromRegionView.cs


示例18: ContextMenuBar_PopupOpen

 private void ContextMenuBar_PopupOpen(object sender, DevComponents.DotNetBar.PopupOpenEventArgs e)
 {
     if (AdvTree.SelectedNode == null)
     {
         MnDelete.Enabled = false;
         MnModify.Enabled = false;
     }
     else
     {
         MnDelete.Enabled = true;
         MnModify.Enabled = true;
     }
 }
开发者ID:callme119,项目名称:civil,代码行数:13,代码来源:UclModel.cs


示例19: CreateChapter

 private void CreateChapter(int pid, DevComponents.AdvTree.Node rootNode)
 {
     System.Collections.ArrayList nodeList = contentService.GetChapterByPid(pid, Framework.Entity.Project.Type);
     foreach (Framework.Entity.Chapter child in nodeList)
     {
         DevComponents.AdvTree.Node node = new DevComponents.AdvTree.Node(child.Title);
         node.Cells.Add(new DevComponents.AdvTree.Cell(child.Description));
         node.Cells.Add(new DevComponents.AdvTree.Cell(GetState(child.State)));
         node.Tag = child;
         node.Expanded = false;
         node.NodeDoubleClick += new System.EventHandler(MnModify_Click);
         rootNode.Nodes.Add(node);
         CreateChapter(child.Id, node);
     }
 }
开发者ID:callme119,项目名称:civil,代码行数:15,代码来源:UclChapter.cs


示例20: checkso

 private void checkso(DevComponents.DotNetBar.Controls.TextBoxX txtGia)
 {
     if (txtGia.Text != null)
     {
         try
         {
             string tam = txtGia.Text.Replace(",", "");
             a = float.Parse(tam);
         }
         catch
         {
             MessageBox.Show("Không được điền chữ");
             txtGia.Text = "";
         }
     }
 }
开发者ID:chutinhha,项目名称:viet-restaurant,代码行数:16,代码来源:GiamGia.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# DotNetBar.ButtonX类代码示例发布时间:2022-05-24
下一篇:
C# Dev2JsonSerializer类代码示例发布时间: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