コード例 #1
1
        /// <summary>
        /// 打印共用条码
        /// </summary>
        /// <returns></returns>
        bool btnPrintAbount(int p_ReportPrintType)
        {
            this.BaseFocusLabel.Focus();
            DevComponents.DotNetBar.ComboBoxItem ci = this.ToolBarCItemGet(-1, ToolButtonName.drpPrintFile.ToString());
            if (ci.SelectedItem == null)
            {
                this.ShowMessage("请选择报表模板");
                return(false);
            }
            int tempReportID = SysConvert.ToInt32(((DevComponents.Editors.ComboItem)ci.SelectedItem).Tag);

            if (tempReportID == 1)
            {
                this.ShowMessage("请选择报表模板");
                return(false);
            }
            string sql = "SELECT * FROM UV2_Dev_GBJCLRDts WHERE 1=1";

            if (SysConvert.ToInt32(drpGBStatusID.EditValue) != 0)
            {
                sql += " AND GBStatusID=" + SysString.ToDBString(SysConvert.ToInt32(drpGBStatusID.EditValue));
            }
            sql += " AND MainID=" + SysConvert.ToInt32(HTDataID);

            DataTable dt = SysUtils.Fill(sql);

            FastReportX.ReportRunTable(tempReportID, p_ReportPrintType, dt);

            return(true);
        }
コード例 #2
0
ファイル: frmGBGH.cs プロジェクト: zhp-apeng/HTMLTERP
        /// <summary>
        /// 打印共用条码
        /// </summary>
        /// <returns></returns>
        bool btnPrintAbount(int p_ReportPrintType)
        {
            this.BaseFocusLabel.Focus();
            string GBCodeStr = "";

            for (int i = 0; i < gridView1.RowCount; i++)
            {
                if (SysConvert.ToString(gridView1.GetRowCellValue(i, "GBCode")) != "")
                {
                    if (GBCodeStr != "")
                    {
                        GBCodeStr += ",";
                    }
                    GBCodeStr += SysString.ToDBString(SysConvert.ToString(gridView1.GetRowCellValue(i, "GBCode")));
                }
            }

            if (GBCodeStr == "")
            {
                this.ShowMessage("没有归还数据");
                return(false);
            }

            DevComponents.DotNetBar.ComboBoxItem ci = this.ToolBarCItemGet(-1, ToolButtonName.drpPrintFile.ToString());
            if (ci.SelectedItem == null)
            {
                this.ShowMessage("请选择报表模板");
                return(false);
            }
            int tempReportID = SysConvert.ToInt32(((DevComponents.Editors.ComboItem)ci.SelectedItem).Tag);

            if (tempReportID == 1)
            {
                this.ShowMessage("请选择报表模板");
                return(false);
            }

            string    sql = "SELECT * FROM UV1_Data_ItemGB WHERE GBCode IN(" + GBCodeStr + ")";
            DataTable dt  = SysUtils.Fill(sql);

            dt.Columns.Add("LYFlag", typeof(int));
            foreach (DataRow dr in dt.Rows)
            {
                sql  = "SELECT LYFlag FROM UV1_Dev_GBJCDts WHERE GBCode=" + SysString.ToDBString(dr["GBCode"].ToString());
                sql += " AND SubmitFlag=1 ";
                sql += " AND GBStatusID=" + SysString.ToDBString((int)EnumGBStatus.归还);
                sql += " ORDER BY GHTime,FormNo DESC ";
                DataTable dto = SysUtils.Fill(sql);
                if (dto.Rows.Count > 0)
                {
                    dr["LYFlag"] = SysConvert.ToInt32(dto.Rows[0][0]);
                }
                else
                {
                    dr["LYFlag"] = 0;
                }
            }
            FastReportX.ReportRunTable(tempReportID, p_ReportPrintType, dt);
            return(true);
        }
コード例 #3
0
        private void FillCboMakeUpbatch()
        {
            picLoading.Visible = true;

            cboMakeUpBatch.Items.Clear();

            foreach (UDT_MakeUpBatch batch in _batchList)
            {
                if (batch.is_archive == "是")
                {
                    continue;
                }

                object item = new object();

                DevComponents.DotNetBar.ComboBoxItem cboI = new DevComponents.DotNetBar.ComboBoxItem();

                cboI.Text = batch.MakeUp_Batch;

                // Tag  用 梯次的 id , 方便 之後 查詢 補考群組、補考資料
                cboI.Tag = batch.UID;

                cboMakeUpBatch.Items.Add(cboI);
            }

            // 假如 梯次 數大於 0 ,預設 選擇 第一項
            if (_batchList.Count > 0)
            {
                cboMakeUpBatch.SelectedIndex = 0;
            }
        }
コード例 #4
0
        public override void btnPrint_Click(object sender, EventArgs e)
        {
            #region


            DevComponents.DotNetBar.ComboBoxItem ci = this.ToolBarCItemGet(-1, ToolButtonName.drpPrintFile.ToString());
            if (ci.SelectedItem == null)
            {
                this.ShowMessage("请选择报表模板");
                return;
            }
            int tempReportID = SysConvert.ToInt32(((DevComponents.Editors.ComboItem)ci.SelectedItem).Tag);
            if (tempReportID == 0)
            {
                this.ShowMessage("请选择报表模板");
                return;
            }

            DataTable[] dt = GetPrintSource();
            if (dt != null)
            {
                dt[0].TableName = "Main";
                dt[1].TableName = "Dts";
                HttSoft.WinUIBase.FastReport.ReportRun(tempReportID, (int)ReportPrintType.打印, dt);
            }

            #endregion
        }
コード例 #5
0
        /// <summary>
        /// 设计
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public override void btnDesign_Click(object sender, EventArgs e)
        {
            try
            {
                //base.btnDesign_Click(sender, e);
                if (!FCommon.RightCheck(this.FormID, this.RightFormID, this.FormListAID, this.FormListBID, RightSub.提交3))
                {
                    this.ShowMessage("你没有此操作权限");
                    return;
                }
                if (HTDataID == 0)
                {
                    this.ShowMessage("请选择要操作的记录");
                    return;
                }

                DevComponents.DotNetBar.ComboBoxItem ci = this.ToolBarCItemGet(-1, ToolButtonName.drpPrintFile.ToString());
                int tempReportID = SysConvert.ToInt32(((DevComponents.Editors.ComboItem)ci.SelectedItem).Tag);
                if (tempReportID == 0)
                {
                    this.ShowMessage("请选择报表模板");
                    return;
                }
                FastReportX.ReportRun(tempReportID, (int)ReportPrintType.设计, new string[] { "ID", "MainID" }, new string[] { HTDataID.ToString(), HTDataID.ToString() });
            }
            catch
            {
            }
        }
コード例 #6
0
        /// <summary>
        /// 按下「匯出到 Excel」時觸發
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnExport_Click(object sender, EventArgs e)
        {
            // 暫停畫面控制項

            cboMakeUpBatch.SuspendLayout();
            cboSchoolYear.SuspendLayout();
            cbosemester.SuspendLayout();


            // 選擇的項目
            DevComponents.DotNetBar.ComboBoxItem selectedItem = (DevComponents.DotNetBar.ComboBoxItem)cboMakeUpBatch.SelectedItem;

            if (selectedItem == null)
            {
                MsgBox.Show("梯次別不得空白", "錯誤", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            else
            {
                if ("" + selectedItem.Text == "")
                {
                    MsgBox.Show("梯次別不得空白", "錯誤", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
            }

            btnExport.Enabled = false;
            _targetBatchID    = "" + selectedItem.Tag;

            _worker.RunWorkerAsync();
        }
コード例 #7
0
ファイル: frmBrandEdit.cs プロジェクト: zhp-apeng/HTMLTERP
        /// <summary>
        /// 打印
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public override void btnPrint_Click(object sender, EventArgs e)
        {
            try
            {
                base.btnPrint_Click(sender, e);

                if (HTDataID == 0)
                {
                    this.ShowMessage("请选择要操作的记录");
                    return;
                }

                DevComponents.DotNetBar.ComboBoxItem ci = this.ToolBarCItemGet(-1, ToolButtonName.drpPrintFile.ToString());
                int tempReportID = SysConvert.ToInt32(((DevComponents.Editors.ComboItem)ci.SelectedItem).Tag);
                if (tempReportID == 0)
                {
                    this.ShowMessage("请选择报表模板");
                    return;
                }
                HttSoft.WinUIBase.FastReport.ReportRun(tempReportID, (int)ReportPrintType.打印, new string[] { "ID" }, new string[] { HTDataID.ToString() });
            }
            catch
            {
            }
        }
コード例 #8
0
        /// <summary>
        /// 按下「匯出到 Excel」時觸發
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnExport_Click(object sender, EventArgs e)
        {
            // 暫停畫面控制項

            cboMakeUpBatch.SuspendLayout();
            cboSchoolYear.SuspendLayout();
            cbosemester.SuspendLayout();


            // 選擇的項目
            DevComponents.DotNetBar.ComboBoxItem selectedItem = (DevComponents.DotNetBar.ComboBoxItem)cboMakeUpBatch.SelectedItem;

            if ("" + selectedItem.Text == "")
            {
                MsgBox.Show("梯次別不得空白", "錯誤", MessageBoxButtons.OK, MessageBoxIcon.Error);

                return;
            }


            _targetBatchID = "" + selectedItem.Tag;

            string printMode = "";

            if (radioBtnByGroup.Checked)
            {
                printMode = "依群組";
            }

            if (radioBtnByStudent.Checked)
            {
                printMode = "依學生";
            }

            #region 取得 該補考梯次 是否有補考群組,假如無,則不給列印補考公告
            string query = @"
                    SELECT* FROM  $make.up.group WHERE ref_makeup_batch_id = '" + _targetBatchID + "'";

            QueryHelper qh = new QueryHelper();
            DataTable   dt = qh.Select(query);

            if (dt.Rows.Count == 0)
            {
                MsgBox.Show("本梯次尚未建立補考群組,請至教務作業/補考作業 建立。", "錯誤", MessageBoxButtons.OK, MessageBoxIcon.Error);

                return;
            }
            #endregion



            // 在本視窗選完梯次後, 進入下一個視窗正式列印 分兩種模式 (依群組、依學生)
            ExportMakeUpReportSettingForm emursf = new ExportMakeUpReportSettingForm(_targetBatchID, printMode);

            emursf.ShowDialog();
        }
コード例 #9
0
        /// <summary>
        /// 打印共用条码
        /// </summary>
        /// <returns></returns>
        bool btnPrintAbount(int p_ReportPrintType)
        {
            this.BaseFocusLabel.Focus();
            string GBIDStr = "";

            for (int i = 0; i < gridView1.RowCount; i++)
            {
                if (SysConvert.ToInt32(gridView1.GetRowCellValue(i, "SelectFlag")) == 1)
                {
                    if (GBIDStr != "")
                    {
                        GBIDStr += ",";
                    }
                    GBIDStr += SysConvert.ToInt32(gridView1.GetRowCellValue(i, "ID"));
                }
            }

            if (GBIDStr == "")
            {
                this.ShowMessage("请勾选需要打印的挂板条码");
                return(false);
            }


            DevComponents.DotNetBar.ComboBoxItem ci = this.ToolBarCItemGet(-1, ToolButtonName.drpPrintFile.ToString());
            if (ci.SelectedItem == null)
            {
                this.ShowMessage("请选择报表模板");
                return(false);
            }
            int tempReportID = SysConvert.ToInt32(((DevComponents.Editors.ComboItem)ci.SelectedItem).Tag);

            if (tempReportID == 1)
            {
                this.ShowMessage("请选择报表模板");
                return(false);
            }
            string    sql      = "SELECT * FROM Data_Item WHERE ID IN (" + GBIDStr + ")";
            DataTable dtSource = SysUtils.Fill(sql);

            dtSource.Columns.Add(new DataColumn("ERCode", typeof(Image)));
            //dtSource.Columns.Add(new DataColumn("ERCode2", typeof(Image)));
            foreach (DataRow dr in dtSource.Rows)
            {
                string EWM1 = SysConvert.ToString(dr["ItemCode"]);
                string MSG  = "";
                dr["ERCode"] = HTERCode.HTERBarcode.Create(EWM1, 2, 0, "", out MSG);
            }

            FastReportX.ReportRunTable(tempReportID, p_ReportPrintType, dtSource);

            return(true);
        }
コード例 #10
0
ファイル: frmPackBox.cs プロジェクト: zhp-apeng/HTMLTERP
        bool btnPrintAbount(int p_ReportPrintType)
        {
            this.BaseFocusLabel.Focus();
            string BoxIDStr = "";

            for (int i = 0; i < gridView1.RowCount; i++)
            {
                if (SysConvert.ToInt32(gridView1.GetRowCellValue(i, "SelectFlag")) == 1)
                {
                    if (BoxIDStr != "")
                    {
                        BoxIDStr += ",";
                    }
                    BoxIDStr += SysConvert.ToInt32(gridView1.GetRowCellValue(i, "ID"));
                }
            }

            if (BoxIDStr == "")
            {
                this.ShowMessage("请勾选需要打印的挂板条码");
                return(false);
            }


            DevComponents.DotNetBar.ComboBoxItem ci = this.ToolBarCItemGet(-1, ToolButtonName.drpPrintFile.ToString());
            if (ci.SelectedItem == null)
            {
                this.ShowMessage("请选择报表模板");
                return(false);
            }
            int tempReportID = SysConvert.ToInt32(((DevComponents.Editors.ComboItem)ci.SelectedItem).Tag);

            if (tempReportID == 1)
            {
                this.ShowMessage("请选择报表模板");
                return(false);
            }


            string    sql      = "SELECT * FROM UV1_WH_PackBox WHERE ID IN (" + BoxIDStr + ")";
            DataTable dtSource = SysUtils.Fill(sql);

            FastReportX.ReportRunTable(tempReportID, p_ReportPrintType, dtSource);


            //FastReportX.ReportRun(tempReportID, p_ReportPrintType, new string[] { "ID" }, new string[] { BoxIDStr });
            return(true);
        }
コード例 #11
0
ファイル: frmLYGLEdit.cs プロジェクト: zhp-apeng/HTMLTERP
        /// <summary>
        /// 打印共用条码
        /// </summary>
        /// <returns></returns>
        bool btnPrintAbount(int p_ReportPrintType)
        {
            this.BaseFocusLabel.Focus();
            if (HTDataID == 0)
            {
                this.ShowMessage("请先保存数据后打印");
                return(false);
            }
            string IDStr = "";

            for (int i = 0; i < gridView1.RowCount; i++)
            {
                if (SysConvert.ToInt32(gridView1.GetRowCellValue(i, "JYFlag")) == 1)
                {
                    if (IDStr != "")
                    {
                        IDStr += ",";
                    }
                    IDStr += SysConvert.ToInt32(gridView1.GetRowCellValue(i, "DtsID"));
                }
            }

            if (IDStr == "")
            {
                this.ShowMessage("没有留样需要打印");
                return(false);
            }


            DevComponents.DotNetBar.ComboBoxItem ci = this.ToolBarCItemGet(-1, ToolButtonName.drpPrintFile.ToString());
            if (ci.SelectedItem == null)
            {
                this.ShowMessage("请选择报表模板");
                return(false);
            }
            int tempReportID = SysConvert.ToInt32(((DevComponents.Editors.ComboItem)ci.SelectedItem).Tag);

            if (tempReportID == 1)
            {
                this.ShowMessage("请选择报表模板");
                return(false);
            }


            FastReportX.ReportRun(tempReportID, p_ReportPrintType, new string[] { "ID" }, new string[] { IDStr });
            return(true);
        }
コード例 #12
0
ファイル: frmSalesRpt.cs プロジェクト: zhp-apeng/HTMLTERP
        void PrintAbout(int p_ReportPrintType)
        {
            this.BaseFocusLabel.Focus();
            DevComponents.DotNetBar.ComboBoxItem ci = this.ToolBarCItemGet(-1, ToolButtonName.drpPrintFile.ToString());
            if (ci.SelectedItem == null)
            {
                this.ShowMessage("请选择报表模板");
                return;
            }
            int tempReportID = SysConvert.ToInt32(((DevComponents.Editors.ComboItem)ci.SelectedItem).Tag);

            if (tempReportID == 0)
            {
                this.ShowMessage("请选择报表模板");
                return;
            }
            string temStr = string.Empty;

            for (int i = 0; i < gridView1.RowCount; i++)
            {
                if (SysConvert.ToInt32(gridView1.GetRowCellValue(i, "SelectFlag")) == 1)
                {
                    if (temStr != string.Empty)
                    {
                        temStr += ",";
                    }
                    temStr += SysConvert.ToString(gridView1.GetRowCellValue(i, "DtsID"));
                }
            }
            if (temStr == string.Empty)
            {
                this.ShowMessage("请勾选需要打印的信息");
                return;
            }
            DataTable dt = new DataTable();

            dt.TableName = "Dts";
            string sql = "SELECT ISNULL(Qty,0) - ISNULL(TotalRecQty,0) WFQty,ISNULL(Weight,0) - ISNULL(TotalRecWeight,0) WFWeight,ISNULL(PieceQty,0) - ISNULL(TotalRecPieceQty,0) WFPieceQty,* FROM UV1_Sale_SaleOrderDts WHERE 1=1 ";

            sql += " AND DtsID IN (";
            sql += temStr + ")";
            dt   = SysUtils.Fill(sql);
            HttSoft.WinUIBase.FastReport.ReportRunTable(tempReportID, p_ReportPrintType, dt);
        }
コード例 #13
0
ファイル: frmWHEdit.cs プロジェクト: zhp-apeng/HTMLTERP
        bool Print(int ReportPrintType)
        {
            if (HTDataID == 0)
            {
                this.ShowMessage("请选择要操作的记录");
                return(false);
            }

            DevComponents.DotNetBar.ComboBoxItem ci = this.ToolBarCItemGet(-1, ToolButtonName.drpPrintFile.ToString());
            if (ci.SelectedItem == null)
            {
                this.ShowMessage("请选择报表模板");
                return(false);
            }
            int tempReportID = SysConvert.ToInt32(((DevComponents.Editors.ComboItem)ci.SelectedItem).Tag);

            if (tempReportID == 0)
            {
                this.ShowMessage("请选择报表模板");
                return(false);
            }
            string SectionID = SysConvert.ToString(gridView1.GetFocusedRowCellValue("SectionID"));

            if (SectionID != string.Empty)
            {
                string    sql    = "SELECT * FROM WH_WH WHERE ID =" + SysString.ToDBString(HTDataID);
                DataTable dtMain = SysUtils.Fill(sql);
                dtMain.TableName = "Main";
                sql  = "SELECT * FROM WH_SBit WHERE SectionID =" + SysString.ToDBString(SectionID);
                sql += " AND MainID =" + SysConvert.ToString(HTDataID);
                DataTable dt = SysUtils.Fill(sql);
                dt.TableName = "Dts";
                HttSoft.WinUIBase.FastReport.ReportRun(tempReportID, ReportPrintType, new DataTable[] { dtMain, dt });
            }
            else
            {
                this.ShowMessage("请选择需要打印的区");
                return(false);
            }
            return(true);
        }
コード例 #14
0
        /// <summary>
        /// 打印共用条码
        /// </summary>
        /// <returns></returns>
        bool btnPrintAbount(int p_ReportPrintType)
        {
            this.BaseFocusLabel.Focus();
            DevComponents.DotNetBar.ComboBoxItem ci = this.ToolBarCItemGet(-1, ToolButtonName.drpPrintFile.ToString());
            if (ci.SelectedItem == null)
            {
                this.ShowMessage("请选择报表模板");
                return(false);
            }
            int tempReportID = SysConvert.ToInt32(((DevComponents.Editors.ComboItem)ci.SelectedItem).Tag);

            if (tempReportID == 1)
            {
                this.ShowMessage("请选择报表模板");
                return(false);
            }
            IOFormRule rule = new IOFormRule();
            DataTable  dt   = rule.RShowDts(HTDataConditionStr, "*");

            SetGrid(dt);
            DataTable dtnew = dt.Clone();

            if (gridView1.RowFilter != string.Empty)
            {
                DataRow[] rows = dt.Select(gridView1.RowFilter);

                foreach (DataRow row in rows)
                {
                    dtnew.ImportRow(row);
                }
            }
            else
            {
                dtnew = dt;
            }

            FastReportX.ReportRunTable(tempReportID, p_ReportPrintType, dtnew);

            return(true);
        }
コード例 #15
0
        /// <summary>
        /// 打印共用条码
        /// </summary>
        /// <returns></returns>
        bool btnPrintAbount(int p_ReportPrintType)
        {
            this.BaseFocusLabel.Focus();

            if (HTDataID == 0)
            {
                this.ShowMessage("请保存面料后打印");
                return(false);
            }


            DevComponents.DotNetBar.ComboBoxItem ci = this.ToolBarCItemGet(-1, ToolButtonName.drpPrintFile.ToString());
            if (ci.SelectedItem == null)
            {
                this.ShowMessage("请选择报表模板");
                return(false);
            }
            int tempReportID = SysConvert.ToInt32(((DevComponents.Editors.ComboItem)ci.SelectedItem).Tag);

            if (tempReportID == 1)
            {
                this.ShowMessage("请选择报表模板");
                return(false);
            }
            string    sql      = "SELECT * FROM Data_Item WHERE ID = " + SysString.ToDBString(HTDataID);
            DataTable dtSource = SysUtils.Fill(sql);

            dtSource.Columns.Add(new DataColumn("ERCode", typeof(Image)));
            foreach (DataRow dr in dtSource.Rows)
            {
                string EWM1 = SysConvert.ToString(dr["ItemCode"]);
                string MSG  = "";
                dr["ERCode"] = HTERCode.HTERBarcode.Create(EWM1, 2, 0, "", out MSG);
            }

            FastReportX.ReportRunTable(tempReportID, p_ReportPrintType, dtSource);

            return(true);
        }
コード例 #16
0
        /// <summary>
        /// 打印共用条码
        /// </summary>
        /// <returns></returns>
        bool btnPrintAbount(int p_ReportPrintType)
        {
            this.BaseFocusLabel.Focus();
            DevComponents.DotNetBar.ComboBoxItem ci = this.ToolBarCItemGet(-1, ToolButtonName.drpPrintFile.ToString());
            if (ci.SelectedItem == null)
            {
                this.ShowMessage("请选择报表模板");
                return(false);
            }
            int tempReportID = SysConvert.ToInt32(((DevComponents.Editors.ComboItem)ci.SelectedItem).Tag);

            if (tempReportID == 1)
            {
                this.ShowMessage("请选择报表模板");
                return(false);
            }

            DataTable dt = (DataTable)gridView1.GridControl.DataSource;

            FastReportX.ReportRunTable(tempReportID, p_ReportPrintType, dt);

            return(true);
        }
コード例 #17
0
ファイル: CommnClass.cs プロジェクト: siszoey/geosufan
        /// <summary>
        ///  添加村级行政区代码
        /// </summary>
        /// <param name="pComboBoxItem"></param>
        public static void SetcmbBoxCountryVale(DevComponents.DotNetBar.Controls.ComboBoxEx pComboBoxItem)
        {
            try
            {
                //IFeatureCursor pFeatureCursor = m_JFFeatureClass.Search(null, false);
                //int Index = m_JFFeatureClass.Fields.FindField("JFDM");
                //IFeature pFeature = pFeatureCursor.NextFeature();
                //while (pFeature != null)
                //{
                //    string strFieldName = pFeature.get_Value(Index).ToString();
                //    if (strFieldName.Length >= 12)
                //    {
                //        strFieldName = strFieldName.Substring(0, 6);
                //        if (!IsExist(pComboBoxItem, GetDMChineseName(strFieldName)))
                //        {
                //            DevComponents.DotNetBar.ComboBoxItem pComboBox = new DevComponents.DotNetBar.ComboBoxItem();
                //pComboBox.Text = GetDMChineseName(strFieldName);
                //            pComboBox.Tag = strFieldName;
                //            pComboBoxItem.Items.Add(pComboBox);
                //        }
                //    }
                //    pFeature = pFeatureCursor.NextFeature();
                //}
                //System.Runtime.InteropServices.Marshal.ReleaseComObject(pFeatureCursor);
                //pFeatureCursor = null;
                //yjl 20111014 add followed
                IFeatureWorkspace pFW = Plugin.ModuleCommon.TmpWorkSpace as IFeatureWorkspace;
                IWorkspace2       pW2 = Plugin.ModuleCommon.TmpWorkSpace as IWorkspace2;
                if (pFW == null)
                {
                    return;
                }
                if (!pW2.get_NameExists(esriDatasetType.esriDTTable, "行政区字典表"))
                {
                    return;
                }
                ITable pXZQDic = pFW.OpenTable("行政区字典表");
                if (pXZQDic == null)
                {
                    return;
                }
                int ndx = pXZQDic.FindField("NAME"),
                    cdx = pXZQDic.FindField("CODE");
                if (ndx == -1 || cdx == -1)
                {
                    return;
                }
                IQueryFilter pQF = new QueryFilterClass();
                pQF.WhereClause = "XZJB='3'";
                ICursor pCursor = pXZQDic.Search(pQF, false);
                if (pCursor == null)
                {
                    return;
                }
                IRow pRow = pCursor.NextRow();

                while (pRow != null)
                {
                    string name = pRow.get_Value(ndx).ToString(),
                           code = pRow.get_Value(cdx).ToString();
                    DevComponents.DotNetBar.ComboBoxItem pComboBox = new DevComponents.DotNetBar.ComboBoxItem();
                    pComboBox.Text = name + "(" + code + ")";
                    pComboBox.Tag  = code;
                    pComboBoxItem.Items.Add(pComboBox);
                    pRow = pCursor.NextRow();
                }
                for (int i = 0; i < pComboBoxItem.Items.Count - 1; i++)
                {
                    DevComponents.DotNetBar.ComboBoxItem itemi = pComboBoxItem.Items[i] as DevComponents.DotNetBar.ComboBoxItem;
                    for (int j = i + 1; j < pComboBoxItem.Items.Count; j++)
                    {
                        DevComponents.DotNetBar.ComboBoxItem itemj = pComboBoxItem.Items[j] as DevComponents.DotNetBar.ComboBoxItem;
                        int iti = Convert.ToInt32(itemi.Tag),
                            itj = Convert.ToInt32(itemj.Tag);
                        if (iti > itj)
                        {
                            pComboBoxItem.Items.Remove(itemj);
                            pComboBoxItem.Items.Insert(i, itemj);
                            itemi = pComboBoxItem.Items[i] as DevComponents.DotNetBar.ComboBoxItem;
                        }
                    }
                }

                System.Runtime.InteropServices.Marshal.ReleaseComObject(pCursor);
                pCursor = null;
                pW2     = null;
                pFW     = null;
                if (pComboBoxItem.Items.Count > 0)
                {
                    pComboBoxItem.SelectedIndex = 0;
                }
            }
            catch { }
        }
コード例 #18
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RibbonShell));
     this.buttonItem47 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem48 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem49 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem20 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem21 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem22 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem30 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem31 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem32 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem33 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem34 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem35 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem36 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem37 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem38 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem39 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem40 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem41 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem42 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem43 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem44 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem45 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem46 = new DevComponents.DotNetBar.ButtonItem();
     this.itemContainer7 = new DevComponents.DotNetBar.ItemContainer();
     this.buttonAlignLeft = new DevComponents.DotNetBar.ButtonItem();
     this.buttonAlignCenter = new DevComponents.DotNetBar.ButtonItem();
     this.buttonAlignRight = new DevComponents.DotNetBar.ButtonItem();
     this.buttonAlignJustify = new DevComponents.DotNetBar.ButtonItem();
     this.itemContainer8 = new DevComponents.DotNetBar.ItemContainer();
     this.buttonItem23 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem24 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem25 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem26 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem27 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem28 = new DevComponents.DotNetBar.ButtonItem();
     this.comboFont = new DevComponents.DotNetBar.ComboBoxItem();
     this.comboFontSize = new DevComponents.DotNetBar.ComboBoxItem();
     this.comboItem1 = new DevComponents.Editors.ComboItem();
     this.comboItem2 = new DevComponents.Editors.ComboItem();
     this.comboItem3 = new DevComponents.Editors.ComboItem();
     this.comboItem4 = new DevComponents.Editors.ComboItem();
     this.comboItem5 = new DevComponents.Editors.ComboItem();
     this.comboItem6 = new DevComponents.Editors.ComboItem();
     this.comboItem7 = new DevComponents.Editors.ComboItem();
     this.comboItem8 = new DevComponents.Editors.ComboItem();
     this.comboItem9 = new DevComponents.Editors.ComboItem();
     this.buttonFontBold = new DevComponents.DotNetBar.ButtonItem();
     this.buttonFontItalic = new DevComponents.DotNetBar.ButtonItem();
     this.buttonFontUnderline = new DevComponents.DotNetBar.ButtonItem();
     this.buttonFontStrike = new DevComponents.DotNetBar.ButtonItem();
     this.buttonTextColor = new DevComponents.DotNetBar.ColorPickerDropDown();
     this.buttonItem53 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem54 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonCut = new DevComponents.DotNetBar.ButtonItem();
     this.buttonCopy = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem55 = new DevComponents.DotNetBar.ButtonItem();
     this.checkBoxItem1 = new DevComponents.DotNetBar.CheckBoxItem();
     this.checkBoxItem2 = new DevComponents.DotNetBar.CheckBoxItem();
     this.checkBoxItem3 = new DevComponents.DotNetBar.CheckBoxItem();
     this.checkBoxItem4 = new DevComponents.DotNetBar.CheckBoxItem();
     this.checkBoxItem5 = new DevComponents.DotNetBar.CheckBoxItem();
     this.checkBoxItem6 = new DevComponents.DotNetBar.CheckBoxItem();
     this.buttonReplace = new DevComponents.DotNetBar.ButtonItem();
     this.buttonGoto = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem50 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem51 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem52 = new DevComponents.DotNetBar.ButtonItem();
     this.ribbonTabItemGroup1 = new DevComponents.DotNetBar.RibbonTabItemGroup();
     this.ribbonControl = new DevComponents.DotNetBar.RibbonControl();
     this.buttonFile = new DevComponents.DotNetBar.ApplicationButton();
     this.itemContainer1 = new DevComponents.DotNetBar.ItemContainer();
     this.itemContainer2 = new DevComponents.DotNetBar.ItemContainer();
     this.itemContainer3 = new DevComponents.DotNetBar.ItemContainer();
     this.tnLogin = new DevComponents.DotNetBar.ButtonItem();
     this.tnLogout = new DevComponents.DotNetBar.ButtonItem();
     this.btnCPassword = new DevComponents.DotNetBar.ButtonItem();
     this.btnClose = new DevComponents.DotNetBar.ButtonItem();
     this.itemContainer4 = new DevComponents.DotNetBar.ItemContainer();
     this.btnAbout = new DevComponents.DotNetBar.ButtonItem();
     this.btnExit = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem9 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem10 = new DevComponents.DotNetBar.ButtonItem();
     this.AppCommandTheme = new DevComponents.DotNetBar.Command(this.components);
     this.buttonItem11 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem15 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem17 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem18 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem19 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem29 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem56 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem57 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem58 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem59 = new DevComponents.DotNetBar.ButtonItem();
     this.colorPickerDropDown1 = new DevComponents.DotNetBar.ColorPickerDropDown();
     this.switchButtonItem1 = new DevComponents.DotNetBar.SwitchButtonItem();
     this.RibbonStateCommand = new DevComponents.DotNetBar.Command(this.components);
     this.qatCustomizeItem1 = new DevComponents.DotNetBar.QatCustomizeItem();
     this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components);
     this.tabStrip1 = new DevComponents.DotNetBar.TabStrip();
     this.microChartItem1 = new DevComponents.DotNetBar.MicroChartItem();
     this.microChartItem2 = new DevComponents.DotNetBar.MicroChartItem();
     this.panBottom = new DevComponents.DotNetBar.PanelEx();
     this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonChangeStyle = new DevComponents.DotNetBar.ButtonItem();
     this.buttonStyleMetro = new DevComponents.DotNetBar.ButtonItem();
     this.buttonStyleOffice2010Blue = new DevComponents.DotNetBar.ButtonItem();
     this.buttonStyleOffice2010Silver = new DevComponents.DotNetBar.ButtonItem();
     this.buttonStyleOffice2010Black = new DevComponents.DotNetBar.ButtonItem();
     this.buttonStyleVS2010 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem62 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonStyleOffice2007Blue = new DevComponents.DotNetBar.ButtonItem();
     this.buttonStyleOffice2007Black = new DevComponents.DotNetBar.ButtonItem();
     this.buttonStyleOffice2007Silver = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem60 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonItem16 = new DevComponents.DotNetBar.ButtonItem();
     this.buttonStyleCustom = new DevComponents.DotNetBar.ColorPickerDropDown();
     this.bottomControl1 = new Gas_test2.Res.BottomControl();
     this.panBottom.SuspendLayout();
     this.SuspendLayout();
     //
     // buttonItem47
     //
     this.buttonItem47.BeginGroup = true;
     this.buttonItem47.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem47.Image")));
     this.buttonItem47.Name = "buttonItem47";
     this.buttonItem47.Text = "Search for Templates Online...";
     //
     // buttonItem48
     //
     this.buttonItem48.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem48.Image")));
     this.buttonItem48.Name = "buttonItem48";
     this.buttonItem48.Text = "Browse for Templates...";
     //
     // buttonItem49
     //
     this.buttonItem49.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem49.Image")));
     this.buttonItem49.Name = "buttonItem49";
     this.buttonItem49.Text = "Save Current Template...";
     //
     // buttonItem20
     //
     this.buttonItem20.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem20.Image")));
     this.buttonItem20.Name = "buttonItem20";
     this.buttonItem20.Text = "Apex";
     this.buttonItem20.Tooltip = "Apex";
     //
     // buttonItem21
     //
     this.buttonItem21.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem21.Image")));
     this.buttonItem21.Name = "buttonItem21";
     this.buttonItem21.Text = "Aspect";
     this.buttonItem21.Tooltip = "Aspect";
     //
     // buttonItem22
     //
     this.buttonItem22.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem22.Image")));
     this.buttonItem22.Name = "buttonItem22";
     this.buttonItem22.Text = "Concourse";
     this.buttonItem22.Tooltip = "Concourse";
     //
     // buttonItem30
     //
     this.buttonItem30.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem30.Image")));
     this.buttonItem30.Name = "buttonItem30";
     this.buttonItem30.Text = "Currency";
     this.buttonItem30.Tooltip = "Currency";
     //
     // buttonItem31
     //
     this.buttonItem31.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem31.Image")));
     this.buttonItem31.Name = "buttonItem31";
     this.buttonItem31.Text = "Deluxe";
     this.buttonItem31.Tooltip = "Deluxe";
     //
     // buttonItem32
     //
     this.buttonItem32.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem32.Image")));
     this.buttonItem32.Name = "buttonItem32";
     this.buttonItem32.Text = "Equity";
     this.buttonItem32.Tooltip = "Equity";
     //
     // buttonItem33
     //
     this.buttonItem33.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem33.Image")));
     this.buttonItem33.Name = "buttonItem33";
     this.buttonItem33.Text = "Flow";
     this.buttonItem33.Tooltip = "Flow";
     //
     // buttonItem34
     //
     this.buttonItem34.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem34.Image")));
     this.buttonItem34.Name = "buttonItem34";
     this.buttonItem34.Text = "Foundry";
     this.buttonItem34.Tooltip = "Foundry";
     //
     // buttonItem35
     //
     this.buttonItem35.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem35.Image")));
     this.buttonItem35.Name = "buttonItem35";
     this.buttonItem35.Text = "Median";
     this.buttonItem35.Tooltip = "Median";
     //
     // buttonItem36
     //
     this.buttonItem36.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem36.Image")));
     this.buttonItem36.Name = "buttonItem36";
     this.buttonItem36.Text = "Metro";
     this.buttonItem36.Tooltip = "Metro";
     //
     // buttonItem37
     //
     this.buttonItem37.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem37.Image")));
     this.buttonItem37.Name = "buttonItem37";
     this.buttonItem37.Text = "Office";
     this.buttonItem37.Tooltip = "Office";
     //
     // buttonItem38
     //
     this.buttonItem38.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem38.Image")));
     this.buttonItem38.Name = "buttonItem38";
     this.buttonItem38.Text = "Opulent";
     this.buttonItem38.Tooltip = "Opulent";
     //
     // buttonItem39
     //
     this.buttonItem39.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem39.Image")));
     this.buttonItem39.Name = "buttonItem39";
     this.buttonItem39.Text = "Oriel";
     this.buttonItem39.Tooltip = "Oriel";
     //
     // buttonItem40
     //
     this.buttonItem40.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem40.Image")));
     this.buttonItem40.Name = "buttonItem40";
     this.buttonItem40.Text = "Origin";
     this.buttonItem40.Tooltip = "Origin";
     //
     // buttonItem41
     //
     this.buttonItem41.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem41.Image")));
     this.buttonItem41.Name = "buttonItem41";
     this.buttonItem41.Text = "Civic";
     this.buttonItem41.Tooltip = "Civic";
     //
     // buttonItem42
     //
     this.buttonItem42.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem42.Image")));
     this.buttonItem42.Name = "buttonItem42";
     this.buttonItem42.Text = "Solstice";
     this.buttonItem42.Tooltip = "Solstice";
     //
     // buttonItem43
     //
     this.buttonItem43.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem43.Image")));
     this.buttonItem43.Name = "buttonItem43";
     this.buttonItem43.Text = "Technic";
     this.buttonItem43.Tooltip = "Technic";
     //
     // buttonItem44
     //
     this.buttonItem44.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem44.Image")));
     this.buttonItem44.Name = "buttonItem44";
     this.buttonItem44.Text = "Trek";
     this.buttonItem44.Tooltip = "Trek";
     //
     // buttonItem45
     //
     this.buttonItem45.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem45.Image")));
     this.buttonItem45.Name = "buttonItem45";
     this.buttonItem45.Text = "Urban";
     this.buttonItem45.Tooltip = "Urban";
     //
     // buttonItem46
     //
     this.buttonItem46.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem46.Image")));
     this.buttonItem46.Name = "buttonItem46";
     this.buttonItem46.Text = "Verve";
     this.buttonItem46.Tooltip = "Verve";
     //
     // itemContainer7
     //
     //
     //
     //
     this.itemContainer7.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.itemContainer7.BeginGroup = true;
     this.itemContainer7.Name = "itemContainer7";
     this.itemContainer7.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] {
     this.buttonAlignLeft,
     this.buttonAlignCenter,
     this.buttonAlignRight,
     this.buttonAlignJustify});
     //
     //
     //
     this.itemContainer7.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     //
     // buttonAlignLeft
     //
     this.buttonAlignLeft.Enabled = false;
     this.buttonAlignLeft.Image = ((System.Drawing.Image)(resources.GetObject("buttonAlignLeft.Image")));
     this.buttonAlignLeft.Name = "buttonAlignLeft";
     this.buttonAlignLeft.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.CtrlL);
     this.buttonAlignLeft.Text = "Align &Left";
     //
     // buttonAlignCenter
     //
     this.buttonAlignCenter.Enabled = false;
     this.buttonAlignCenter.Image = ((System.Drawing.Image)(resources.GetObject("buttonAlignCenter.Image")));
     this.buttonAlignCenter.Name = "buttonAlignCenter";
     this.buttonAlignCenter.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.CtrlE);
     this.buttonAlignCenter.Text = "Align &Center";
     //
     // buttonAlignRight
     //
     this.buttonAlignRight.Enabled = false;
     this.buttonAlignRight.Image = ((System.Drawing.Image)(resources.GetObject("buttonAlignRight.Image")));
     this.buttonAlignRight.Name = "buttonAlignRight";
     this.buttonAlignRight.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.CtrlR);
     this.buttonAlignRight.Text = "Align &Right";
     //
     // buttonAlignJustify
     //
     this.buttonAlignJustify.Enabled = false;
     this.buttonAlignJustify.Image = ((System.Drawing.Image)(resources.GetObject("buttonAlignJustify.Image")));
     this.buttonAlignJustify.Name = "buttonAlignJustify";
     this.buttonAlignJustify.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.CtrlJ);
     this.buttonAlignJustify.Text = "&Justify";
     //
     // itemContainer8
     //
     //
     //
     //
     this.itemContainer8.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.itemContainer8.BeginGroup = true;
     this.itemContainer8.Name = "itemContainer8";
     this.itemContainer8.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] {
     this.buttonItem23,
     this.buttonItem24,
     this.buttonItem25,
     this.buttonItem26});
     //
     //
     //
     this.itemContainer8.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     //
     // buttonItem23
     //
     this.buttonItem23.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem23.Image")));
     this.buttonItem23.Name = "buttonItem23";
     this.buttonItem23.Text = "&Numbered Bullets";
     //
     // buttonItem24
     //
     this.buttonItem24.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem24.Image")));
     this.buttonItem24.Name = "buttonItem24";
     this.buttonItem24.Text = "&Bullets";
     //
     // buttonItem25
     //
     this.buttonItem25.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem25.Image")));
     this.buttonItem25.Name = "buttonItem25";
     this.buttonItem25.Text = "&Indent";
     //
     // buttonItem26
     //
     this.buttonItem26.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem26.Image")));
     this.buttonItem26.Name = "buttonItem26";
     this.buttonItem26.Text = "&Outdent";
     //
     // buttonItem27
     //
     this.buttonItem27.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
     this.buttonItem27.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem27.Image")));
     this.buttonItem27.Name = "buttonItem27";
     this.buttonItem27.NotificationMarkText = "4";
     this.buttonItem27.Text = "&Borders";
     //
     // buttonItem28
     //
     this.buttonItem28.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
     this.buttonItem28.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem28.Image")));
     this.buttonItem28.Name = "buttonItem28";
     this.buttonItem28.Text = "&Shading";
     //
     // comboFont
     //
     this.comboFont.ComboWidth = 96;
     this.comboFont.DropDownHeight = 106;
     this.comboFont.DropDownWidth = 242;
     this.comboFont.Enabled = false;
     this.comboFont.FontCombo = true;
     this.comboFont.ItemHeight = 14;
     this.comboFont.Name = "comboFont";
     //
     // comboFontSize
     //
     this.comboFontSize.ComboWidth = 40;
     this.comboFontSize.DropDownHeight = 106;
     this.comboFontSize.Enabled = false;
     this.comboFontSize.ItemHeight = 16;
     this.comboFontSize.Items.AddRange(new object[] {
     this.comboItem1,
     this.comboItem2,
     this.comboItem3,
     this.comboItem4,
     this.comboItem5,
     this.comboItem6,
     this.comboItem7,
     this.comboItem8,
     this.comboItem9});
     this.comboFontSize.Name = "comboFontSize";
     //
     // comboItem1
     //
     this.comboItem1.Text = "6";
     //
     // comboItem2
     //
     this.comboItem2.Text = "7";
     //
     // comboItem3
     //
     this.comboItem3.Text = "8";
     //
     // comboItem4
     //
     this.comboItem4.Text = "9";
     //
     // comboItem5
     //
     this.comboItem5.Text = "10";
     //
     // comboItem6
     //
     this.comboItem6.Text = "11";
     //
     // comboItem7
     //
     this.comboItem7.Text = "12";
     //
     // comboItem8
     //
     this.comboItem8.Text = "13";
     //
     // comboItem9
     //
     this.comboItem9.Text = "14";
     //
     // buttonFontBold
     //
     this.buttonFontBold.Enabled = false;
     this.buttonFontBold.Image = ((System.Drawing.Image)(resources.GetObject("buttonFontBold.Image")));
     this.buttonFontBold.Name = "buttonFontBold";
     this.buttonFontBold.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.CtrlB);
     this.buttonFontBold.Text = "&Bold";
     //
     // buttonFontItalic
     //
     this.buttonFontItalic.Enabled = false;
     this.buttonFontItalic.Image = ((System.Drawing.Image)(resources.GetObject("buttonFontItalic.Image")));
     this.buttonFontItalic.Name = "buttonFontItalic";
     this.buttonFontItalic.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.CtrlI);
     this.buttonFontItalic.Text = "&Italic";
     //
     // buttonFontUnderline
     //
     this.buttonFontUnderline.Enabled = false;
     this.buttonFontUnderline.Image = ((System.Drawing.Image)(resources.GetObject("buttonFontUnderline.Image")));
     this.buttonFontUnderline.Name = "buttonFontUnderline";
     this.buttonFontUnderline.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.CtrlU);
     this.buttonFontUnderline.Text = "&Underline";
     //
     // buttonFontStrike
     //
     this.buttonFontStrike.Enabled = false;
     this.buttonFontStrike.Image = ((System.Drawing.Image)(resources.GetObject("buttonFontStrike.Image")));
     this.buttonFontStrike.Name = "buttonFontStrike";
     this.buttonFontStrike.Text = "&Strike";
     //
     // buttonTextColor
     //
     this.buttonTextColor.Enabled = false;
     this.buttonTextColor.Image = ((System.Drawing.Image)(resources.GetObject("buttonTextColor.Image")));
     this.buttonTextColor.Name = "buttonTextColor";
     this.buttonTextColor.SelectedColorImageRectangle = new System.Drawing.Rectangle(0, 13, 16, 3);
     this.buttonTextColor.Text = "Text &Color";
     //
     // buttonItem53
     //
     this.buttonItem53.Enabled = false;
     this.buttonItem53.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem53.Image")));
     this.buttonItem53.Name = "buttonItem53";
     this.buttonItem53.Text = "&Paste";
     //
     // buttonItem54
     //
     this.buttonItem54.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem54.Image")));
     this.buttonItem54.Name = "buttonItem54";
     this.buttonItem54.Text = "Paste &Special...";
     //
     // buttonCut
     //
     this.buttonCut.Enabled = false;
     this.buttonCut.Image = ((System.Drawing.Image)(resources.GetObject("buttonCut.Image")));
     this.buttonCut.Name = "buttonCut";
     this.buttonCut.Text = "Cu&t";
     //
     // buttonCopy
     //
     this.buttonCopy.Enabled = false;
     this.buttonCopy.Image = ((System.Drawing.Image)(resources.GetObject("buttonCopy.Image")));
     this.buttonCopy.Name = "buttonCopy";
     this.buttonCopy.Text = "&Copy";
     //
     // buttonItem55
     //
     this.buttonItem55.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem55.Image")));
     this.buttonItem55.Name = "buttonItem55";
     this.buttonItem55.Text = "Format Painter";
     //
     // checkBoxItem1
     //
     this.checkBoxItem1.Checked = true;
     this.checkBoxItem1.CheckState = System.Windows.Forms.CheckState.Indeterminate;
     this.checkBoxItem1.Name = "checkBoxItem1";
     this.checkBoxItem1.Text = "Header";
     this.checkBoxItem1.ThreeState = true;
     //
     // checkBoxItem2
     //
     this.checkBoxItem2.Name = "checkBoxItem2";
     this.checkBoxItem2.Text = "Footer";
     //
     // checkBoxItem3
     //
     this.checkBoxItem3.Checked = true;
     this.checkBoxItem3.CheckState = System.Windows.Forms.CheckState.Checked;
     this.checkBoxItem3.Name = "checkBoxItem3";
     this.checkBoxItem3.Text = "Margins";
     //
     // checkBoxItem4
     //
     this.checkBoxItem4.CheckBoxStyle = DevComponents.DotNetBar.eCheckBoxStyle.RadioButton;
     this.checkBoxItem4.Name = "checkBoxItem4";
     this.checkBoxItem4.Text = "Horizontal Layout";
     //
     // checkBoxItem5
     //
     this.checkBoxItem5.CheckBoxStyle = DevComponents.DotNetBar.eCheckBoxStyle.RadioButton;
     this.checkBoxItem5.Name = "checkBoxItem5";
     this.checkBoxItem5.Text = "Vertical Layout";
     //
     // checkBoxItem6
     //
     this.checkBoxItem6.CheckBoxStyle = DevComponents.DotNetBar.eCheckBoxStyle.RadioButton;
     this.checkBoxItem6.Checked = true;
     this.checkBoxItem6.CheckState = System.Windows.Forms.CheckState.Checked;
     this.checkBoxItem6.Name = "checkBoxItem6";
     this.checkBoxItem6.Text = "Automatic Layout";
     //
     // buttonReplace
     //
     this.buttonReplace.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
     this.buttonReplace.Enabled = false;
     this.buttonReplace.Image = ((System.Drawing.Image)(resources.GetObject("buttonReplace.Image")));
     this.buttonReplace.Name = "buttonReplace";
     this.buttonReplace.Text = "&Replace";
     //
     // buttonGoto
     //
     this.buttonGoto.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
     this.buttonGoto.Enabled = false;
     this.buttonGoto.Image = ((System.Drawing.Image)(resources.GetObject("buttonGoto.Image")));
     this.buttonGoto.Name = "buttonGoto";
     this.buttonGoto.Text = "&Goto";
     //
     // buttonItem50
     //
     this.buttonItem50.Checked = true;
     this.buttonItem50.Name = "buttonItem50";
     this.buttonItem50.OptionGroup = "orientation";
     this.buttonItem50.Text = "Auto";
     //
     // buttonItem51
     //
     this.buttonItem51.Name = "buttonItem51";
     this.buttonItem51.OptionGroup = "orientation";
     this.buttonItem51.Text = "Horizontal";
     //
     // buttonItem52
     //
     this.buttonItem52.Name = "buttonItem52";
     this.buttonItem52.OptionGroup = "orientation";
     this.buttonItem52.Text = "Vertical";
     //
     // ribbonTabItemGroup1
     //
     this.ribbonTabItemGroup1.Color = DevComponents.DotNetBar.eRibbonTabGroupColor.Orange;
     this.ribbonTabItemGroup1.GroupTitle = "Tab Group";
     this.ribbonTabItemGroup1.Name = "ribbonTabItemGroup1";
     //
     //
     //
     this.ribbonTabItemGroup1.Style.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(158)))), ((int)(((byte)(159)))));
     this.ribbonTabItemGroup1.Style.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(225)))), ((int)(((byte)(226)))));
     this.ribbonTabItemGroup1.Style.BackColorGradientAngle = 90;
     this.ribbonTabItemGroup1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
     this.ribbonTabItemGroup1.Style.BorderBottomWidth = 1;
     this.ribbonTabItemGroup1.Style.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(154)))), ((int)(((byte)(58)))), ((int)(((byte)(59)))));
     this.ribbonTabItemGroup1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
     this.ribbonTabItemGroup1.Style.BorderLeftWidth = 1;
     this.ribbonTabItemGroup1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
     this.ribbonTabItemGroup1.Style.BorderRightWidth = 1;
     this.ribbonTabItemGroup1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
     this.ribbonTabItemGroup1.Style.BorderTopWidth = 1;
     this.ribbonTabItemGroup1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.ribbonTabItemGroup1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center;
     this.ribbonTabItemGroup1.Style.TextColor = System.Drawing.Color.Black;
     this.ribbonTabItemGroup1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near;
     //
     // ribbonControl
     //
     this.ribbonControl.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(239)))), ((int)(((byte)(242)))));
     //
     //
     //
     this.ribbonControl.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.ribbonControl.CaptionVisible = true;
     this.ribbonControl.Dock = System.Windows.Forms.DockStyle.Top;
     this.ribbonControl.ForeColor = System.Drawing.Color.Black;
     this.ribbonControl.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
     this.buttonFile,
     this.buttonItem9,
     this.switchButtonItem1});
     this.ribbonControl.KeyTipsFont = new System.Drawing.Font("Tahoma", 7F);
     this.ribbonControl.Location = new System.Drawing.Point(5, 1);
     this.ribbonControl.Name = "ribbonControl";
     this.ribbonControl.Padding = new System.Windows.Forms.Padding(0, 0, 0, 3);
     this.ribbonControl.QuickToolbarItems.AddRange(new DevComponents.DotNetBar.BaseItem[] {
     this.qatCustomizeItem1});
     this.ribbonControl.Size = new System.Drawing.Size(908, 154);
     this.ribbonControl.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
     this.ribbonControl.SystemText.MaximizeRibbonText = "最大化功能区";
     this.ribbonControl.SystemText.MinimizeRibbonText = "最小化功能区";
     this.ribbonControl.SystemText.QatAddItemText = "&Add to Quick Access Toolbar";
     this.ribbonControl.SystemText.QatCustomizeMenuLabel = "配置快捷工具栏";
     this.ribbonControl.SystemText.QatCustomizeText = "配置快捷工具栏";
     this.ribbonControl.SystemText.QatDialogAddButton = "&Add >>";
     this.ribbonControl.SystemText.QatDialogCancelButton = "Cancel";
     this.ribbonControl.SystemText.QatDialogCaption = "配置快捷工具栏";
     this.ribbonControl.SystemText.QatDialogCategoriesLabel = "选择功能:";
     this.ribbonControl.SystemText.QatDialogOkButton = "OK";
     this.ribbonControl.SystemText.QatDialogPlacementCheckbox = "将快捷工具栏置于菜单之下";
     this.ribbonControl.SystemText.QatDialogRemoveButton = "&Remove";
     this.ribbonControl.SystemText.QatPlaceAboveRibbonText = "在功能区上方显示";
     this.ribbonControl.SystemText.QatPlaceBelowRibbonText = "在功能区下方显示";
     this.ribbonControl.SystemText.QatRemoveItemText = "从快速访问工具栏删除";
     this.ribbonControl.TabGroupHeight = 14;
     this.ribbonControl.TabIndex = 0;
     this.ribbonControl.Text = "ribbonControl";
     this.ribbonControl.BeforeRibbonPanelPopupClose += new DevComponents.DotNetBar.RibbonPopupCloseEventHandler(this.ribbonControl_BeforeRibbonPanelPopupClose);
     this.ribbonControl.ExpandedChanged += new System.EventHandler(this.ribbonControl_ExpandedChanged);
     //
     // buttonFile
     //
     this.buttonFile.AutoExpandOnClick = true;
     this.buttonFile.CanCustomize = false;
     this.buttonFile.HotTrackingStyle = DevComponents.DotNetBar.eHotTrackingStyle.Image;
     this.buttonFile.Image = ((System.Drawing.Image)(resources.GetObject("buttonFile.Image")));
     this.buttonFile.ImageFixedSize = new System.Drawing.Size(16, 16);
     this.buttonFile.ImagePaddingHorizontal = 0;
     this.buttonFile.ImagePaddingVertical = 0;
     this.buttonFile.Name = "buttonFile";
     this.buttonFile.ShowSubItems = false;
     this.buttonFile.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] {
     this.itemContainer1});
     this.buttonFile.Text = "&系统";
     //
     // itemContainer1
     //
     //
     //
     //
     this.itemContainer1.BackgroundStyle.Class = "RibbonFileMenuContainer";
     this.itemContainer1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.itemContainer1.LayoutOrientation = DevComponents.DotNetBar.eOrientation.Vertical;
     this.itemContainer1.Name = "itemContainer1";
     this.itemContainer1.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] {
     this.itemContainer2,
     this.btnCPassword,
     this.btnClose,
     this.itemContainer4});
     //
     //
     //
     this.itemContainer1.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     //
     // itemContainer2
     //
     //
     //
     //
     this.itemContainer2.BackgroundStyle.Class = "RibbonFileMenuTwoColumnContainer";
     this.itemContainer2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.itemContainer2.ItemSpacing = 0;
     this.itemContainer2.Name = "itemContainer2";
     this.itemContainer2.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] {
     this.itemContainer3});
     //
     //
     //
     this.itemContainer2.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     //
     // itemContainer3
     //
     //
     //
     //
     this.itemContainer3.BackgroundStyle.Class = "RibbonFileMenuColumnOneContainer";
     this.itemContainer3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.itemContainer3.LayoutOrientation = DevComponents.DotNetBar.eOrientation.Vertical;
     this.itemContainer3.MinimumSize = new System.Drawing.Size(120, 0);
     this.itemContainer3.Name = "itemContainer3";
     this.itemContainer3.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] {
     this.tnLogin,
     this.tnLogout});
     //
     //
     //
     this.itemContainer3.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     //
     // tnLogin
     //
     this.tnLogin.BeginGroup = true;
     this.tnLogin.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
     this.tnLogin.Image = ((System.Drawing.Image)(resources.GetObject("tnLogin.Image")));
     this.tnLogin.Name = "tnLogin";
     this.tnLogin.SubItemsExpandWidth = 24;
     this.tnLogin.Text = "登录(&L)";
     this.tnLogin.Click += new System.EventHandler(this.btnLogin_Click);
     //
     // tnLogout
     //
     this.tnLogout.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
     this.tnLogout.Image = ((System.Drawing.Image)(resources.GetObject("tnLogout.Image")));
     this.tnLogout.Name = "tnLogout";
     this.tnLogout.SubItemsExpandWidth = 24;
     this.tnLogout.Text = "注销";
     this.tnLogout.Click += new System.EventHandler(this.tnLogout_Click);
     //
     // btnCPassword
     //
     this.btnCPassword.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
     this.btnCPassword.Image = ((System.Drawing.Image)(resources.GetObject("btnCPassword.Image")));
     this.btnCPassword.Name = "btnCPassword";
     this.btnCPassword.SubItemsExpandWidth = 24;
     this.btnCPassword.Text = "修改密码(&P)";
     this.btnCPassword.Click += new System.EventHandler(this.btnCPassword_Click);
     //
     // btnClose
     //
     this.btnClose.BeginGroup = true;
     this.btnClose.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
     this.btnClose.Image = ((System.Drawing.Image)(resources.GetObject("btnClose.Image")));
     this.btnClose.Name = "btnClose";
     this.btnClose.SubItemsExpandWidth = 24;
     this.btnClose.Text = "关闭(&C)";
     this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
     //
     // itemContainer4
     //
     //
     //
     //
     this.itemContainer4.BackgroundStyle.Class = "RibbonFileMenuBottomContainer";
     this.itemContainer4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.itemContainer4.HorizontalItemAlignment = DevComponents.DotNetBar.eHorizontalItemsAlignment.Right;
     this.itemContainer4.Name = "itemContainer4";
     this.itemContainer4.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] {
     this.btnAbout,
     this.btnExit});
     //
     //
     //
     this.itemContainer4.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     //
     // btnAbout
     //
     this.btnAbout.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
     this.btnAbout.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
     this.btnAbout.Image = ((System.Drawing.Image)(resources.GetObject("btnAbout.Image")));
     this.btnAbout.Name = "btnAbout";
     this.btnAbout.SubItemsExpandWidth = 24;
     this.btnAbout.Text = "关于";
     this.btnAbout.Click += new System.EventHandler(this.btnAbout_Click);
     //
     // btnExit
     //
     this.btnExit.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
     this.btnExit.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
     this.btnExit.Image = ((System.Drawing.Image)(resources.GetObject("btnExit.Image")));
     this.btnExit.Name = "btnExit";
     this.btnExit.SubItemsExpandWidth = 24;
     this.btnExit.Text = "退出(&E)";
     this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
     //
     // buttonItem9
     //
     this.buttonItem9.AutoExpandOnClick = true;
     this.buttonItem9.ItemAlignment = DevComponents.DotNetBar.eItemAlignment.Far;
     this.buttonItem9.Name = "buttonItem9";
     this.buttonItem9.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] {
     this.buttonItem10,
     this.buttonItem11,
     this.buttonItem15,
     this.buttonItem17,
     this.buttonItem18,
     this.buttonItem19,
     this.buttonItem29,
     this.buttonItem56,
     this.buttonItem57,
     this.buttonItem58,
     this.buttonItem59,
     this.colorPickerDropDown1});
     this.buttonItem9.Text = "系统样式";
     //
     // buttonItem10
     //
     this.buttonItem10.Command = this.AppCommandTheme;
     this.buttonItem10.CommandParameter = "Metro";
     this.buttonItem10.Name = "buttonItem10";
     this.buttonItem10.OptionGroup = "style";
     this.buttonItem10.Text = "Metro/Office 2013";
     //
     // AppCommandTheme
     //
     this.AppCommandTheme.Name = "AppCommandTheme";
     this.AppCommandTheme.Executed += new System.EventHandler(this.AppCommandTheme_Executed);
     //
     // buttonItem11
     //
     this.buttonItem11.Command = this.AppCommandTheme;
     this.buttonItem11.CommandParameter = "Office2010Blue";
     this.buttonItem11.Name = "buttonItem11";
     this.buttonItem11.OptionGroup = "style";
     this.buttonItem11.Text = "Office 2010 Blue";
     //
     // buttonItem15
     //
     this.buttonItem15.Command = this.AppCommandTheme;
     this.buttonItem15.CommandParameter = "Office2010Silver";
     this.buttonItem15.Name = "buttonItem15";
     this.buttonItem15.OptionGroup = "style";
     this.buttonItem15.Text = "Office 2010 <font color=\"Silver\"><b>Silver</b></font>";
     //
     // buttonItem17
     //
     this.buttonItem17.Command = this.AppCommandTheme;
     this.buttonItem17.CommandParameter = "Office2010Black";
     this.buttonItem17.Name = "buttonItem17";
     this.buttonItem17.OptionGroup = "style";
     this.buttonItem17.Text = "Office 2010 Black";
     //
     // buttonItem18
     //
     this.buttonItem18.Command = this.AppCommandTheme;
     this.buttonItem18.CommandParameter = "VisualStudio2010Blue";
     this.buttonItem18.Name = "buttonItem18";
     this.buttonItem18.OptionGroup = "style";
     this.buttonItem18.Text = "Visual Studio 2010";
     //
     // buttonItem19
     //
     this.buttonItem19.Command = this.AppCommandTheme;
     this.buttonItem19.CommandParameter = "Windows7Blue";
     this.buttonItem19.Name = "buttonItem19";
     this.buttonItem19.OptionGroup = "style";
     this.buttonItem19.Text = "Windows 7";
     //
     // buttonItem29
     //
     this.buttonItem29.Command = this.AppCommandTheme;
     this.buttonItem29.CommandParameter = "Office2007Blue";
     this.buttonItem29.Name = "buttonItem29";
     this.buttonItem29.OptionGroup = "style";
     this.buttonItem29.Text = "Office 2007 <font color=\"Blue\"><b>Blue</b></font>";
     //
     // buttonItem56
     //
     this.buttonItem56.Command = this.AppCommandTheme;
     this.buttonItem56.CommandParameter = "Office2007Black";
     this.buttonItem56.Name = "buttonItem56";
     this.buttonItem56.OptionGroup = "style";
     this.buttonItem56.Text = "Office 2007 <font color=\"black\"><b>Black</b></font>";
     //
     // buttonItem57
     //
     this.buttonItem57.Command = this.AppCommandTheme;
     this.buttonItem57.CommandParameter = "Office2007Silver";
     this.buttonItem57.Name = "buttonItem57";
     this.buttonItem57.OptionGroup = "style";
     this.buttonItem57.Text = "Office 2007 <font color=\"Silver\"><b>Silver</b></font>";
     //
     // buttonItem58
     //
     this.buttonItem58.Command = this.AppCommandTheme;
     this.buttonItem58.CommandParameter = "Office2007VistaGlass";
     this.buttonItem58.Name = "buttonItem58";
     this.buttonItem58.OptionGroup = "style";
     this.buttonItem58.Text = "Vista Glass";
     //
     // buttonItem59
     //
     this.buttonItem59.Checked = true;
     this.buttonItem59.Command = this.AppCommandTheme;
     this.buttonItem59.CommandParameter = "VisualStudio2012Light";
     this.buttonItem59.Name = "buttonItem59";
     this.buttonItem59.OptionGroup = "style";
     this.buttonItem59.Text = "Visual Studio 2012 Light";
     //
     // colorPickerDropDown1
     //
     this.colorPickerDropDown1.BeginGroup = true;
     this.colorPickerDropDown1.Command = this.AppCommandTheme;
     this.colorPickerDropDown1.Name = "colorPickerDropDown1";
     this.colorPickerDropDown1.Text = "Custom scheme";
     this.colorPickerDropDown1.Tooltip = "Custom color scheme is created based on currently selected color table. Try selec" +
     "ting Silver or Blue color table and then creating custom color scheme.";
     //
     // switchButtonItem1
     //
     this.switchButtonItem1.ButtonHeight = 20;
     this.switchButtonItem1.ButtonWidth = 62;
     this.switchButtonItem1.Command = this.RibbonStateCommand;
     this.switchButtonItem1.ItemAlignment = DevComponents.DotNetBar.eItemAlignment.Far;
     this.switchButtonItem1.Margin.Bottom = 2;
     this.switchButtonItem1.Margin.Left = 4;
     this.switchButtonItem1.Name = "switchButtonItem1";
     this.switchButtonItem1.OffText = "显示";
     this.switchButtonItem1.OnText = "隐藏";
     this.switchButtonItem1.Tooltip = "最大化/最小化功能区";
     //
     // RibbonStateCommand
     //
     this.RibbonStateCommand.Name = "RibbonStateCommand";
     this.RibbonStateCommand.Executed += new System.EventHandler(this.RibbonStateCommand_Executed);
     //
     // qatCustomizeItem1
     //
     this.qatCustomizeItem1.Name = "qatCustomizeItem1";
     //
     // styleManager1
     //
     this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.VisualStudio2010Blue;
     this.styleManager1.MetroColorParameters = new DevComponents.DotNetBar.Metro.ColorTables.MetroColorGeneratorParameters(System.Drawing.Color.White, System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(87)))), ((int)(((byte)(154))))));
     //
     // tabStrip1
     //
     this.tabStrip1.AutoSelectAttachedControl = true;
     this.tabStrip1.CanReorderTabs = true;
     this.tabStrip1.CloseButtonOnTabsVisible = true;
     this.tabStrip1.CloseButtonPosition = DevComponents.DotNetBar.eTabCloseButtonPosition.Right;
     this.tabStrip1.CloseButtonVisible = false;
     this.tabStrip1.Dock = System.Windows.Forms.DockStyle.Top;
     this.tabStrip1.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.tabStrip1.ForeColor = System.Drawing.Color.Black;
     this.tabStrip1.Location = new System.Drawing.Point(5, 155);
     this.tabStrip1.MdiForm = this;
     this.tabStrip1.MdiTabbedDocuments = true;
     this.tabStrip1.Name = "tabStrip1";
     this.tabStrip1.SelectedTab = null;
     this.tabStrip1.SelectedTabFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.tabStrip1.Size = new System.Drawing.Size(908, 26);
     this.tabStrip1.Style = DevComponents.DotNetBar.eTabStripStyle.Metro;
     this.tabStrip1.TabAlignment = DevComponents.DotNetBar.eTabStripAlignment.Top;
     this.tabStrip1.TabIndex = 7;
     this.tabStrip1.TabLayoutType = DevComponents.DotNetBar.eTabLayoutType.FixedWithNavigationBox;
     this.tabStrip1.Text = "tabStrip1";
     //
     // microChartItem1
     //
     this.microChartItem1.Name = "microChartItem1";
     //
     // microChartItem2
     //
     this.microChartItem2.Name = "microChartItem2";
     //
     // panBottom
     //
     this.panBottom.CanvasColor = System.Drawing.SystemColors.Control;
     this.panBottom.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
     this.panBottom.Controls.Add(this.bottomControl1);
     this.panBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.panBottom.Location = new System.Drawing.Point(5, 395);
     this.panBottom.Name = "panBottom";
     this.panBottom.Size = new System.Drawing.Size(908, 28);
     this.panBottom.Style.Alignment = System.Drawing.StringAlignment.Center;
     this.panBottom.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
     this.panBottom.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
     this.panBottom.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
     this.panBottom.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
     this.panBottom.Style.GradientAngle = 90;
     this.panBottom.TabIndex = 8;
     this.panBottom.Text = "panelEx1";
     //
     // buttonItem1
     //
     this.buttonItem1.Name = "buttonItem1";
     this.buttonItem1.Text = "buttonItem1";
     //
     // buttonChangeStyle
     //
     this.buttonChangeStyle.AutoExpandOnClick = true;
     this.buttonChangeStyle.ItemAlignment = DevComponents.DotNetBar.eItemAlignment.Far;
     this.buttonChangeStyle.Name = "buttonChangeStyle";
     this.buttonChangeStyle.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] {
     this.buttonStyleMetro,
     this.buttonStyleOffice2010Blue,
     this.buttonStyleOffice2010Silver,
     this.buttonStyleOffice2010Black,
     this.buttonStyleVS2010,
     this.buttonItem62,
     this.buttonStyleOffice2007Blue,
     this.buttonStyleOffice2007Black,
     this.buttonStyleOffice2007Silver,
     this.buttonItem60,
     this.buttonItem16,
     this.buttonStyleCustom});
     this.buttonChangeStyle.Text = "Style";
     //
     // buttonStyleMetro
     //
     this.buttonStyleMetro.Command = this.AppCommandTheme;
     this.buttonStyleMetro.CommandParameter = "Metro";
     this.buttonStyleMetro.Name = "buttonStyleMetro";
     this.buttonStyleMetro.OptionGroup = "style";
     this.buttonStyleMetro.Text = "Metro/Office 2013";
     //
     // buttonStyleOffice2010Blue
     //
     this.buttonStyleOffice2010Blue.Command = this.AppCommandTheme;
     this.buttonStyleOffice2010Blue.CommandParameter = "Office2010Blue";
     this.buttonStyleOffice2010Blue.Name = "buttonStyleOffice2010Blue";
     this.buttonStyleOffice2010Blue.OptionGroup = "style";
     this.buttonStyleOffice2010Blue.Text = "Office 2010 Blue";
     //
     // buttonStyleOffice2010Silver
     //
     this.buttonStyleOffice2010Silver.Command = this.AppCommandTheme;
     this.buttonStyleOffice2010Silver.CommandParameter = "Office2010Silver";
     this.buttonStyleOffice2010Silver.Name = "buttonStyleOffice2010Silver";
     this.buttonStyleOffice2010Silver.OptionGroup = "style";
     this.buttonStyleOffice2010Silver.Text = "Office 2010 <font color=\"Silver\"><b>Silver</b></font>";
     //
     // buttonStyleOffice2010Black
     //
     this.buttonStyleOffice2010Black.Command = this.AppCommandTheme;
     this.buttonStyleOffice2010Black.CommandParameter = "Office2010Black";
     this.buttonStyleOffice2010Black.Name = "buttonStyleOffice2010Black";
     this.buttonStyleOffice2010Black.OptionGroup = "style";
     this.buttonStyleOffice2010Black.Text = "Office 2010 Black";
     //
     // buttonStyleVS2010
     //
     this.buttonStyleVS2010.Command = this.AppCommandTheme;
     this.buttonStyleVS2010.CommandParameter = "VisualStudio2010Blue";
     this.buttonStyleVS2010.Name = "buttonStyleVS2010";
     this.buttonStyleVS2010.OptionGroup = "style";
     this.buttonStyleVS2010.Text = "Visual Studio 2010";
     //
     // buttonItem62
     //
     this.buttonItem62.Command = this.AppCommandTheme;
     this.buttonItem62.CommandParameter = "Windows7Blue";
     this.buttonItem62.Name = "buttonItem62";
     this.buttonItem62.OptionGroup = "style";
     this.buttonItem62.Text = "Windows 7";
     //
     // buttonStyleOffice2007Blue
     //
     this.buttonStyleOffice2007Blue.Command = this.AppCommandTheme;
     this.buttonStyleOffice2007Blue.CommandParameter = "Office2007Blue";
     this.buttonStyleOffice2007Blue.Name = "buttonStyleOffice2007Blue";
     this.buttonStyleOffice2007Blue.OptionGroup = "style";
     this.buttonStyleOffice2007Blue.Text = "Office 2007 <font color=\"Blue\"><b>Blue</b></font>";
     //
     // buttonStyleOffice2007Black
     //
     this.buttonStyleOffice2007Black.Command = this.AppCommandTheme;
     this.buttonStyleOffice2007Black.CommandParameter = "Office2007Black";
     this.buttonStyleOffice2007Black.Name = "buttonStyleOffice2007Black";
     this.buttonStyleOffice2007Black.OptionGroup = "style";
     this.buttonStyleOffice2007Black.Text = "Office 2007 <font color=\"black\"><b>Black</b></font>";
     //
     // buttonStyleOffice2007Silver
     //
     this.buttonStyleOffice2007Silver.Command = this.AppCommandTheme;
     this.buttonStyleOffice2007Silver.CommandParameter = "Office2007Silver";
     this.buttonStyleOffice2007Silver.Name = "buttonStyleOffice2007Silver";
     this.buttonStyleOffice2007Silver.OptionGroup = "style";
     this.buttonStyleOffice2007Silver.Text = "Office 2007 <font color=\"Silver\"><b>Silver</b></font>";
     //
     // buttonItem60
     //
     this.buttonItem60.Command = this.AppCommandTheme;
     this.buttonItem60.CommandParameter = "Office2007VistaGlass";
     this.buttonItem60.Name = "buttonItem60";
     this.buttonItem60.OptionGroup = "style";
     this.buttonItem60.Text = "Vista Glass";
     //
     // buttonItem16
     //
     this.buttonItem16.Checked = true;
     this.buttonItem16.Command = this.AppCommandTheme;
     this.buttonItem16.CommandParameter = "VisualStudio2012Light";
     this.buttonItem16.Name = "buttonItem16";
     this.buttonItem16.OptionGroup = "style";
     this.buttonItem16.Text = "Visual Studio 2012 Light";
     //
     // buttonStyleCustom
     //
     this.buttonStyleCustom.BeginGroup = true;
     this.buttonStyleCustom.Command = this.AppCommandTheme;
     this.buttonStyleCustom.Name = "buttonStyleCustom";
     this.buttonStyleCustom.Text = "Custom scheme";
     this.buttonStyleCustom.Tooltip = "Custom color scheme is created based on currently selected color table. Try selec" +
     "ting Silver or Blue color table and then creating custom color scheme.";
     //
     // bottomControl1
     //
     this.bottomControl1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.bottomControl1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.bottomControl1.Location = new System.Drawing.Point(0, 0);
     this.bottomControl1.Margin = new System.Windows.Forms.Padding(0);
     this.bottomControl1.Name = "bottomControl1";
     this.bottomControl1.Size = new System.Drawing.Size(908, 28);
     this.bottomControl1.TabIndex = 0;
     //
     // RibbonShell
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(918, 425);
     this.Controls.Add(this.panBottom);
     this.Controls.Add(this.tabStrip1);
     this.Controls.Add(this.ribbonControl);
     this.IsMdiContainer = true;
     this.Name = "RibbonShell";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "AgileEAS.NET SOA中间件";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.MdiChildActivate += new System.EventHandler(this.RibbonShell_MdiChildActivate);
     this.panBottom.ResumeLayout(false);
     this.ResumeLayout(false);
 }
コード例 #19
0
        /// <summary>
        /// 更新ListView
        /// </summary>
        private void RefreshListView()
        {
            picLoading.Visible = true;

            #region DataGridView  新介面
            // 清內容
            dataGridViewX1.Rows.Clear();

            // 清表頭
            dataGridViewX1.Columns.Clear();

            // 補考群組名稱表頭
            DataGridViewColumn colGroupName = new DataGridViewColumn();

            colGroupName.CellTemplate = new DataGridViewTextBoxCell();
            colGroupName.Name         = "colGroupName";
            colGroupName.HeaderText   = "補考群組名稱";
            colGroupName.ReadOnly     = true;
            colGroupName.Width        = 200;
            dataGridViewX1.Columns.Add(colGroupName);

            // 閱卷老師表頭
            DataGridViewColumn colRefTeacher = new DataGridViewColumn();
            colRefTeacher.CellTemplate = new DataGridViewTextBoxCell();
            colRefTeacher.Name         = "colRefTeacher";
            colRefTeacher.HeaderText   = "閱卷老師表頭";
            colRefTeacher.ReadOnly     = true;
            colRefTeacher.Width        = 200;
            dataGridViewX1.Columns.Add(colRefTeacher);



            // 填寫完畢項目表頭
            DataGridViewColumn colTotalStatus = new DataGridViewColumn();

            colTotalStatus.CellTemplate = new DataGridViewTextBoxCell();
            colTotalStatus.Name         = "colTotalStatus";
            colTotalStatus.HeaderText   = "填寫完畢項目";
            colTotalStatus.ReadOnly     = true;
            colTotalStatus.Width        = 130;
            dataGridViewX1.Columns.Add(colTotalStatus);

            // 填寫完畢項目表頭
            DataGridViewColumn colDescription = new DataGridViewColumn();

            colDescription.CellTemplate = new DataGridViewTextBoxCell();
            colDescription.Name         = "colDescription";
            colDescription.HeaderText   = "描述";
            colDescription.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            colDescription.ReadOnly     = true;
            colDescription.Width        = 130;
            dataGridViewX1.Columns.Add(colDescription);


            #endregion


            // 暫停畫面控制項
            chkDisplayNotFinish.Enabled = false;
            cboMakeUpBatch.SuspendLayout();
            cboSchoolYear.SuspendLayout();
            cbosemester.SuspendLayout();
            dataGridViewX1.SuspendLayout();


            // 選擇的項目
            DevComponents.DotNetBar.ComboBoxItem selectedItem = (DevComponents.DotNetBar.ComboBoxItem)cboMakeUpBatch.SelectedItem;

            _targetBatchID = "" + selectedItem.Tag;

            _worker.RunWorkerAsync();
        }
コード例 #20
0
ファイル: Tools.cs プロジェクト: CairoLee/svn-dump
        public static void FillGrid(ref DevComponents.DotNetBar.Controls.DataGridViewX GridView, ref DevComponents.DotNetBar.ComboBoxItem Combo, EathenaConfigFile File, bool PrintComments)
        {
            GridView.Rows.Clear();
            Combo.Items.Clear();
            int n = 0;

            for (int i = 0; i < File.Configs.Count; i++)
            {
                if (PrintComments == true)
                {
                    for (int c = 0; c < File.Configs[i].Comments.Length; c++)
                    {
                        n = GridView.Rows.Add();
                        GridView.Rows[n].Tag                        = i;    // save the "real" index
                        GridView.Rows[n].Cells[0].Value             = "// " + File.Configs[i].Comments[c];
                        GridView.Rows[n].Cells[0].ReadOnly          = true;
                        GridView.Rows[n].Cells[1].ReadOnly          = true;
                        GridView.Rows[n].DefaultCellStyle.ForeColor = Color.DarkGreen;
                    }
                }

                n = GridView.Rows.Add();
                GridView.Rows[n].Tag                        = i; // save the "real" index
                GridView.Rows[n].Cells[0].Value             = File.Configs[i].Name;
                GridView.Rows[n].Cells[1].Value             = File.Configs[i].Value;
                GridView.Rows[n].DefaultCellStyle.ForeColor = Color.DarkBlue;
                GridView.Rows[n].DefaultCellStyle.Font      = new Font("Tahoma", 8.0f, FontStyle.Bold);

                GridView.Rows[n].Cells[0].ReadOnly = true;

                Combo.Items.Add(File.Configs[i].Name);
            }
        }
コード例 #21
0
ファイル: FrmIE.designer.cs プロジェクト: huoxudong125/DotNet
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmIE));
     this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
     this.webBrowser = new System.Windows.Forms.WebBrowser();
     this.BarNavigation = new DevComponents.DotNetBar.Bar();
     this.btnIEBack = new DevComponents.DotNetBar.ButtonItem();
     this.btnIEForward = new DevComponents.DotNetBar.ButtonItem();
     this.barAddress = new DevComponents.DotNetBar.ComboBoxItem();
     this.btnIEGo = new DevComponents.DotNetBar.ButtonItem();
     this.btnIEStop = new DevComponents.DotNetBar.ButtonItem();
     this.btnIERefresh = new DevComponents.DotNetBar.ButtonItem();
     this.btnIEHome = new DevComponents.DotNetBar.ButtonItem();
     this.btnIEPrint = new DevComponents.DotNetBar.ButtonItem();
     this.panelEx1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.BarNavigation)).BeginInit();
     this.SuspendLayout();
     //
     // panelEx1
     //
     this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control;
     this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
     this.panelEx1.Controls.Add(this.webBrowser);
     this.panelEx1.Controls.Add(this.BarNavigation);
     this.panelEx1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.panelEx1.Location = new System.Drawing.Point(0, 0);
     this.panelEx1.Name = "panelEx1";
     this.panelEx1.Size = new System.Drawing.Size(957, 500);
     this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center;
     this.panelEx1.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
     this.panelEx1.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
     this.panelEx1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
     this.panelEx1.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
     this.panelEx1.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
     this.panelEx1.Style.GradientAngle = 90;
     this.panelEx1.TabIndex = 0;
     this.panelEx1.Text = "panelEx1";
     //
     // webBrowser
     //
     this.webBrowser.Dock = System.Windows.Forms.DockStyle.Fill;
     this.webBrowser.Location = new System.Drawing.Point(0, 0);
     this.webBrowser.MinimumSize = new System.Drawing.Size(20, 20);
     this.webBrowser.Name = "webBrowser";
     this.webBrowser.Size = new System.Drawing.Size(957, 500);
     this.webBrowser.TabIndex = 5;
     this.webBrowser.Url = new System.Uri("http://www.baidu.com", System.UriKind.Absolute);
     this.webBrowser.DocumentCompleted += new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(this.webBrowser_DocumentCompleted);
     this.webBrowser.Navigated += new System.Windows.Forms.WebBrowserNavigatedEventHandler(this.webBrowser_Navigated);
     this.webBrowser.NewWindow += new System.ComponentModel.CancelEventHandler(this.webBrowser_NewWindow);
     //
     // BarNavigation
     //
     this.BarNavigation.AccessibleDescription = "DotNetBar Bar (BarNavigation)";
     this.BarNavigation.AccessibleName = "DotNetBar Bar";
     this.BarNavigation.AccessibleRole = System.Windows.Forms.AccessibleRole.MenuBar;
     this.BarNavigation.CanAutoHide = false;
     this.BarNavigation.CanDockBottom = false;
     this.BarNavigation.CanDockRight = false;
     this.BarNavigation.CanDockTab = false;
     this.BarNavigation.CanDockTop = false;
     this.BarNavigation.CanReorderTabs = false;
     this.BarNavigation.CanUndock = false;
     this.BarNavigation.Dock = System.Windows.Forms.DockStyle.Top;
     this.BarNavigation.DockedBorderStyle = DevComponents.DotNetBar.eBorderType.Raised;
     this.BarNavigation.DockLine = 1;
     this.BarNavigation.DockSide = DevComponents.DotNetBar.eDockSide.Document;
     this.BarNavigation.FadeEffect = true;
     this.BarNavigation.Font = new System.Drawing.Font("宋体", 9F);
     this.BarNavigation.GrabHandleStyle = DevComponents.DotNetBar.eGrabHandleStyle.Office2003;
     this.BarNavigation.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
     this.btnIEBack,
     this.btnIEForward,
     this.barAddress,
     this.btnIEGo,
     this.btnIEStop,
     this.btnIERefresh,
     this.btnIEHome,
     this.btnIEPrint});
     this.BarNavigation.Location = new System.Drawing.Point(0, 0);
     this.BarNavigation.MenuBar = true;
     this.BarNavigation.Name = "BarNavigation";
     this.BarNavigation.Size = new System.Drawing.Size(957, 38);
     this.BarNavigation.Stretch = true;
     this.BarNavigation.Style = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
     this.BarNavigation.TabIndex = 6;
     this.BarNavigation.TabStop = false;
     this.BarNavigation.Text = "IE浏览器";
     this.BarNavigation.Visible = false;
     this.BarNavigation.ItemClick += new System.EventHandler(this.BarNavigation_ItemClick);
     //
     // btnIEBack
     //
     this.btnIEBack.GlobalName = "btnIEBack";
     this.btnIEBack.Image = ((System.Drawing.Image)(resources.GetObject("btnIEBack.Image")));
     this.btnIEBack.Name = "btnIEBack";
     this.btnIEBack.Text = "&Back";
     //
     // btnIEForward
     //
     this.btnIEForward.GlobalName = "btnIEForward";
     this.btnIEForward.Image = ((System.Drawing.Image)(resources.GetObject("btnIEForward.Image")));
     this.btnIEForward.Name = "btnIEForward";
     this.btnIEForward.Text = "&Forward";
     //
     // barAddress
     //
     this.barAddress.ComboWidth = 128;
     this.barAddress.DropDownHeight = 106;
     this.barAddress.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDown;
     this.barAddress.GlobalName = "barAddress";
     this.barAddress.ItemAlignment = DevComponents.DotNetBar.eItemAlignment.Center;
     this.barAddress.LabelForeColor = System.Drawing.Color.Transparent;
     this.barAddress.Name = "barAddress";
     this.barAddress.Stretch = true;
     this.barAddress.Text = "http://";
     this.barAddress.Tooltip = "请输入查询";
     this.barAddress.WatermarkText = "请输入查询";
     //
     // btnIEGo
     //
     this.btnIEGo.Cursor = System.Windows.Forms.Cursors.Default;
     this.btnIEGo.FixedSize = new System.Drawing.Size(0, 9);
     this.btnIEGo.GlobalName = "btnIEGo";
     this.btnIEGo.Image = ((System.Drawing.Image)(resources.GetObject("btnIEGo.Image")));
     this.btnIEGo.ItemAlignment = DevComponents.DotNetBar.eItemAlignment.Center;
     this.btnIEGo.Name = "btnIEGo";
     this.btnIEGo.Shape = new DevComponents.DotNetBar.RoundRectangleShapeDescriptor(2);
     this.btnIEGo.SplitButton = true;
     this.btnIEGo.Text = "Go";
     //
     // btnIEStop
     //
     this.btnIEStop.GlobalName = "btnIEStop";
     this.btnIEStop.Image = ((System.Drawing.Image)(resources.GetObject("btnIEStop.Image")));
     this.btnIEStop.Name = "btnIEStop";
     this.btnIEStop.Text = "&Stop";
     //
     // btnIERefresh
     //
     this.btnIERefresh.GlobalName = "btnIERefresh";
     this.btnIERefresh.Image = ((System.Drawing.Image)(resources.GetObject("btnIERefresh.Image")));
     this.btnIERefresh.Name = "btnIERefresh";
     this.btnIERefresh.Text = "&Refresh";
     //
     // btnIEHome
     //
     this.btnIEHome.GlobalName = "btnIEHome";
     this.btnIEHome.Image = ((System.Drawing.Image)(resources.GetObject("btnIEHome.Image")));
     this.btnIEHome.Name = "btnIEHome";
     this.btnIEHome.Text = "&Home";
     //
     // btnIEPrint
     //
     this.btnIEPrint.BeginGroup = true;
     this.btnIEPrint.GlobalName = "btnIEPrint";
     this.btnIEPrint.Image = ((System.Drawing.Image)(resources.GetObject("btnIEPrint.Image")));
     this.btnIEPrint.Name = "btnIEPrint";
     this.btnIEPrint.Text = "&Print";
     //
     // FrmIE
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(957, 500);
     this.Controls.Add(this.panelEx1);
     this.Name = "FrmIE";
     this.Text = "导航页面";
     this.Load += new System.EventHandler(this.FrmIE_Load);
     this.panelEx1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.BarNavigation)).EndInit();
     this.ResumeLayout(false);
 }
コード例 #22
0
ファイル: FrmBeamForm.cs プロジェクト: callme119/civil
        private void Cb_BF_6SF_SelectedIndexChanged(object sender, EventArgs e)
        {
            //BFtabItem6中省份确定触发事件
            Cb_BF_6DQ.Items.Clear();
            Cb_BF_6DQ.Text = "";
            Tb_BF_6SFDQFY.Text = "";
            string[] province = new string[] { };
            switch (Cb_BF_6SF.SelectedItem.ToString())
            {
                case "北京": province = neimenggu1; break;
                case "天津": province = neimenggu2; break;
                case "上海": province = neimenggu3; break;
                case "重庆": province = neimenggu4; break;
                case "河北": province = neimenggu5; break;
                case "山西": province = neimenggu6; break;
                case "内蒙古": province = neimenggu7; break;
                case "辽宁": province = neimenggu8; break;
                case "吉林": province = neimenggu9; break;
                case "黑龙江": province = neimenggu10; break;
                case "山东": province = neimenggu11; break;
                case "江苏": province = neimenggu12; break;
                case "浙江": province = neimenggu13; break;
                case "安徽": province = neimenggu14; break;
                case "江西": province = neimenggu15; break;
                case "福建": province = neimenggu16; break;
                case "陕西": province = neimenggu17; break;
                case "甘肃": province = neimenggu18; break;
                case "宁夏": province = neimenggu19; break;
                case "青海": province = neimenggu20; break;
                case "新疆": province = neimenggu21; break;
                case "河南": province = neimenggu22; break;
                case "湖北": province = neimenggu23; break;
                case "湖南": province = neimenggu24; break;
                case "广东": province = neimenggu25; break;
                case "广西": province = neimenggu26; break;
                case "海南": province = neimenggu27; break;
                case "四川": province = neimenggu28; break;
                case "贵州": province = neimenggu29; break;
                case "云南": province = neimenggu30; break;
                case "西藏": province = neimenggu31; break;
                case "台湾": province = neimenggu32; break;
                case "香港": province = neimenggu33; break;
                case "澳门": province = neimenggu34; break;

            }
            for (int j = 0; j < province.Length; j++)
            {
                string[] city_tempreture = province[j].ToString().Split('&');
                //btnChildItem.Text = citys[0];
                DevComponents.DotNetBar.ComboBoxItem item = new DevComponents.DotNetBar.ComboBoxItem();
                item.Text = city_tempreture[0];
                Cb_BF_6DQ.Items.Add(item);
            }
            Cb_BF_6DQ.Refresh();
        }
コード例 #23
0
ファイル: CommnClass.cs プロジェクト: siszoey/geosufan
        /// <summary>
        /// 添加街坊代码
        /// </summary>
        /// <param name="pComboBoxItem"></param>
        public static void SetcmbBoxNeighbourVale(DevComponents.DotNetBar.Controls.ComboBoxEx pComboBoxItem)
        {
            if (m_cmbBoxVillage == "")
            {
                return;
            }
            //try
            //{
            //    IQueryFilter pQueryFilter = new QueryFilterClass();
            //    pQueryFilter.WhereClause = _JFDMFieldName+" Like '" + m_cmbBoxVillage + m_JFLike + "'";
            //    IFeatureCursor pFeatureCursor = m_JFFeatureClass.Search(pQueryFilter, false);
            //    int Index = m_JFFeatureClass.Fields.FindField(_JFDMFieldName);
            //    int IndexJFMC = m_JFFeatureClass.Fields.FindField(_JFMCFieldName);
            //    IFeature pFeature = pFeatureCursor.NextFeature();

            //    while (pFeature != null)
            //    {

            //        string strFieldName = pFeature.get_Value(Index).ToString();
            //        string strJFMC = pFeature.get_Value(IndexJFMC).ToString();
            //        if (strFieldName.Length >= 12)
            //        {
            //            strFieldName = strFieldName.Substring(0, 12);
            //            if (!IsExist(pComboBoxItem, GetJFMCChineseName(strFieldName, strJFMC)))
            //            {
            //                DevComponents.DotNetBar.ComboBoxItem pComboBox = new DevComponents.DotNetBar.ComboBoxItem();
            //                pComboBox.Text = GetJFMCChineseName(strFieldName, strJFMC);
            //                pComboBox.Tag = strFieldName;
            //                pComboBoxItem.Items.Add(pComboBox);
            //            }
            //        }
            //        pFeature = pFeatureCursor.NextFeature();
            //    }
            //    System.Runtime.InteropServices.Marshal.ReleaseComObject(pFeatureCursor);
            //    pFeatureCursor = null;
            //}
            //catch { }

            //added by chulili 2012-08-10
            try{
                IFeatureWorkspace pFW = Plugin.ModuleCommon.TmpWorkSpace as IFeatureWorkspace;
                IWorkspace2       pW2 = Plugin.ModuleCommon.TmpWorkSpace as IWorkspace2;
                if (pFW == null)
                {
                    return;
                }
                if (!pW2.get_NameExists(esriDatasetType.esriDTTable, "行政区字典表"))
                {
                    return;
                }
                ITable pXZQDic = pFW.OpenTable("行政区字典表");
                if (pXZQDic == null)
                {
                    return;
                }
                int ndx = pXZQDic.FindField("NAME"),
                    cdx = pXZQDic.FindField("CODE");
                if (ndx == -1 || cdx == -1)
                {
                    return;
                }
                IQueryFilter pQF = new QueryFilterClass();
                pQF.WhereClause = "CODE LIKE '" + m_cmbBoxVillage + "%'";
                ICursor pCursor = pXZQDic.Search(pQF, false);
                if (pCursor == null)
                {
                    return;
                }
                IRow pRow = pCursor.NextRow();
                //pComboBoxItem.Items.Add("");
                while (pRow != null)
                {
                    string name = pRow.get_Value(ndx).ToString(),
                           code = pRow.get_Value(cdx).ToString();
                    if (code.Length <= m_cmbBoxVillage.Length || code.Length > 12)
                    {
                        pRow = pCursor.NextRow();
                        continue;
                    }
                    DevComponents.DotNetBar.ComboBoxItem pComboBox = new DevComponents.DotNetBar.ComboBoxItem();
                    pComboBox.Text = name + "(" + code + ")";
                    pComboBox.Tag  = code;
                    pComboBoxItem.Items.Add(pComboBox);

                    pRow = pCursor.NextRow();
                }
                System.Runtime.InteropServices.Marshal.ReleaseComObject(pCursor);
                pCursor = null;
                pW2     = null;
                pFW     = null;
            }
            catch { }
        }