本文整理汇总了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;
}
}
示例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();
}
}
示例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);
}
}
}
示例4: FrmOutEarth
public FrmOutEarth(GSOGlobeControl globeControl, DevComponents.DotNetBar.Controls.DataGridViewX dataGridViewX11, ToolStripStatusLabel toolStripNumbers1)
{
InitializeComponent();
globeControl1 = globeControl;
dataGridViewX1 = dataGridViewX11;
toolStripNumbers = toolStripNumbers1;
}
示例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;
}
示例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;
}
示例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>();
}
示例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);
}
}
示例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);
}
}
示例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;
}
示例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; }
}
示例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();
}
示例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();
}
示例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);
}
};
}
示例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));
}
}