Ejemplo n.º 1
0
        public void EventInit()
        {
            ToolStripButton pOKBtn = new ToolStripHelper().New("合格"
            , QX.Common.Properties.Resources.OK, new EventHandler(pOKBtn_Click));
            this.commonToolBar1.AddCustomControl(pOKBtn);

            ToolStripButton setWrongBtn = new ToolStripHelper().New("不合格"
            , QX.Common.Properties.Resources.delete, new EventHandler(setWrongBtn_Click));

            this.commonToolBar1.AddCustomControl(setWrongBtn);
        }
Ejemplo n.º 2
0
        public void AddSearchAllModule()
        {
            if (onSearchClicked != null)
            {
                DateTimePicker bDate = new DateTimePicker();
                bDate.Name = "bDate";
                DateTimePicker eDate = new DateTimePicker();
                eDate.Name = "eDate";
                ToolStripTextBox txtKey = new ToolStripTextBox();
                txtKey.Name = "Key";

                //时间控件
                ToolStripLabel tLabel = new ToolStripLabel();
                tLabel.Text = "开始时间:";
                AddCustomControl(0, tLabel);

                AddCDTPtoToolstrip(1, bDate);

                bDate.Value = DateTime.Now.AddMonths(-2);
                ToolStripLabel tLabel2 = new ToolStripLabel();
                tLabel2.Text = "结束时间:";

                AddCustomControl(2, tLabel2);

                AddCDTPtoToolstrip(3, eDate);
                eDate.Value = DateTime.Now.AddDays(1);
                //eDate.Value = DateTime.Now;
                ToolStripLabel tLabel3 = new ToolStripLabel();
                tLabel3.Text = "关键字:";

                AddCustomControl(4, tLabel3);

                AddCustomControl(5, txtKey);

                ToolStripHelper tsHelper = new ToolStripHelper();
                ToolStripButton SearchBtn = tsHelper.New("搜索", QX.Common.Properties.Resources.search, new EventHandler(SearchBtn_Click));
                AddCustomControl(6, SearchBtn);
            }
        }