예제 #1
0
 /// <summary>
 /// Initializes a new instance of the TextBoxDropDown class.
 /// </summary>
 public TextBoxDropDown()
 {
     this.SetStyle(ControlStyles.Selectable, false);
     _TextBox = new TextBoxX();
     base.BackColor = SystemColors.Window;
     InitControl();
 }
예제 #2
0
        public void HienThi(DataGridViewX dGV,
            BindingNavigator bN,
            TextBoxX txtSTT,
            ComboBoxEx cmbNamHoc,
            ComboBoxEx cmbLop,
            ComboBoxEx cmbMonHoc,
            ComboBoxEx cmbGiaoVien)
        {
            BindingSource bS = new BindingSource();
               bS.DataSource = m_PhanCongData.LayDsPhanCong();

               txtSTT.DataBindings.Clear();
               txtSTT.DataBindings.Add("Text", bS, "STT");

               cmbNamHoc.DataBindings.Clear();
               cmbNamHoc.DataBindings.Add("SelectedValue", bS, "MaNamHoc");

               cmbLop.DataBindings.Clear();
               cmbLop.DataBindings.Add("SelectedValue", bS, "MaLop");

               cmbMonHoc.DataBindings.Clear();
               cmbMonHoc.DataBindings.Add("SelectedValue", bS, "MaMonHoc");

               cmbGiaoVien.DataBindings.Clear();
               cmbGiaoVien.DataBindings.Add("SelectedValue", bS, "MaGiaoVien");

               bN.BindingSource = bS;
               dGV.DataSource = bS;
        }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the ColumnNamesEditor class.
 /// </summary>
 public ColumnNamesEditor()
 {
     _TextBox = new TextBoxX();
     _TextBox.Multiline = true;
     _TextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     _TextBox.WatermarkBehavior = eWatermarkBehavior.HideNonEmpty;
     _TextBox.WatermarkText = "Use Enter key to separate custom column names";
     _TextBox.Border.Class = ElementStyleClassKeys.TextBoxBorderKey;
     _TextBox.AcceptsReturn = true;
 }
        private bool checkValue(TextBoxX txt)
        {
            bool result = true;
            if (string.IsNullOrWhiteSpace(txt.Text))
            {
                errorProvider1.SetError(txt, "必填");
                result = false;
            }
            else
                errorProvider1.SetError(txt, "");

            return result;
        }
 private void InitializeComponent()
 {
     this.pbAuthCode = new System.Windows.Forms.PictureBox();
     this.tbAuthCode = new TextBoxX();
     ((System.ComponentModel.ISupportInitialize)this.pbAuthCode).BeginInit();
     base.SuspendLayout();
     this.pbAuthCode.BackColor = System.Drawing.Color.FromArgb(254, 254, 254);
     this.pbAuthCode.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pbAuthCode.ForeColor = System.Drawing.Color.Black;
     this.pbAuthCode.Location = new System.Drawing.Point(25, 19);
     this.pbAuthCode.Name = "pbAuthCode";
     this.pbAuthCode.Size = new System.Drawing.Size(144, 50);
     this.pbAuthCode.TabIndex = 2;
     this.pbAuthCode.TabStop = false;
     this.pbAuthCode.Click += new System.EventHandler(this.pbAuthCode_Click);
     this.tbAuthCode.BackColor = System.Drawing.Color.White;
     this.tbAuthCode.Border.Class = "TextBoxBorder";
     this.tbAuthCode.Border.CornerType = eCornerType.Square;
     this.tbAuthCode.DisabledBackColor = System.Drawing.Color.White;
     this.tbAuthCode.Font = new System.Drawing.Font("SimSun", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
     this.tbAuthCode.ForeColor = System.Drawing.Color.Black;
     this.tbAuthCode.Location = new System.Drawing.Point(189, 48);
     this.tbAuthCode.Name = "tbAuthCode";
     this.tbAuthCode.PreventEnterBeep = true;
     this.tbAuthCode.Size = new System.Drawing.Size(100, 21);
     this.tbAuthCode.TabIndex = 3;
     this.tbAuthCode.TextChanged += new System.EventHandler(this.tbAuthCode_TextChanged);
     base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 12f);
     base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     base.ClientSize = new System.Drawing.Size(324, 92);
     base.Controls.Add(this.tbAuthCode);
     base.Controls.Add(this.pbAuthCode);
     this.DoubleBuffered = true;
     base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     base.MaximizeBox = false;
     base.MinimizeBox = false;
     base.Name = "AuthCodeForm";
     base.ShowIcon = false;
     base.ShowInTaskbar = false;
     base.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text = "请输入验证码";
     ((System.ComponentModel.ISupportInitialize)this.pbAuthCode).EndInit();
     base.ResumeLayout(false);
 }
예제 #6
0
파일: LogicManager.cs 프로젝트: viticm/pap2
        /// <summary>
        /// 检查流程图的有效性
        /// </summary>
        /// <param name="dataManager">数据管理器</param>
        /// <param name="name">流程图的名称</param>
        /// <param name="slotContainerList">插槽容器链表</param>
        /// <param name="connectorContainerList">连接线链表</param>
        /// <param name="logBox">输入日志窗体</param>
        /// <param name="showDetail">是否显示细节</param>
        /// <returns>流程图是否有效</returns>
        private bool CheckFlowChartAvail(DataManager dataManager, string name, List<SlotContainer> slotContainerList, List<ConnectorContainer> connectorContainerList,
            TextBoxX logBox, bool showDetail)
        {
            bool avail = true;

            // 检查连接线的有效性
            avail = CheckLineAvail(dataManager, name, connectorContainerList, logBox, showDetail);

            // 检查图元的有效性
            if (avail)
            {
                List<GraphElement> list = new List<GraphElement>();
                foreach (SlotContainer slotContainer in slotContainerList)
                {
                    list.Add(slotContainer);
                }

                foreach (ConnectorContainer line in connectorContainerList)
                {
                    list.Add(line);
                }

                avail = CheckGraphElementAvail(dataManager, name, list, logBox, showDetail);
            }

            // 检查循环的有效性
            if (avail)
            {
                avail = CheckCircleAvail(dataManager, name, slotContainerList, logBox, showDetail);
            }

            return avail;
        }
 private void InitializeComponent()
 {
     this.btnOK = new ButtonX();
     this.btnCancel = new ButtonX();
     this.tbSoundPath = new TextBoxX();
     this.groupPanel1 = new GroupPanel();
     this.labelX1 = new LabelX();
     this.groupPanel2 = new GroupPanel();
     this.rbExit = new System.Windows.Forms.RadioButton();
     this.rbHide = new System.Windows.Forms.RadioButton();
     this.btnBrowse = new ButtonX();
     this.groupPanel1.SuspendLayout();
     this.groupPanel2.SuspendLayout();
     base.SuspendLayout();
     this.btnOK.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
     this.btnOK.ColorTable = eButtonColor.OrangeWithBackground;
     this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.btnOK.Location = new System.Drawing.Point(245, 238);
     this.btnOK.Name = "btnOK";
     this.btnOK.Size = new System.Drawing.Size(75, 23);
     this.btnOK.Style = eDotNetBarStyle.StyleManagerControlled;
     this.btnOK.TabIndex = 0;
     this.btnOK.Text = "确定";
     this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
     this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
     this.btnCancel.ColorTable = eButtonColor.OrangeWithBackground;
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Location = new System.Drawing.Point(364, 238);
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Size = new System.Drawing.Size(75, 23);
     this.btnCancel.Style = eDotNetBarStyle.StyleManagerControlled;
     this.btnCancel.TabIndex = 1;
     this.btnCancel.Text = "取消";
     this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
     this.tbSoundPath.BackColor = System.Drawing.Color.White;
     this.tbSoundPath.Border.Class = "TextBoxBorder";
     this.tbSoundPath.Border.CornerType = eCornerType.Square;
     this.tbSoundPath.DisabledBackColor = System.Drawing.Color.White;
     this.tbSoundPath.ForeColor = System.Drawing.Color.Black;
     this.tbSoundPath.Location = new System.Drawing.Point(83, 9);
     this.tbSoundPath.Name = "tbSoundPath";
     this.tbSoundPath.PreventEnterBeep = true;
     this.tbSoundPath.ReadOnly = true;
     this.tbSoundPath.Size = new System.Drawing.Size(297, 21);
     this.tbSoundPath.TabIndex = 2;
     this.groupPanel1.BackColor = System.Drawing.Color.FromArgb(254, 254, 254);
     this.groupPanel1.CanvasColor = System.Drawing.Color.FromArgb(254, 254, 254);
     this.groupPanel1.ColorSchemeStyle = eDotNetBarStyle.StyleManagerControlled;
     this.groupPanel1.Controls.Add(this.btnBrowse);
     this.groupPanel1.Controls.Add(this.labelX1);
     this.groupPanel1.Controls.Add(this.tbSoundPath);
     this.groupPanel1.DisabledBackColor = System.Drawing.Color.Empty;
     this.groupPanel1.Location = new System.Drawing.Point(12, 12);
     this.groupPanel1.Name = "groupPanel1";
     this.groupPanel1.Size = new System.Drawing.Size(438, 76);
     this.groupPanel1.Style.BackColor2SchemePart = eColorSchemePart.PanelBackground2;
     this.groupPanel1.Style.BackColorGradientAngle = 90;
     this.groupPanel1.Style.BackColorSchemePart = eColorSchemePart.PanelBackground;
     this.groupPanel1.Style.BorderBottom = eStyleBorderType.Solid;
     this.groupPanel1.Style.BorderBottomWidth = 1;
     this.groupPanel1.Style.BorderColorSchemePart = eColorSchemePart.PanelBorder;
     this.groupPanel1.Style.BorderLeft = eStyleBorderType.Solid;
     this.groupPanel1.Style.BorderLeftWidth = 1;
     this.groupPanel1.Style.BorderRight = eStyleBorderType.Solid;
     this.groupPanel1.Style.BorderRightWidth = 1;
     this.groupPanel1.Style.BorderTop = eStyleBorderType.Solid;
     this.groupPanel1.Style.BorderTopWidth = 1;
     this.groupPanel1.Style.CornerDiameter = 4;
     this.groupPanel1.Style.CornerType = eCornerType.Rounded;
     this.groupPanel1.Style.TextColorSchemePart = eColorSchemePart.PanelText;
     this.groupPanel1.Style.TextLineAlignment = eStyleTextAlignment.Near;
     this.groupPanel1.StyleMouseDown.CornerType = eCornerType.Square;
     this.groupPanel1.StyleMouseOver.CornerType = eCornerType.Square;
     this.groupPanel1.TabIndex = 3;
     this.groupPanel1.Text = "声音提醒";
     this.labelX1.BackColor = System.Drawing.Color.Transparent;
     this.labelX1.BackgroundStyle.CornerType = eCornerType.Square;
     this.labelX1.ForeColor = System.Drawing.Color.Black;
     this.labelX1.Location = new System.Drawing.Point(15, 9);
     this.labelX1.Name = "labelX1";
     this.labelX1.Size = new System.Drawing.Size(68, 23);
     this.labelX1.Style = eDotNetBarStyle.StyleManagerControlled;
     this.labelX1.TabIndex = 3;
     this.labelX1.Text = "声音路径:";
     this.groupPanel2.BackColor = System.Drawing.Color.FromArgb(254, 254, 254);
     this.groupPanel2.CanvasColor = System.Drawing.Color.FromArgb(254, 254, 254);
     this.groupPanel2.ColorSchemeStyle = eDotNetBarStyle.StyleManagerControlled;
     this.groupPanel2.Controls.Add(this.rbHide);
     this.groupPanel2.Controls.Add(this.rbExit);
     this.groupPanel2.DisabledBackColor = System.Drawing.Color.Empty;
     this.groupPanel2.Location = new System.Drawing.Point(12, 102);
     this.groupPanel2.Name = "groupPanel2";
     this.groupPanel2.Size = new System.Drawing.Size(438, 100);
     this.groupPanel2.Style.BackColor2SchemePart = eColorSchemePart.PanelBackground2;
     this.groupPanel2.Style.BackColorGradientAngle = 90;
     this.groupPanel2.Style.BackColorSchemePart = eColorSchemePart.PanelBackground;
     this.groupPanel2.Style.BorderBottom = eStyleBorderType.Solid;
     this.groupPanel2.Style.BorderBottomWidth = 1;
     this.groupPanel2.Style.BorderColorSchemePart = eColorSchemePart.PanelBorder;
     this.groupPanel2.Style.BorderLeft = eStyleBorderType.Solid;
     this.groupPanel2.Style.BorderLeftWidth = 1;
     this.groupPanel2.Style.BorderRight = eStyleBorderType.Solid;
     this.groupPanel2.Style.BorderRightWidth = 1;
     this.groupPanel2.Style.BorderTop = eStyleBorderType.Solid;
     this.groupPanel2.Style.BorderTopWidth = 1;
     this.groupPanel2.Style.CornerDiameter = 4;
     this.groupPanel2.Style.CornerType = eCornerType.Rounded;
     this.groupPanel2.Style.TextColorSchemePart = eColorSchemePart.PanelText;
     this.groupPanel2.Style.TextLineAlignment = eStyleTextAlignment.Near;
     this.groupPanel2.StyleMouseDown.CornerType = eCornerType.Square;
     this.groupPanel2.StyleMouseOver.CornerType = eCornerType.Square;
     this.groupPanel2.TabIndex = 4;
     this.groupPanel2.Text = "窗口关闭";
     this.rbExit.AutoSize = true;
     this.rbExit.BackColor = System.Drawing.Color.FromArgb(254, 254, 254);
     this.rbExit.ForeColor = System.Drawing.Color.Black;
     this.rbExit.Location = new System.Drawing.Point(15, 16);
     this.rbExit.Name = "rbExit";
     this.rbExit.Size = new System.Drawing.Size(95, 16);
     this.rbExit.TabIndex = 0;
     this.rbExit.Text = "直接退出程序";
     this.rbExit.UseVisualStyleBackColor = false;
     this.rbHide.AutoSize = true;
     this.rbHide.BackColor = System.Drawing.Color.FromArgb(254, 254, 254);
     this.rbHide.Checked = true;
     this.rbHide.ForeColor = System.Drawing.Color.Black;
     this.rbHide.Location = new System.Drawing.Point(15, 48);
     this.rbHide.Name = "rbHide";
     this.rbHide.Size = new System.Drawing.Size(83, 16);
     this.rbHide.TabIndex = 1;
     this.rbHide.TabStop = true;
     this.rbHide.Text = "隐藏到托盘";
     this.rbHide.UseVisualStyleBackColor = false;
     this.btnBrowse.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
     this.btnBrowse.ColorTable = eButtonColor.OrangeWithBackground;
     this.btnBrowse.Location = new System.Drawing.Point(387, 8);
     this.btnBrowse.Name = "btnBrowse";
     this.btnBrowse.Size = new System.Drawing.Size(37, 23);
     this.btnBrowse.Style = eDotNetBarStyle.StyleManagerControlled;
     this.btnBrowse.TabIndex = 4;
     this.btnBrowse.Text = "...";
     this.btnBrowse.Click += new System.EventHandler(this.btnBrowse_Click);
     base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 12f);
     base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     base.ClientSize = new System.Drawing.Size(462, 279);
     base.Controls.Add(this.groupPanel2);
     base.Controls.Add(this.groupPanel1);
     base.Controls.Add(this.btnCancel);
     base.Controls.Add(this.btnOK);
     this.DoubleBuffered = true;
     base.MaximizeBox = false;
     base.MinimizeBox = false;
     base.Name = "SettingForm";
     base.ShowIcon = false;
     base.ShowInTaskbar = false;
     base.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text = "设置";
     this.groupPanel1.ResumeLayout(false);
     this.groupPanel2.ResumeLayout(false);
     this.groupPanel2.PerformLayout();
     base.ResumeLayout(false);
 }
예제 #8
0
        public void HienThi(DataGridViewX dGV,
            BindingNavigator bN,
            TextBoxX txtMaLop,
            TextBoxX txtTenLop,
            ComboBoxEx cmbKhoiLop,
            ComboBoxEx cmbNamHoc,
            IntegerInput iniSiSo,
            ComboBoxEx cmbGiaoVien)
        {
            BindingSource bS = new BindingSource();
            bS.DataSource = m_LopData.LayDsLop();

            bN.BindingSource = bS;
            dGV.DataSource = bS;

            txtMaLop.DataBindings.Clear();
            txtMaLop.DataBindings.Add("Text", bS, "MaLop");

            txtTenLop.DataBindings.Clear();
            txtTenLop.DataBindings.Add("Text", bS, "TenLop");

            cmbKhoiLop.DataBindings.Clear();
            cmbKhoiLop.DataBindings.Add("SelectedValue", bS, "MaKhoiLop");

            cmbNamHoc.DataBindings.Clear();
            cmbNamHoc.DataBindings.Add("SelectedValue", bS, "MaNamHoc");

            iniSiSo.DataBindings.Clear();
            iniSiSo.DataBindings.Add("Text", bS, "SiSo");

            cmbGiaoVien.DataBindings.Clear();
            cmbGiaoVien.DataBindings.Add("SelectedValue", bS, "MaGiaoVien");
        }
예제 #9
0
		private void CreateTextBox()
		{
            TextBoxX oldTextBox = null;
            if (m_TextBox != null)
            {
                m_TextBox.MouseEnter -= new EventHandler(this.TextBoxMouseEnter);
                m_TextBox.MouseLeave -= new EventHandler(this.TextBoxMouseLeave);
                m_TextBox.MouseHover -= new EventHandler(this.TextBoxMouseHover);
                m_TextBox.LostFocus -= new EventHandler(this.TextBoxLostFocus);
                m_TextBox.GotFocus -= new EventHandler(this.TextBoxGotFocus);
                m_TextBox.TextChanged -= new EventHandler(this.TextBoxTextChanged);
                m_TextBox.KeyDown -= new System.Windows.Forms.KeyEventHandler(this.TextBoxKeyDown);
                m_TextBox.KeyPress -= new System.Windows.Forms.KeyPressEventHandler(this.TextBoxKeyPress);
                m_TextBox.KeyUp -= new System.Windows.Forms.KeyEventHandler(this.TextBoxKeyUp);
#if FRAMEWORK20
                m_TextBox.ButtonCustomClick -= new EventHandler(TextBoxButtonCustomClick);
                m_TextBox.ButtonCustom2Click -= new EventHandler(TextBoxButtonCustom2Click);
#endif
                oldTextBox = m_TextBox;
                m_TextBox = null;
            }
			m_TextBox=new TextBoxX(true);
			m_TextBox.BorderStyle=System.Windows.Forms.BorderStyle.None;
			m_TextBox.AutoSize=false;
			m_TextBox.Visible=false;
            m_TextBox.TabStop = false;
            if (oldTextBox != null)
            {
                m_TextBox.MaxLength = oldTextBox.MaxLength;
                m_TextBox.UseSystemPasswordChar = oldTextBox.UseSystemPasswordChar;
                m_TextBox.PasswordChar = oldTextBox.PasswordChar;
                m_TextBox.WatermarkEnabled = oldTextBox.WatermarkEnabled;
                m_TextBox.WatermarkText = oldTextBox.WatermarkText;
                m_TextBox.WatermarkFont = oldTextBox.WatermarkFont;
                m_TextBox.WatermarkColor = oldTextBox.WatermarkColor;
                m_TextBox.WatermarkBehavior = oldTextBox.WatermarkBehavior;
                m_TextBox.FocusHighlightEnabled = oldTextBox.FocusHighlightEnabled;
                m_TextBox.FocusHighlightColor = oldTextBox.FocusHighlightColor;

                oldTextBox.Dispose();
            }
			m_TextBox.MouseEnter+=new EventHandler(this.TextBoxMouseEnter);
			m_TextBox.MouseLeave+=new EventHandler(this.TextBoxMouseLeave);
			m_TextBox.MouseHover+=new EventHandler(this.TextBoxMouseHover);
			m_TextBox.LostFocus+=new EventHandler(this.TextBoxLostFocus);
			m_TextBox.GotFocus+=new EventHandler(this.TextBoxGotFocus);
			m_TextBox.TextChanged+=new EventHandler(this.TextBoxTextChanged);
			m_TextBox.KeyDown+=new System.Windows.Forms.KeyEventHandler(this.TextBoxKeyDown);
			m_TextBox.KeyPress+=new System.Windows.Forms.KeyPressEventHandler(this.TextBoxKeyPress);
			m_TextBox.KeyUp+=new System.Windows.Forms.KeyEventHandler(this.TextBoxKeyUp);
			#if FRAMEWORK20
            m_TextBox.ButtonCustomClick += new EventHandler(TextBoxButtonCustomClick);
            m_TextBox.ButtonCustom2Click += new EventHandler(TextBoxButtonCustom2Click);
			#endif
			m_TextBox.Text=this.Text;
			m_TextBox.SelectionStart=0;

			if(this.ContainerControl!=null)
			{
				System.Windows.Forms.Control objCtrl=this.ContainerControl as System.Windows.Forms.Control;
				if(objCtrl!=null)
					objCtrl.Controls.Add(m_TextBox);
			}

			if(this.Displayed)
			{
				m_TextBox.Visible=true;
				this.Refresh();
			}

			CustomizeChanged();

		}
        /// <summary>
        /// TextBox 用
        /// </summary>
        /// <param name="strValue"></param>
        /// <param name="obj"></param>
        /// <param name="logObjName"></param>
        /// <returns></returns>
        public TextBoxX SetFormData(string strValue, TextBoxX obj, string logObjName)
        {
            if (string.IsNullOrEmpty(strValue))
            {
                obj.Text = "";
                _prlp.SetBeforeSaveText(logObjName, "");
            }
            else
            {
                obj.Text = strValue;
                _prlp.SetBeforeSaveText(logObjName, strValue);
            }

            return obj;
        }
 private void InitializeComponent()
 {
     this.labelX1 = new LabelX();
     this.labelX2 = new LabelX();
     this.pbAuthCode = new System.Windows.Forms.PictureBox();
     this.tbOrderAuthCode = new TextBoxX();
     this.labelX3 = new LabelX();
     this.labelX4 = new LabelX();
     this.labelX5 = new LabelX();
     this.labelX6 = new LabelX();
     this.lbxRegTime = new ListBoxAdv();
     this.lbDoctorName = new LabelX();
     this.lbHospital = new LabelX();
     this.lbUserName = new LabelX();
     this.lbPhone = new LabelX();
     this.lbCardId = new LabelX();
     this.lbFee = new LabelX();
     this.labelX7 = new LabelX();
     this.lbVisitTime = new LabelX();
     this.lbMessage = new LabelX();
     this.labelX8 = new LabelX();
     ((System.ComponentModel.ISupportInitialize)this.pbAuthCode).BeginInit();
     base.SuspendLayout();
     this.labelX1.BackColor = System.Drawing.Color.Transparent;
     this.labelX1.BackgroundStyle.CornerType = eCornerType.Square;
     this.labelX1.ForeColor = System.Drawing.Color.Black;
     this.labelX1.Location = new System.Drawing.Point(36, 69);
     this.labelX1.Name = "labelX1";
     this.labelX1.Size = new System.Drawing.Size(75, 23);
     this.labelX1.Style = eDotNetBarStyle.StyleManagerControlled;
     this.labelX1.TabIndex = 0;
     this.labelX1.Text = "就诊人:";
     this.labelX2.BackColor = System.Drawing.Color.Transparent;
     this.labelX2.BackgroundStyle.CornerType = eCornerType.Square;
     this.labelX2.ForeColor = System.Drawing.Color.Black;
     this.labelX2.Location = new System.Drawing.Point(28, 399);
     this.labelX2.Name = "labelX2";
     this.labelX2.Size = new System.Drawing.Size(75, 23);
     this.labelX2.Style = eDotNetBarStyle.StyleManagerControlled;
     this.labelX2.TabIndex = 3;
     this.labelX2.Text = "验证码:";
     this.pbAuthCode.BackColor = System.Drawing.Color.FromArgb(254, 254, 254);
     this.pbAuthCode.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.pbAuthCode.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.pbAuthCode.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pbAuthCode.ForeColor = System.Drawing.Color.Black;
     this.pbAuthCode.Location = new System.Drawing.Point(191, 380);
     this.pbAuthCode.Name = "pbAuthCode";
     this.pbAuthCode.Size = new System.Drawing.Size(142, 53);
     this.pbAuthCode.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.pbAuthCode.TabIndex = 4;
     this.pbAuthCode.TabStop = false;
     this.pbAuthCode.Click += new System.EventHandler(this.pbAuthCode_Click);
     this.tbOrderAuthCode.BackColor = System.Drawing.Color.White;
     this.tbOrderAuthCode.Border.Class = "TextBoxBorder";
     this.tbOrderAuthCode.Border.CornerType = eCornerType.Square;
     this.tbOrderAuthCode.DisabledBackColor = System.Drawing.Color.White;
     this.tbOrderAuthCode.ForeColor = System.Drawing.Color.Black;
     this.tbOrderAuthCode.Location = new System.Drawing.Point(92, 398);
     this.tbOrderAuthCode.Name = "tbOrderAuthCode";
     this.tbOrderAuthCode.PreventEnterBeep = true;
     this.tbOrderAuthCode.Size = new System.Drawing.Size(93, 23);
     this.tbOrderAuthCode.TabIndex = 5;
     this.tbOrderAuthCode.TextChanged += new System.EventHandler(this.tbOrderAuthCode_TextChanged);
     this.tbOrderAuthCode.Enter += new System.EventHandler(this.tbOrderAuthCode_Enter);
     this.labelX3.BackColor = System.Drawing.Color.Transparent;
     this.labelX3.BackgroundStyle.CornerType = eCornerType.Square;
     this.labelX3.ForeColor = System.Drawing.Color.Black;
     this.labelX3.Location = new System.Drawing.Point(321, 69);
     this.labelX3.Name = "labelX3";
     this.labelX3.Size = new System.Drawing.Size(75, 23);
     this.labelX3.Style = eDotNetBarStyle.StyleManagerControlled;
     this.labelX3.TabIndex = 6;
     this.labelX3.Text = "证件号:";
     this.labelX4.BackColor = System.Drawing.Color.Transparent;
     this.labelX4.BackgroundStyle.CornerType = eCornerType.Square;
     this.labelX4.ForeColor = System.Drawing.Color.Black;
     this.labelX4.Location = new System.Drawing.Point(27, 98);
     this.labelX4.Name = "labelX4";
     this.labelX4.Size = new System.Drawing.Size(84, 23);
     this.labelX4.Style = eDotNetBarStyle.StyleManagerControlled;
     this.labelX4.TabIndex = 7;
     this.labelX4.Text = "联系电话:";
     this.labelX5.BackColor = System.Drawing.Color.Transparent;
     this.labelX5.BackgroundStyle.CornerType = eCornerType.Square;
     this.labelX5.ForeColor = System.Drawing.Color.Black;
     this.labelX5.Location = new System.Drawing.Point(323, 98);
     this.labelX5.Name = "labelX5";
     this.labelX5.Size = new System.Drawing.Size(72, 23);
     this.labelX5.Style = eDotNetBarStyle.StyleManagerControlled;
     this.labelX5.TabIndex = 8;
     this.labelX5.Text = "挂号费:";
     this.labelX6.BackColor = System.Drawing.Color.Transparent;
     this.labelX6.BackgroundStyle.CornerType = eCornerType.Square;
     this.labelX6.ForeColor = System.Drawing.Color.Black;
     this.labelX6.Location = new System.Drawing.Point(36, 16);
     this.labelX6.Name = "labelX6";
     this.labelX6.Size = new System.Drawing.Size(84, 23);
     this.labelX6.Style = eDotNetBarStyle.StyleManagerControlled;
     this.labelX6.TabIndex = 9;
     this.labelX6.Text = "预约医生:";
     this.lbxRegTime.AutoScroll = true;
     this.lbxRegTime.BackColor = System.Drawing.Color.FromArgb(254, 254, 254);
     this.lbxRegTime.BackgroundStyle.Class = "ListBoxAdv";
     this.lbxRegTime.BackgroundStyle.CornerType = eCornerType.Square;
     this.lbxRegTime.ContainerControlProcessDialogKey = true;
     this.lbxRegTime.DragDropSupport = true;
     this.lbxRegTime.ForeColor = System.Drawing.Color.Black;
     this.lbxRegTime.Location = new System.Drawing.Point(24, 174);
     this.lbxRegTime.Name = "lbxRegTime";
     this.lbxRegTime.Size = new System.Drawing.Size(581, 200);
     this.lbxRegTime.Style = eDotNetBarStyle.StyleManagerControlled;
     this.lbxRegTime.TabIndex = 11;
     this.lbxRegTime.Text = "listBoxAdv1";
     this.lbxRegTime.SelectedIndexChanged += new System.EventHandler(this.lbxRegTime_SelectedIndexChanged);
     this.lbDoctorName.BackColor = System.Drawing.Color.Transparent;
     this.lbDoctorName.BackgroundStyle.CornerType = eCornerType.Square;
     this.lbDoctorName.ForeColor = System.Drawing.Color.Black;
     this.lbDoctorName.Location = new System.Drawing.Point(111, 16);
     this.lbDoctorName.Name = "lbDoctorName";
     this.lbDoctorName.Size = new System.Drawing.Size(127, 23);
     this.lbDoctorName.Style = eDotNetBarStyle.StyleManagerControlled;
     this.lbDoctorName.TabIndex = 12;
     this.lbHospital.BackColor = System.Drawing.Color.Transparent;
     this.lbHospital.BackgroundStyle.CornerType = eCornerType.Square;
     this.lbHospital.ForeColor = System.Drawing.Color.Black;
     this.lbHospital.Location = new System.Drawing.Point(111, 42);
     this.lbHospital.Name = "lbHospital";
     this.lbHospital.Size = new System.Drawing.Size(464, 23);
     this.lbHospital.Style = eDotNetBarStyle.StyleManagerControlled;
     this.lbHospital.TabIndex = 13;
     this.lbUserName.BackColor = System.Drawing.Color.Transparent;
     this.lbUserName.BackgroundStyle.CornerType = eCornerType.Square;
     this.lbUserName.ForeColor = System.Drawing.Color.Black;
     this.lbUserName.Location = new System.Drawing.Point(111, 69);
     this.lbUserName.Name = "lbUserName";
     this.lbUserName.Size = new System.Drawing.Size(127, 23);
     this.lbUserName.Style = eDotNetBarStyle.StyleManagerControlled;
     this.lbUserName.TabIndex = 14;
     this.lbPhone.BackColor = System.Drawing.Color.Transparent;
     this.lbPhone.BackgroundStyle.CornerType = eCornerType.Square;
     this.lbPhone.ForeColor = System.Drawing.Color.Black;
     this.lbPhone.Location = new System.Drawing.Point(111, 98);
     this.lbPhone.Name = "lbPhone";
     this.lbPhone.Size = new System.Drawing.Size(127, 23);
     this.lbPhone.Style = eDotNetBarStyle.StyleManagerControlled;
     this.lbPhone.TabIndex = 15;
     this.lbCardId.BackColor = System.Drawing.Color.Transparent;
     this.lbCardId.BackgroundStyle.CornerType = eCornerType.Square;
     this.lbCardId.ForeColor = System.Drawing.Color.Black;
     this.lbCardId.Location = new System.Drawing.Point(384, 69);
     this.lbCardId.Name = "lbCardId";
     this.lbCardId.Size = new System.Drawing.Size(191, 23);
     this.lbCardId.Style = eDotNetBarStyle.StyleManagerControlled;
     this.lbCardId.TabIndex = 16;
     this.lbFee.BackColor = System.Drawing.Color.Transparent;
     this.lbFee.BackgroundStyle.CornerType = eCornerType.Square;
     this.lbFee.Font = new System.Drawing.Font("Microsoft YaHei", 10.5f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 134);
     this.lbFee.ForeColor = System.Drawing.Color.Black;
     this.lbFee.Location = new System.Drawing.Point(384, 98);
     this.lbFee.Name = "lbFee";
     this.lbFee.Size = new System.Drawing.Size(127, 23);
     this.lbFee.Style = eDotNetBarStyle.StyleManagerControlled;
     this.lbFee.TabIndex = 17;
     this.labelX7.BackColor = System.Drawing.Color.Transparent;
     this.labelX7.BackgroundStyle.CornerType = eCornerType.Square;
     this.labelX7.ForeColor = System.Drawing.Color.Black;
     this.labelX7.Location = new System.Drawing.Point(27, 127);
     this.labelX7.Name = "labelX7";
     this.labelX7.Size = new System.Drawing.Size(84, 23);
     this.labelX7.Style = eDotNetBarStyle.StyleManagerControlled;
     this.labelX7.TabIndex = 18;
     this.labelX7.Text = "就诊时间:";
     this.lbVisitTime.BackColor = System.Drawing.Color.Transparent;
     this.lbVisitTime.BackgroundStyle.CornerType = eCornerType.Square;
     this.lbVisitTime.ForeColor = System.Drawing.Color.Black;
     this.lbVisitTime.Location = new System.Drawing.Point(111, 126);
     this.lbVisitTime.Name = "lbVisitTime";
     this.lbVisitTime.Size = new System.Drawing.Size(194, 23);
     this.lbVisitTime.Style = eDotNetBarStyle.StyleManagerControlled;
     this.lbVisitTime.TabIndex = 19;
     this.lbMessage.BackColor = System.Drawing.Color.Transparent;
     this.lbMessage.BackgroundStyle.CornerType = eCornerType.Square;
     this.lbMessage.ForeColor = System.Drawing.Color.Black;
     this.lbMessage.Location = new System.Drawing.Point(339, 389);
     this.lbMessage.Name = "lbMessage";
     this.lbMessage.Size = new System.Drawing.Size(274, 35);
     this.lbMessage.Style = eDotNetBarStyle.StyleManagerControlled;
     this.lbMessage.TabIndex = 20;
     this.labelX8.BackgroundStyle.CornerType = eCornerType.Square;
     this.labelX8.Location = new System.Drawing.Point(25, 151);
     this.labelX8.Name = "labelX8";
     this.labelX8.Size = new System.Drawing.Size(280, 23);
     this.labelX8.Style = eDotNetBarStyle.StyleManagerControlled;
     this.labelX8.TabIndex = 22;
     this.labelX8.Text = "<font color=\"Red\">(请在以下时间列表中选择后填写验证码)</font>";
     base.AutoScaleDimensions = new System.Drawing.SizeF(7f, 14f);
     base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     base.ClientSize = new System.Drawing.Size(625, 438);
     base.Controls.Add(this.labelX8);
     base.Controls.Add(this.lbMessage);
     base.Controls.Add(this.lbVisitTime);
     base.Controls.Add(this.labelX7);
     base.Controls.Add(this.lbFee);
     base.Controls.Add(this.lbCardId);
     base.Controls.Add(this.lbPhone);
     base.Controls.Add(this.lbUserName);
     base.Controls.Add(this.lbHospital);
     base.Controls.Add(this.lbDoctorName);
     base.Controls.Add(this.lbxRegTime);
     base.Controls.Add(this.labelX6);
     base.Controls.Add(this.labelX5);
     base.Controls.Add(this.labelX4);
     base.Controls.Add(this.labelX3);
     base.Controls.Add(this.tbOrderAuthCode);
     base.Controls.Add(this.pbAuthCode);
     base.Controls.Add(this.labelX2);
     base.Controls.Add(this.labelX1);
     this.DoubleBuffered = true;
     this.Font = new System.Drawing.Font("SimSun", 10.5f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
     base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     base.MaximizeBox = false;
     base.MinimizeBox = false;
     base.Name = "OrderForm";
     base.ShowIcon = false;
     base.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text = "订单信息";
     base.Load += new System.EventHandler(this.OrderForm_Load);
     ((System.ComponentModel.ISupportInitialize)this.pbAuthCode).EndInit();
     base.ResumeLayout(false);
 }
예제 #12
0
 private void labelX_predmet_DoubleClick(object sender, System.EventArgs e)
 {
     var lbl = (sender as LabelX);
     if (lbl != null)
     {
         _lastLabel = lbl;
         _lastTbx = new TextBoxX { Size = new Size(lbl.Size.Width - 5, lbl.Size.Height), Location = new Point(lbl.Location.X+4, lbl.Location.Y + 4), Text = lbl.Text, BackColor = Color.FromArgb(255,65,66,66)};
         _lastTbx.LostFocus += tbx_LostFocus;
         _lastTbx.KeyDown += _lastTbx_KeyDown;
         Controls.Add(_lastTbx);
         _lastTbx.BringToFront();
         _lastTbx.Focus();
     }
 }
예제 #13
0
 public static bool MandatoryChecking(TextBoxX textbox)
 {
     return !String.IsNullOrEmpty(textbox.Text);
 }
예제 #14
0
 private string GetOptionalString(TextBoxX textbox, CheckBoxX checkBox)
 {
     return checkBox.Checked ? textbox.Text : null;
 }
예제 #15
0
 private string GetOptionalStr(CheckBoxX cbx, TextBoxX box)
 {
     if (cbx.Checked) return box.Text;
     else return null;
 }
예제 #16
0
 private void LoadOptionalStr(string value, CheckBoxX cbx, TextBoxX box)
 {
     if (value == null) cbx.Checked = false;
     else { cbx.Checked = true; box.Text = value; }
 }
예제 #17
0
 public FormKeyboard(TextBoxX txtBox)
 {
     InitializeComponent();
     _textBox = txtBox;
     this.Load += new EventHandler(FormKeyboard_Load);
 }
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
     this.styleManager = new DevComponents.DotNetBar.StyleManager(this.components);
     this.comboItem31 = new DevComponents.Editors.ComboItem();
     this.comboItem14 = new DevComponents.Editors.ComboItem();
     this.comboItem15 = new DevComponents.Editors.ComboItem();
     this.comboItem16 = new DevComponents.Editors.ComboItem();
     this.comboItem17 = new DevComponents.Editors.ComboItem();
     this.comboItem18 = new DevComponents.Editors.ComboItem();
     this.comboItem19 = new DevComponents.Editors.ComboItem();
     this.comboItem20 = new DevComponents.Editors.ComboItem();
     this.comboItem21 = new DevComponents.Editors.ComboItem();
     this.comboItem22 = new DevComponents.Editors.ComboItem();
     this.comboItem23 = new DevComponents.Editors.ComboItem();
     this.comboItem24 = new DevComponents.Editors.ComboItem();
     this.comboItem25 = new DevComponents.Editors.ComboItem();
     this.comboItem26 = new DevComponents.Editors.ComboItem();
     this.comboItem27 = new DevComponents.Editors.ComboItem();
     this.comboItem28 = new DevComponents.Editors.ComboItem();
     this.comboItem29 = new DevComponents.Editors.ComboItem();
     this.comboItem30 = new DevComponents.Editors.ComboItem();
     this.comboItem32 = new DevComponents.Editors.ComboItem();
     this.comboItem33 = new DevComponents.Editors.ComboItem();
     this.comboItem34 = new DevComponents.Editors.ComboItem();
     this.comboItem35 = new DevComponents.Editors.ComboItem();
     this.comboItem36 = new DevComponents.Editors.ComboItem();
     this.comboItem37 = new DevComponents.Editors.ComboItem();
     this.comboItem38 = new DevComponents.Editors.ComboItem();
     this.comboItem39 = new DevComponents.Editors.ComboItem();
     this.comboItem40 = new DevComponents.Editors.ComboItem();
     this.comboItem41 = new DevComponents.Editors.ComboItem();
     this.comboItem42 = new DevComponents.Editors.ComboItem();
     this.comboItem43 = new DevComponents.Editors.ComboItem();
     this.comboItem44 = new DevComponents.Editors.ComboItem();
     this.comboItem45 = new DevComponents.Editors.ComboItem();
     this.comboItem46 = new DevComponents.Editors.ComboItem();
     this.comboItem47 = new DevComponents.Editors.ComboItem();
     this.comboItem48 = new DevComponents.Editors.ComboItem();
     this.comboItem49 = new DevComponents.Editors.ComboItem();
     this.comboItem50 = new DevComponents.Editors.ComboItem();
     this.comboItem51 = new DevComponents.Editors.ComboItem();
     this.comboItem52 = new DevComponents.Editors.ComboItem();
     this.comboItem53 = new DevComponents.Editors.ComboItem();
     this.comboItem54 = new DevComponents.Editors.ComboItem();
     this.comboItem55 = new DevComponents.Editors.ComboItem();
     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.comboItem10 = new DevComponents.Editors.ComboItem();
     this.comboItem11 = new DevComponents.Editors.ComboItem();
     this.comboItem12 = new DevComponents.Editors.ComboItem();
     this.comboItem13 = new DevComponents.Editors.ComboItem();
     this.metroShell1 = new DevComponents.DotNetBar.Metro.MetroShell();
     this.metroShell2 = new DevComponents.DotNetBar.Metro.MetroShell();
     this.metroTabPanel1 = new DevComponents.DotNetBar.Metro.MetroTabPanel();
     this.lnbHelp = new System.Windows.Forms.LinkLabel();
     this.labelX1 = new DevComponents.DotNetBar.LabelX();
     this.lbCredibility = new DevComponents.DotNetBar.LabelX();
     this.lbName = new DevComponents.DotNetBar.LabelX();
     this.btnRegister = new DevComponents.DotNetBar.ButtonX();
     this.btnLogin = new DevComponents.DotNetBar.ButtonX();
     this.tbPasswd = new DevComponents.DotNetBar.Controls.TextBoxX();
     this.tbUser = new DevComponents.DotNetBar.Controls.TextBoxX();
     this.lbPassword = new DevComponents.DotNetBar.LabelX();
     this.lbuser = new DevComponents.DotNetBar.LabelX();
     this.metroTabItem1 = new DevComponents.DotNetBar.Metro.MetroTabItem();
     this.metroStatusBar1 = new DevComponents.DotNetBar.Metro.MetroStatusBar();
     this.labelItem1 = new DevComponents.DotNetBar.LabelItem();
     this.lbItemTime = new DevComponents.DotNetBar.LabelItem();
     this.lbItemSpanTime = new DevComponents.DotNetBar.LabelItem();
     this.btnItemDonate = new DevComponents.DotNetBar.ButtonItem();
     this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
     this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.mstripShow = new System.Windows.Forms.ToolStripMenuItem();
     this.mstripExit = new System.Windows.Forms.ToolStripMenuItem();
     this.registerControl = new WindowsForm.RegisterControl();
     this.metroShell2.SuspendLayout();
     this.metroTabPanel1.SuspendLayout();
     this.contextMenuStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // styleManager
     //
     this.styleManager.ManagerColorTint = System.Drawing.Color.White;
     this.styleManager.ManagerStyle = DevComponents.DotNetBar.eStyle.OfficeMobile2014;
     this.styleManager.MetroColorParameters = new DevComponents.DotNetBar.Metro.ColorTables.MetroColorGeneratorParameters(System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254))))), System.Drawing.Color.FromArgb(((int)(((byte)(62)))), ((int)(((byte)(120)))), ((int)(((byte)(143))))));
     //
     // comboItem31
     //
     this.comboItem31.Text = "Default";
     //
     // comboItem14
     //
     this.comboItem14.Text = "VisualStudio2012Light";
     //
     // comboItem15
     //
     this.comboItem15.Text = "VisualStudio2012Dark";
     //
     // comboItem16
     //
     this.comboItem16.Text = "WashedWhite";
     //
     // comboItem17
     //
     this.comboItem17.Text = "WashedBlue";
     //
     // comboItem18
     //
     this.comboItem18.Text = "BlackClouds";
     //
     // comboItem19
     //
     this.comboItem19.Text = "BlackLilac";
     //
     // comboItem20
     //
     this.comboItem20.Text = "BlackMaroon";
     //
     // comboItem21
     //
     this.comboItem21.Text = "BlackSky";
     //
     // comboItem22
     //
     this.comboItem22.Text = "Blue";
     //
     // comboItem23
     //
     this.comboItem23.Text = "BlueishBrown";
     //
     // comboItem24
     //
     this.comboItem24.Text = "Bordeaux";
     //
     // comboItem25
     //
     this.comboItem25.Text = "Brown";
     //
     // comboItem26
     //
     this.comboItem26.Text = "Cherry";
     //
     // comboItem27
     //
     this.comboItem27.Text = "DarkBlue";
     //
     // comboItem28
     //
     this.comboItem28.Text = "DarkBrown";
     //
     // comboItem29
     //
     this.comboItem29.Text = "DarkPurple";
     //
     // comboItem30
     //
     this.comboItem30.Text = "DarkRed";
     //
     // comboItem32
     //
     this.comboItem32.Text = "EarlyMaroon";
     //
     // comboItem33
     //
     this.comboItem33.Text = "EarlyOrange";
     //
     // comboItem34
     //
     this.comboItem34.Text = "EarlyRed";
     //
     // comboItem35
     //
     this.comboItem35.Text = "Espresso";
     //
     // comboItem36
     //
     this.comboItem36.Text = "ForestGreen";
     //
     // comboItem37
     //
     this.comboItem37.Text = "GrayOrange";
     //
     // comboItem38
     //
     this.comboItem38.Text = "Green";
     //
     // comboItem39
     //
     this.comboItem39.Text = "Latte";
     //
     // comboItem40
     //
     this.comboItem40.Text = "LatteDarkSteel";
     //
     // comboItem41
     //
     this.comboItem41.Text = "LatteRed";
     //
     // comboItem42
     //
     this.comboItem42.Text = "Magenta";
     //
     // comboItem43
     //
     this.comboItem43.Text = "MaroonSilver";
     //
     // comboItem44
     //
     this.comboItem44.Text = "NapaRed";
     //
     // comboItem45
     //
     this.comboItem45.Text = "Orange";
     //
     // comboItem46
     //
     this.comboItem46.Text = "PowderRed";
     //
     // comboItem47
     //
     this.comboItem47.Text = "Purple";
     //
     // comboItem48
     //
     this.comboItem48.Text = "Red";
     //
     // comboItem49
     //
     this.comboItem49.Text = "RedAmplified";
     //
     // comboItem50
     //
     this.comboItem50.Text = "RetroBlue";
     //
     // comboItem51
     //
     this.comboItem51.Text = "Rust";
     //
     // comboItem52
     //
     this.comboItem52.Text = "SilverBlues";
     //
     // comboItem53
     //
     this.comboItem53.Text = "SilverGreen";
     //
     // comboItem54
     //
     this.comboItem54.Text = "SimplyBlue";
     //
     // comboItem55
     //
     this.comboItem55.Text = "SkyGreen";
     //
     // comboItem1
     //
     this.comboItem1.Text = "Office2007Blue";
     //
     // comboItem2
     //
     this.comboItem2.Text = "Office2007Silver";
     //
     // comboItem3
     //
     this.comboItem3.Text = "Office2007Black";
     //
     // comboItem4
     //
     this.comboItem4.Text = "Office2007VistaGlass";
     //
     // comboItem5
     //
     this.comboItem5.Text = "Office2010Silver";
     //
     // comboItem6
     //
     this.comboItem6.Text = "Office2010Blue";
     //
     // comboItem7
     //
     this.comboItem7.Text = "Office2010Black";
     //
     // comboItem8
     //
     this.comboItem8.Text = "Windows7Blue";
     //
     // comboItem9
     //
     this.comboItem9.Text = "VisualStudio2010Blue";
     //
     // comboItem10
     //
     this.comboItem10.Text = "Office2013";
     //
     // comboItem11
     //
     this.comboItem11.Text = "VisualStudio2012Light";
     //
     // comboItem12
     //
     this.comboItem12.Text = "VisualStudio2012Dark";
     //
     // comboItem13
     //
     this.comboItem13.Text = "OfficeMobile2014";
     //
     // metroShell1
     //
     this.metroShell1.BackColor = System.Drawing.Color.White;
     //
     //
     //
     this.metroShell1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.metroShell1.ForeColor = System.Drawing.Color.Black;
     this.metroShell1.HelpButtonText = null;
     this.metroShell1.Location = new System.Drawing.Point(0, 0);
     this.metroShell1.Name = "metroShell1";
     this.metroShell1.Size = new System.Drawing.Size(200, 100);
     this.metroShell1.SystemText.MaximizeRibbonText = "&Maximize the Ribbon";
     this.metroShell1.SystemText.MinimizeRibbonText = "Mi&nimize the Ribbon";
     this.metroShell1.SystemText.QatAddItemText = "&Add to Quick Access Toolbar";
     this.metroShell1.SystemText.QatCustomizeMenuLabel = "<b>Customize Quick Access Toolbar</b>";
     this.metroShell1.SystemText.QatCustomizeText = "&Customize Quick Access Toolbar...";
     this.metroShell1.SystemText.QatDialogAddButton = "&Add >>";
     this.metroShell1.SystemText.QatDialogCancelButton = "Cancel";
     this.metroShell1.SystemText.QatDialogCaption = "Customize Quick Access Toolbar";
     this.metroShell1.SystemText.QatDialogCategoriesLabel = "&Choose commands from:";
     this.metroShell1.SystemText.QatDialogOkButton = "OK";
     this.metroShell1.SystemText.QatDialogPlacementCheckbox = "&Place Quick Access Toolbar below the Ribbon";
     this.metroShell1.SystemText.QatDialogRemoveButton = "&Remove";
     this.metroShell1.SystemText.QatPlaceAboveRibbonText = "&Place Quick Access Toolbar above the Ribbon";
     this.metroShell1.SystemText.QatPlaceBelowRibbonText = "&Place Quick Access Toolbar below the Ribbon";
     this.metroShell1.SystemText.QatRemoveItemText = "&Remove from Quick Access Toolbar";
     this.metroShell1.TabIndex = 0;
     this.metroShell1.TabStripFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     //
     // metroShell2
     //
     this.metroShell2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
     //
     //
     //
     this.metroShell2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.metroShell2.CaptionVisible = true;
     this.metroShell2.Controls.Add(this.metroTabPanel1);
     this.metroShell2.Dock = System.Windows.Forms.DockStyle.Top;
     this.metroShell2.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.metroShell2.ForeColor = System.Drawing.Color.Black;
     this.metroShell2.HelpButtonText = "关于";
     this.metroShell2.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
     this.metroTabItem1});
     this.metroShell2.KeyTipsFont = new System.Drawing.Font("Tahoma", 7F);
     this.metroShell2.Location = new System.Drawing.Point(1, 1);
     this.metroShell2.Margin = new System.Windows.Forms.Padding(2);
     this.metroShell2.MouseWheelTabScrollEnabled = false;
     this.metroShell2.Name = "metroShell2";
     this.metroShell2.SettingsButtonText = "设置";
     this.metroShell2.Size = new System.Drawing.Size(1034, 132);
     this.metroShell2.SystemText.MaximizeRibbonText = "&Maximize the Ribbon";
     this.metroShell2.SystemText.MinimizeRibbonText = "Mi&nimize the Ribbon";
     this.metroShell2.SystemText.QatAddItemText = "&Add to Quick Access Toolbar";
     this.metroShell2.SystemText.QatCustomizeMenuLabel = "<b>Customize Quick Access Toolbar</b>";
     this.metroShell2.SystemText.QatCustomizeText = "&Customize Quick Access Toolbar...";
     this.metroShell2.SystemText.QatDialogAddButton = "&Add >>";
     this.metroShell2.SystemText.QatDialogCancelButton = "Cancel";
     this.metroShell2.SystemText.QatDialogCaption = "Customize Quick Access Toolbar";
     this.metroShell2.SystemText.QatDialogCategoriesLabel = "&Choose commands from:";
     this.metroShell2.SystemText.QatDialogOkButton = "OK";
     this.metroShell2.SystemText.QatDialogPlacementCheckbox = "&Place Quick Access Toolbar below the Ribbon";
     this.metroShell2.SystemText.QatDialogRemoveButton = "&Remove";
     this.metroShell2.SystemText.QatPlaceAboveRibbonText = "&Place Quick Access Toolbar above the Ribbon";
     this.metroShell2.SystemText.QatPlaceBelowRibbonText = "&Place Quick Access Toolbar below the Ribbon";
     this.metroShell2.SystemText.QatRemoveItemText = "&Remove from Quick Access Toolbar";
     this.metroShell2.TabIndex = 0;
     this.metroShell2.TabStripFont = new System.Drawing.Font("Segoe UI", 10.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.metroShell2.Text = "metroShell2";
     this.metroShell2.UseCustomizeDialog = false;
     this.metroShell2.SettingsButtonClick += new System.EventHandler(this.metroShell2_SettingsButtonClick);
     this.metroShell2.HelpButtonClick += new System.EventHandler(this.metroShell2_HelpButtonClick);
     this.metroShell2.SizeChanged += new System.EventHandler(this.metroShell2_SizeChanged);
     //
     // metroTabPanel1
     //
     this.metroTabPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
     this.metroTabPanel1.Controls.Add(this.lnbHelp);
     this.metroTabPanel1.Controls.Add(this.labelX1);
     this.metroTabPanel1.Controls.Add(this.lbCredibility);
     this.metroTabPanel1.Controls.Add(this.lbName);
     this.metroTabPanel1.Controls.Add(this.btnRegister);
     this.metroTabPanel1.Controls.Add(this.btnLogin);
     this.metroTabPanel1.Controls.Add(this.tbPasswd);
     this.metroTabPanel1.Controls.Add(this.tbUser);
     this.metroTabPanel1.Controls.Add(this.lbPassword);
     this.metroTabPanel1.Controls.Add(this.lbuser);
     this.metroTabPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.metroTabPanel1.Location = new System.Drawing.Point(0, 63);
     this.metroTabPanel1.Margin = new System.Windows.Forms.Padding(2);
     this.metroTabPanel1.Name = "metroTabPanel1";
     this.metroTabPanel1.Padding = new System.Windows.Forms.Padding(2, 0, 2, 2);
     this.metroTabPanel1.Size = new System.Drawing.Size(1034, 69);
     //
     //
     //
     this.metroTabPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     //
     //
     //
     this.metroTabPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     //
     //
     //
     this.metroTabPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.metroTabPanel1.TabIndex = 1;
     //
     // lnbHelp
     //
     this.lnbHelp.AutoSize = true;
     this.lnbHelp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
     this.lnbHelp.ForeColor = System.Drawing.Color.Black;
     this.lnbHelp.Location = new System.Drawing.Point(360, 44);
     this.lnbHelp.Name = "lnbHelp";
     this.lnbHelp.Size = new System.Drawing.Size(119, 14);
     this.lnbHelp.TabIndex = 9;
     this.lnbHelp.TabStop = true;
     this.lnbHelp.Text = "信誉度等常见问题";
     this.lnbHelp.Click += new System.EventHandler(this.lnbHelp_Click);
     //
     // labelX1
     //
     this.labelX1.BackColor = System.Drawing.Color.Transparent;
     //
     //
     //
     this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.labelX1.ForeColor = System.Drawing.Color.Black;
     this.labelX1.Location = new System.Drawing.Point(360, 13);
     this.labelX1.Name = "labelX1";
     this.labelX1.Size = new System.Drawing.Size(583, 23);
     this.labelX1.TabIndex = 8;
     this.labelX1.Text = "声明:本软件使用过程中不记录用户名和密码,同时也不以任何形式保存用户名和密码。";
     //
     // lbCredibility
     //
     this.lbCredibility.BackColor = System.Drawing.Color.Transparent;
     //
     //
     //
     this.lbCredibility.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.lbCredibility.ForeColor = System.Drawing.Color.Black;
     this.lbCredibility.Location = new System.Drawing.Point(132, 39);
     this.lbCredibility.Name = "lbCredibility";
     this.lbCredibility.Size = new System.Drawing.Size(111, 23);
     this.lbCredibility.TabIndex = 7;
     this.lbCredibility.Visible = false;
     //
     // lbName
     //
     this.lbName.BackColor = System.Drawing.Color.Transparent;
     //
     //
     //
     this.lbName.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.lbName.ForeColor = System.Drawing.Color.Black;
     this.lbName.Location = new System.Drawing.Point(132, 11);
     this.lbName.Name = "lbName";
     this.lbName.Size = new System.Drawing.Size(111, 23);
     this.lbName.TabIndex = 6;
     this.lbName.Visible = false;
     //
     // btnRegister
     //
     this.btnRegister.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
     this.btnRegister.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
     this.btnRegister.Location = new System.Drawing.Point(254, 41);
     this.btnRegister.Name = "btnRegister";
     this.btnRegister.Size = new System.Drawing.Size(75, 23);
     this.btnRegister.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
     this.btnRegister.TabIndex = 5;
     this.btnRegister.Text = "免费注册";
     this.btnRegister.Click += new System.EventHandler(this.btnRegister_Click);
     //
     // btnLogin
     //
     this.btnLogin.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
     this.btnLogin.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
     this.btnLogin.Location = new System.Drawing.Point(254, 10);
     this.btnLogin.Name = "btnLogin";
     this.btnLogin.Size = new System.Drawing.Size(75, 23);
     this.btnLogin.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
     this.btnLogin.TabIndex = 4;
     this.btnLogin.Text = "登陆";
     this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click);
     //
     // tbPasswd
     //
     this.tbPasswd.BackColor = System.Drawing.Color.White;
     //
     //
     //
     this.tbPasswd.Border.Class = "TextBoxBorder";
     this.tbPasswd.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.tbPasswd.DisabledBackColor = System.Drawing.Color.White;
     this.tbPasswd.ForeColor = System.Drawing.Color.Black;
     this.tbPasswd.Location = new System.Drawing.Point(86, 40);
     this.tbPasswd.Name = "tbPasswd";
     this.tbPasswd.PasswordChar = '*';
     this.tbPasswd.PreventEnterBeep = true;
     this.tbPasswd.Size = new System.Drawing.Size(151, 23);
     this.tbPasswd.TabIndex = 3;
     //
     // tbUser
     //
     this.tbUser.BackColor = System.Drawing.Color.White;
     //
     //
     //
     this.tbUser.Border.Class = "TextBoxBorder";
     this.tbUser.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.tbUser.DisabledBackColor = System.Drawing.Color.White;
     this.tbUser.ForeColor = System.Drawing.Color.Black;
     this.tbUser.Location = new System.Drawing.Point(86, 10);
     this.tbUser.Name = "tbUser";
     this.tbUser.PreventEnterBeep = true;
     this.tbUser.Size = new System.Drawing.Size(151, 23);
     this.tbUser.TabIndex = 2;
     this.tbUser.WatermarkText = "请输入身份证";
     //
     // lbPassword
     //
     this.lbPassword.BackColor = System.Drawing.Color.Transparent;
     //
     //
     //
     this.lbPassword.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.lbPassword.ForeColor = System.Drawing.Color.Black;
     this.lbPassword.Location = new System.Drawing.Point(21, 40);
     this.lbPassword.Name = "lbPassword";
     this.lbPassword.Size = new System.Drawing.Size(59, 23);
     this.lbPassword.TabIndex = 1;
     this.lbPassword.Text = "密 码";
     //
     // lbuser
     //
     this.lbuser.BackColor = System.Drawing.Color.Transparent;
     //
     //
     //
     this.lbuser.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.lbuser.ForeColor = System.Drawing.Color.Black;
     this.lbuser.Location = new System.Drawing.Point(21, 10);
     this.lbuser.Name = "lbuser";
     this.lbuser.Size = new System.Drawing.Size(59, 23);
     this.lbuser.TabIndex = 0;
     this.lbuser.Text = "账户名";
     //
     // metroTabItem1
     //
     this.metroTabItem1.Checked = true;
     this.metroTabItem1.Name = "metroTabItem1";
     this.metroTabItem1.Panel = this.metroTabPanel1;
     this.metroTabItem1.Text = "个人中心";
     //
     // metroStatusBar1
     //
     this.metroStatusBar1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
     //
     //
     //
     this.metroStatusBar1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.metroStatusBar1.ContainerControlProcessDialogKey = true;
     this.metroStatusBar1.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.metroStatusBar1.DragDropSupport = true;
     this.metroStatusBar1.Font = new System.Drawing.Font("Segoe UI", 10.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.metroStatusBar1.ForeColor = System.Drawing.Color.Black;
     this.metroStatusBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
     this.labelItem1,
     this.lbItemTime,
     this.lbItemSpanTime,
     this.btnItemDonate});
     this.metroStatusBar1.Location = new System.Drawing.Point(1, 642);
     this.metroStatusBar1.Margin = new System.Windows.Forms.Padding(2);
     this.metroStatusBar1.Name = "metroStatusBar1";
     this.metroStatusBar1.Size = new System.Drawing.Size(1034, 32);
     this.metroStatusBar1.TabIndex = 1;
     this.metroStatusBar1.Text = "metroStatusBar1";
     //
     // labelItem1
     //
     this.labelItem1.Name = "labelItem1";
     this.labelItem1.Text = "北京时间:";
     //
     // lbItemTime
     //
     this.lbItemTime.Cursor = System.Windows.Forms.Cursors.Hand;
     this.lbItemTime.Name = "lbItemTime";
     this.lbItemTime.Text = "网络连接失败";
     this.lbItemTime.Click += new System.EventHandler(this.lbItemTime_Click);
     //
     // lbItemSpanTime
     //
     this.lbItemSpanTime.Name = "lbItemSpanTime";
     //
     // btnItemDonate
     //
     this.btnItemDonate.ItemAlignment = DevComponents.DotNetBar.eItemAlignment.Far;
     this.btnItemDonate.Name = "btnItemDonate";
     this.btnItemDonate.Text = "捐助软件";
     this.btnItemDonate.Click += new System.EventHandler(this.btnItemDonate_Click);
     //
     // notifyIcon1
     //
     this.notifyIcon1.ContextMenuStrip = this.contextMenuStrip1;
     this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
     this.notifyIcon1.Text = "杭州预约挂号辅助软件";
     this.notifyIcon1.Visible = true;
     this.notifyIcon1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.notifyIcon1_MouseDoubleClick);
     //
     // contextMenuStrip1
     //
     this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.mstripShow,
     this.mstripExit});
     this.contextMenuStrip1.Name = "contextMenuStrip1";
     this.contextMenuStrip1.Size = new System.Drawing.Size(137, 48);
     //
     // mstripShow
     //
     this.mstripShow.Name = "mstripShow";
     this.mstripShow.Size = new System.Drawing.Size(136, 22);
     this.mstripShow.Text = "打开主程序";
     this.mstripShow.Click += new System.EventHandler(this.mstripShow_Click);
     //
     // mstripExit
     //
     this.mstripExit.Name = "mstripExit";
     this.mstripExit.Size = new System.Drawing.Size(136, 22);
     this.mstripExit.Text = "退出";
     this.mstripExit.Click += new System.EventHandler(this.mstripExit_Click);
     //
     // registerControl
     //
     this.registerControl.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
     this.registerControl.Dock = System.Windows.Forms.DockStyle.Fill;
     this.registerControl.ForeColor = System.Drawing.Color.Black;
     this.registerControl.Location = new System.Drawing.Point(1, 133);
     this.registerControl.Name = "registerControl";
     this.registerControl.Size = new System.Drawing.Size(1034, 509);
     this.registerControl.TabIndex = 2;
     //
     // MainForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(1036, 675);
     this.Controls.Add(this.registerControl);
     this.Controls.Add(this.metroStatusBar1);
     this.Controls.Add(this.metroShell2);
     this.DoubleBuffered = true;
     this.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Margin = new System.Windows.Forms.Padding(2);
     this.Name = "MainForm";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.SystemMenuClose = "关闭";
     this.SystemMenuMaximize = "最大化";
     this.SystemMenuMinimize = "最小化";
     this.SystemMenuMove = "移动";
     this.SystemMenuRestore = "还原";
     this.SystemMenuSize = "大小";
     this.Text = "杭州预约挂号辅助软件";
     this.metroShell2.ResumeLayout(false);
     this.metroShell2.PerformLayout();
     this.metroTabPanel1.ResumeLayout(false);
     this.metroTabPanel1.PerformLayout();
     this.contextMenuStrip1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
            public ChangVisibleDataField(LabelX newDataLabel, TextBoxX newDataText,LabelX newStudentNumberLabel,TextBoxX newStudentNumberText)
            {
                _code_text.Add("401", "更正學號");
                _code_text.Add("402", "更正姓名");
                _code_text.Add("403", "更正性別");
                _code_text.Add("404", "更正籍貫");
                _code_text.Add("405", "更正生日");
                _code_text.Add("407", "更正身份證號碼");
                _code_text.Add("408", "更正入學資格學校名稱");
                _code_text.Add("409", "更正特殊身份");
                _code_text.Add("499", "更正其他學籍事項");

                _newDataLabel = newDataLabel;
                _newDataText = newDataText;
                _newStudentNumberLabel = newStudentNumberLabel;
                _newStudentNumberText = newStudentNumberText;
            }
예제 #20
0
 private void LoadOptionalString(string source, TextBoxX target, CheckBoxX checkBox)
 {
     checkBox.Checked = source != null;
     if (source != null) target.Text = source;
 }
예제 #21
0
파일: LogicManager.cs 프로젝트: viticm/pap2
        /// <summary>
        /// 检查图元是否有效
        /// </summary>
        /// <param name="dataManager">数据管理器</param>
        /// <param name="name">流程图的名称</param>
        /// <param name="graphElementList">图元链表</param>
        /// <param name="showDetail">是否显示细节</param>
        /// <param name="logBox">输出日志窗体</param>
        /// <returns>图元是否有效</returns>
        private bool CheckGraphElementAvail(DataManager dataManager, string name, List<GraphElement> graphElementList, TextBoxX logBox, bool showDetail)
        {
            bool avail = true;
            GraphElement invalidGraphElement = null;

            foreach (GraphElement graphElement in graphElementList)
            {
                if (!graphElement.Enable)
                {
                    avail = false;
                    invalidGraphElement = graphElement;
                    logBox.AppendText(string.Format("ID为{0}的图元没有正确连接事件结点!", graphElement.ID));
                    break;
                }
            }

            if (!avail) // 流程图无效 
            {
                MessageBox.Show(string.Format("流程图 {0} 中有不正确连接的图元,请确认所有的图元都已连接事件结点!", name),
                        "流程图有效性检查", MessageBoxButtons.OK, MessageBoxIcon.Information);

                if (showDetail) // 显示细节
                {
                    List<GraphElement> list = new List<GraphElement>();
                    list.Add(invalidGraphElement);
                    dataManager.CurrentFlowChartManager.CurrentGraphManager.SelectGraphElements(list);
                }
            }

            return avail;
        }
예제 #22
0
 void SetNmric(GPDIDs xID, TextBoxX xNum)
 {
     Setting x = xprof.UserGPD.GetSetting(xID, SettingType.UInt32);
     if (x != null)
         xNum.Text = ((uint)x.Data).ToString();
 }
예제 #23
0
파일: LogicManager.cs 프로젝트: viticm/pap2
        /// <summary>
        /// 检查连接线是否有效
        /// </summary>
        /// <param name="dataManager">数据管理器</param>
        /// <param name="name">流程图的名称</param>
        /// <param name="connectorContainerList">连接线链表</param>
        /// <param name="showDetail">是否显示细节</param>
        /// <param name="logBox">输出日志窗体</param>
        /// <returns>连接线是否有效</returns>
        private bool CheckLineAvail(DataManager dataManager, string name, List<ConnectorContainer> connectorContainerList, TextBoxX logBox, bool showDetail)
        {
            bool avail = true;
            ConnectorContainer invalidLine = null;

            foreach (ConnectorContainer line in connectorContainerList)
            {
                if (line.InSlotContainer == null || line.OutSlotContainer == null) // 连接线两端必须连接上结点
                {
                    avail = false;
                    invalidLine = line;
                    logBox.AppendText(string.Format("ID为{0}的连接线没有正确连接!\r\n", line.ID));
                    break;
                }
                else if (line.Invalid) // 连接线必须有效
                {
                    avail = false;
                    invalidLine = line;
                    logBox.AppendText(string.Format("ID为{0}的连接线没有设置条件!\r\n", line.ID));
                    break;
                }
            }

            if (!avail) // 流程图无效 
            {
                MessageBox.Show(string.Format("流程图 {0} 中有不完整的连接,请确认所有的连接是否正确!", name),
                    "流程图有效性检查", MessageBoxButtons.OK, MessageBoxIcon.Information);

                if (showDetail) // 显示细节
                {
                    List<GraphElement> list = new List<GraphElement>();
                    list.Add(invalidLine);
                    dataManager.CurrentFlowChartManager.CurrentGraphManager.SelectGraphElements(list);
                }
            }

            return avail;
        }
예제 #24
0
        static internal Size GetPreferredSize(
            GridFilter gridFilter, GridColumn gridColumn)
        {
            Size size = Size.Empty;

            FilterEditType type = gridColumn.GetFilterPanelType();

            switch (type)
            {
                case FilterEditType.ComboBox:
                    if (_sizeComboBox == null)
                        _sizeComboBox = new ComboBoxEx();

                    _sizeComboBox.Font = gridFilter.GetEffectiveStyle(gridColumn).Font;

                    size = _sizeComboBox.GetPreferredSize(Size.Empty);
                    break;

                case FilterEditType.TextBox:
                case FilterEditType.DateTime:
                    if (_sizeTextBox == null)
                        _sizeTextBox = new TextBoxX();

                    _sizeTextBox.BorderStyle = BorderStyle.None;
                    _sizeTextBox.Font = gridFilter.GetEffectiveStyle(gridColumn).Font;

                    size = _sizeTextBox.GetPreferredSize(Size.Empty);
                    break;

                case FilterEditType.CheckBox:
                    if (_sizeCheckBox == null)
                        _sizeCheckBox = new MyCheckBoxX();

                    size = new Size(20, 20);
                    break;
            }

            return (size);
        }
예제 #25
0
파일: LogicManager.cs 프로젝트: viticm/pap2
        /// <summary>
        /// 检测循环圈是否有效
        /// </summary>
        /// <param name="dataManager">数据管理器</param>
        /// <param name="name">流程图的名称</param>
        /// <param name="slotContainerList">插槽容器链表</param>
        /// <param name="showDetail">是否显示细节</param>
        /// <param name="logBox">输出日志窗体</param>
        /// <return>循环圈是否有效</return>
        private bool CheckCircleAvail(DataManager dataManager, string name, List<SlotContainer> slotContainerList, TextBoxX logBox, bool showDetail)
        {
            bool avail = true;
            List<SlotContainer> list = new List<SlotContainer>();
            List<List<SlotContainer>> circleLists = new List<List<SlotContainer>>();
            List<SlotContainer> circleNodeList = new List<SlotContainer>();
            List<List<SlotContainer>> markList = new List<List<SlotContainer>>();

            foreach (SlotContainer slotContainer in slotContainerList)
            {
                if (slotContainer is EventGraphElement)
                {
                    dataManager.FindNextNode(slotContainer, list, circleLists, circleNodeList);
                }
            }

            if (circleLists.Count > 0)
            {
                foreach (List<SlotContainer> circleList in circleLists)
                {
                    avail = false;

                    foreach (SlotContainer node in circleList)
                    {
                        if (node is ConditionGraphElement) // 找到所有的条件结点
                        {
                            // 检查当前圈中的连接线是设置了条件的条件连接线
                            foreach (GraphElement graphElement in dataManager.GetNextGraphElements(node))
                            {
                                ConnectorContainer line = graphElement as ConnectorContainer;
                                if (dataManager.GetData(line) != null && circleList.Contains(line.OutSlotContainer))
                                {
                                    avail = true;
                                    break;
                                }
                            }

                            if (avail)
                            {
                                break;
                            }

                            // 检查是否有通过条件结点连出圈的结点
                            foreach (SlotContainer nextNode in dataManager.GetSpecifyNextSlotContainers(node, circleList))
                            {
                                if (!circleNodeList.Contains(nextNode)) // 有连出圈的结点
                                {
                                    avail = true;
                                    break;
                                }
                            }

                            if (avail)
                            {
                                break;
                            }
                        }
                    }

                    if (!avail)
                    {
                        markList.Add(circleList);
                        string circleString = "";
                        for (int i = 0; i < circleList.Count; i++)
                        {
                            circleString += circleList[i].ID + " -> ";
                        }
                        circleString += circleList[0].ID;
                        logBox.AppendText(string.Format("检测出循环圈{0}!\r\n", circleString));
                    }
                }

                if (markList.Count > 0) // 检测到无效的循环
                {
                    avail = false;
                    MessageBox.Show(string.Format("流程图 {0} 中有可能无效的循环,请确认所有的循环是否设置了有效出口!", name),
                        "流程图有效性检查", MessageBoxButtons.OK, MessageBoxIcon.Information);

                    if (showDetail) // 显示细节
                    {
                        CheckCircleForm cForm = new CheckCircleForm(dataManager.CurrentFlowChartManager.CurrentGraphManager, markList);
                        cForm.ShowDialog();
                    }
                }
            }

            return avail;
        }
        private bool SetLimit(TextBoxX x1, ErrorProvider ep, string ErrorString)
        {
            bool k = true;
            if (!string.IsNullOrEmpty(x1.Text.Trim()))
            {
                if (tool.StringIsInt_Bool(x1.Text.Trim()))
                {
                    ep.SetError(x1, null);
                    k = true;
                }
                else
                {
                    ep.SetError(x1, ErrorString);
                    k = false;
                }
            }
            else
            {
                ep.SetError(x1, null);
                k = true;
            }

            return k;
        }
 public string GetFormData(TextBoxX obj, string LogObjName)
 {
     _prlp.SetAfterSaveText(LogObjName, obj.Text);
     return obj.Text;
 }