Exemple #1
0
 private void Add路线属性()
 {
     ListBoxEx con = new ListBoxEx {
         Width = 160,
         Height = 100,
         ItemHeight = 16
     };
     ListBoxItem item = new ListBoxItem("根据时间", "0") {
         Tag = 1
     };
     ListBoxItem item2 = new ListBoxItem("进路线报警给驾驶员", "2") {
         Tag = 4
     };
     ListBoxItem item3 = new ListBoxItem("进路线报警给平台", "3") {
         Tag = 8
     };
     ListBoxItem item4 = new ListBoxItem("出路线报警给驾驶员", "4") {
         Tag = 16
     };
     ListBoxItem item5 = new ListBoxItem("出路线报警给平台", "5") {
         Tag = 32
     };
     con.DrawMode = DrawMode.OwnerDrawFixed;
     con.FormattingEnabled = true;
     con.IsCheckBox = true;
     con.SelectionMode = SelectionMode.MultiSimple;
     con.Items.AddRange(new object[] { item, item2, item3, item4, item5 });
     this._路线属性 = new AutoDropDown(con);
     base.Controls.Add(this._路线属性);
     this._路线属性.VisibilityChange += new VisibleChanged(this._路线属性_VisibilityChange);
 }
Exemple #2
0
 private void Add路线属性()
 {
     ListBoxEx listBoxEx = new ListBoxEx()
     {
         Width = 160,
         Height = 100,
         ItemHeight = 16
     };
     ListBoxItem listBoxItem = new ListBoxItem("根据时间", "0")
     {
         Tag = 1
     };
     ListBoxItem listBoxItem1 = new ListBoxItem("进路线报警给驾驶员", "2")
     {
         Tag = 4
     };
     ListBoxItem listBoxItem2 = new ListBoxItem("进路线报警给平台", "3")
     {
         Tag = 8
     };
     ListBoxItem listBoxItem3 = new ListBoxItem("出路线报警给驾驶员", "4")
     {
         Tag = 16
     };
     ListBoxItem listBoxItem4 = new ListBoxItem("出路线报警给平台", "5")
     {
         Tag = 32
     };
     listBoxEx.DrawMode = DrawMode.OwnerDrawFixed;
     listBoxEx.FormattingEnabled = true;
     listBoxEx.IsCheckBox = true;
     listBoxEx.SelectionMode = SelectionMode.MultiSimple;
     ListBox.ObjectCollection items = listBoxEx.Items;
     object[] objArray = new object[] { listBoxItem, listBoxItem1, listBoxItem2, listBoxItem3, listBoxItem4 };
     items.AddRange(objArray);
     this._路线属性 = new AutoDropDown(listBoxEx);
     base.Controls.Add(this._路线属性);
     this._路线属性.VisibilityChange += new VisibleChanged(this._路线属性_VisibilityChange);
 }
 private void Add区域属性()
 {
     ListBoxEx con = new ListBoxEx {
         Width = 160,
         Height = 140,
         ItemHeight = 16
     };
     ListBoxItem item = new ListBoxItem("根据时间", "0");
     ListBoxItem item2 = new ListBoxItem("限速", "1");
     ListBoxItem item3 = new ListBoxItem("进区域报警给驾驶员", "2");
     ListBoxItem item4 = new ListBoxItem("进区域报警给平台", "3");
     ListBoxItem item5 = new ListBoxItem("出区域报警给驾驶员", "4");
     ListBoxItem item6 = new ListBoxItem("出区域报警给平台", "5");
     ListBoxItem item7 = new ListBoxItem("南纬", "6");
     ListBoxItem item8 = new ListBoxItem("西经", "7");
     con.DrawMode = DrawMode.OwnerDrawFixed;
     con.FormattingEnabled = true;
     con.IsCheckBox = true;
     con.SelectionMode = SelectionMode.MultiSimple;
     con.Items.AddRange(new object[] { item, item2, item3, item4, item5, item6, item7, item8 });
     this._区域属性 = new AutoDropDown(con);
     base.Controls.Add(this._区域属性);
     this._区域属性.VisibilityChange += new VisibleChanged(this._区域属性_VisibilityChange);
 }
Exemple #4
0
 private void Add路线属性()
 {
     ListBoxEx con = new ListBoxEx();
     Client.ListBoxItem item = new Client.ListBoxItem("根据时间", "0");
     Client.ListBoxItem item2 = new Client.ListBoxItem("限速", "1");
     Client.ListBoxItem item3 = new Client.ListBoxItem("进区域报警给驾驶员", "2");
     Client.ListBoxItem item4 = new Client.ListBoxItem("进区域报警给平台", "3");
     Client.ListBoxItem item5 = new Client.ListBoxItem("出区域报警给驾驶员", "4");
     Client.ListBoxItem item6 = new Client.ListBoxItem("出区域报警给平台", "5");
     con.DrawMode = DrawMode.OwnerDrawFixed;
     con.FormattingEnabled = true;
     con.IsCheckBox = true;
     con.SelectionMode = SelectionMode.MultiSimple;
     con.Items.AddRange(new object[] { item, item2, item3, item4, item5, item6 });
     this._路线属性 = new AutoDropDown(con);
     base.Controls.Add(this._路线属性);
     this._路线属性.VisibilityChange += new VisibleChanged(this._路线属性_VisibilityChange);
 }