• 大小: 0.72M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: DevExpress  dev  ss  界面  开发  

资源简介

DevExpress控件组件能开发出专业界面,但组件属性繁多,入门不易。本例程提供了复杂表格控件bandGridView,状态条,工具栏barmanage、容器panelControl,groupControl的应用,并提供了自定义控件的开发过程。仅供参考。

【核心代码】

   void InitTaskInfo()
        {
            CTaskInfo cTaskInfo = new CTaskInfo();
            cTaskInfo.TaskNumber = 1;
            cTaskInfo.TaskTime = DateTime.Now;
            cTaskInfo.BundleNumber = 2;
            cTaskInfo.SX = 123.45f;
            cTaskInfo.SY = 235.89f;
            cTaskInfo.SZ = 4.5f;
            cTaskInfo.SP = 56.98f;
            cTaskInfo.EX = 346.55f;
            cTaskInfo.EY = 29.78f;
            cTaskInfo.EZ = 45.98f;
            cTaskInfo.EP = 678.48f;
           // cTaskInfo.TaskTitle = "任务状态";
            cTaskInfo.TaskStatus = "正在执行";
           // cTaskInfo.ConnentTitle = "连接状态";
            cTaskInfo.ConnectStatus = "已经连接";



            TaskNumber.Caption = cTaskInfo.TaskNumber.ToString();
            TaskTime.Caption = DateTime.Now.ToShortTimeString();
            BundleNumber.Caption = cTaskInfo.BundleNumber.ToString();

            SX.Caption = cTaskInfo.SX.ToString();
            SX.AppearanceHeader.BackColor = Color.Lime;

            SY.Caption = cTaskInfo.SY.ToString();
            SY.AppearanceHeader.BackColor = Color.Lime;

            SZ.Caption = cTaskInfo.SZ.ToString();
            SZ.AppearanceHeader.BackColor = Color.Lime;

            SP.Caption = cTaskInfo.SP.ToString();
            SP.AppearanceHeader.BackColor = Color.Lime;

            EX.Caption = cTaskInfo.EX.ToString();
            EX.AppearanceHeader.BackColor = Color.Lime;

            EY.Caption = cTaskInfo.EY.ToString();
            EY.AppearanceHeader.BackColor = Color.Lime;

            EZ.Caption = cTaskInfo.EZ.ToString();
            EZ.AppearanceHeader.BackColor = Color.Lime;

            EP.Caption = cTaskInfo.EP.ToString();
            EP.AppearanceHeader.BackColor = Color.Lime;

            TaskStatus.Caption = cTaskInfo.TaskStatus;
            TaskStatus.AppearanceHeader.BackColor = Color.Lime;

            ConnectStatus.Caption = cTaskInfo.ConnectStatus;
            ConnectStatus.AppearanceHeader.BackColor = Color.Lime;

            DateTimeBand.Caption = DateTime.Now.ToString("HH") ":" DateTime.Now.ToString("mm") ":" DateTime.Now.ToString("ss") " " DateTime.Now.ToString("dddd") Environment.NewLine   DateTime.Now.ToString("yyyy年MM月dd日");

            advBandedGridView1.PaintStyleName = "Web";



        }

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BridgeCraneSystem
{
    public partial class Form1 : DevExpress.XtraEditors.XtraForm
    {

        //BindingList itemsBindingList = new BindingList();
        //List itemsList = new List();
        //BindingSource bs = new BindingSource();

        public Form1()
        {
            InitializeComponent();
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     200192  2019-10-11 17:19  BridgeCraneSystem\BridgeCraneSystem\bin\Debug\BridgeCraneSystem.exe

     文件      77312  2019-10-11 17:19  BridgeCraneSystem\BridgeCraneSystem\bin\Debug\BridgeCraneSystem.pdb

     文件      22984  2019-10-11 17:19  BridgeCraneSystem\BridgeCraneSystem\bin\Debug\BridgeCraneSystem.vshost.exe

     文件        490  2019-03-19 12:46  BridgeCraneSystem\BridgeCraneSystem\bin\Debug\BridgeCraneSystem.vshost.exe.manifest

     文件       8678  2019-10-11 15:52  BridgeCraneSystem\BridgeCraneSystem\BridgeCraneSystem.csproj

     文件       1366  2019-10-10 17:34  BridgeCraneSystem\BridgeCraneSystem\Components\AppConst.cs

     文件       3040  2019-10-11 17:17  BridgeCraneSystem\BridgeCraneSystem\Controls\SportDataView.cs

     文件       8559  2019-10-11 17:09  BridgeCraneSystem\BridgeCraneSystem\Controls\SportDataView.Designer.cs

     文件       5817  2019-10-11 17:09  BridgeCraneSystem\BridgeCraneSystem\Controls\SportDataView.resx

     文件       2598  2019-10-09 14:08  BridgeCraneSystem\BridgeCraneSystem\Data\CTaskInfo.cs

     文件      12636  2019-10-11 17:20  BridgeCraneSystem\BridgeCraneSystem\Form\Mainform.cs

     文件      87089  2019-10-11 17:16  BridgeCraneSystem\BridgeCraneSystem\Form\Mainform.Designer.cs

     文件      10162  2019-10-11 17:16  BridgeCraneSystem\BridgeCraneSystem\Form\Mainform.resx

     文件        590  2019-09-29 16:13  BridgeCraneSystem\BridgeCraneSystem\Form1.cs

     文件      12925  2019-09-29 15:45  BridgeCraneSystem\BridgeCraneSystem\Form1.Designer.cs

     文件       9493  2019-09-29 15:45  BridgeCraneSystem\BridgeCraneSystem\Form1.resx

     文件        180  2019-10-11 17:09  BridgeCraneSystem\BridgeCraneSystem\obj\Debug\BridgeCraneSystem.Controls.SportDataView.resources

     文件        843  2019-10-11 17:19  BridgeCraneSystem\BridgeCraneSystem\obj\Debug\BridgeCraneSystem.csproj.FileListAbsolute.txt

     文件       2730  2019-10-11 17:16  BridgeCraneSystem\BridgeCraneSystem\obj\Debug\BridgeCraneSystem.csproj.GenerateResource.Cache

     文件     200192  2019-10-11 17:19  BridgeCraneSystem\BridgeCraneSystem\obj\Debug\BridgeCraneSystem.exe

     文件        714  2019-10-11 17:19  BridgeCraneSystem\BridgeCraneSystem\obj\Debug\bridgecranesystem.exe.licenses

     文件       2787  2019-10-11 17:16  BridgeCraneSystem\BridgeCraneSystem\obj\Debug\BridgeCraneSystem.Form.Mainform.resources

     文件       2589  2019-10-11 17:09  BridgeCraneSystem\BridgeCraneSystem\obj\Debug\BridgeCraneSystem.Form1.resources

     文件      77312  2019-10-11 17:19  BridgeCraneSystem\BridgeCraneSystem\obj\Debug\BridgeCraneSystem.pdb

     文件     140115  2019-10-11 17:09  BridgeCraneSystem\BridgeCraneSystem\obj\Debug\BridgeCraneSystem.Properties.Resources.resources

     文件     140965  2019-10-11 17:19  BridgeCraneSystem\BridgeCraneSystem\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件      10723  2019-10-11 15:50  BridgeCraneSystem\BridgeCraneSystem\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件          0  2019-09-29 14:30  BridgeCraneSystem\BridgeCraneSystem\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2019-09-29 14:30  BridgeCraneSystem\BridgeCraneSystem\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

     文件          0  2019-09-29 14:30  BridgeCraneSystem\BridgeCraneSystem\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

............此处省略67个文件信息

评论

共有 条评论