Beispiel #1
0
 public CustomPropertyDescriptor(ref CustomProperty myProperty, Attribute [] attrs) : base(myProperty.Name, attrs)
 {
     m_Property = myProperty;
 }
Beispiel #2
0
 /// <summary>
 /// Add CustomProperty to Collectionbase List
 /// </summary>
 /// <param name="Value"></param>
 public void Add(CustomProperty Value)
 {
     base.List.Add(Value);
 }
Beispiel #3
0
		public CustomPropertyDescriptor(ref CustomProperty myProperty, Attribute [] attrs) :base(myProperty.Name, attrs)
		{
			m_Property = myProperty;
		}
Beispiel #4
0
        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            m_Preperty.Clear();
            int nIndex = listBox1.SelectedIndex;
            if (nIndex < 0)
                return;
            int nInfo = m_ListInfo[nIndex];
            string strLabel = null;
            string strTextBox = null;
            string strFuncName = listBox1.Items[nIndex].ToString();
            int nNum = 0;
            m_RecordPlayer.GetInformation(nInfo, out strLabel, out strTextBox, out nNum);

            int i = 0, nLabelIndex = 0, nTextBoxIndex = 0;
            int nLabelLength = strLabel.Length;
            int nTextBoxLength = strTextBox.Length;

            string subLabel = null, subTextBox = null;
            for (i = 0; i < nNum; i++)
            {
                subLabel = null;
                for (; nLabelIndex < nLabelLength; nLabelIndex++)
                {
                    if (strLabel[nLabelIndex] == ' ')
                        break;
                    subLabel += strLabel[nLabelIndex];
                }
                nLabelIndex++;

                subTextBox = null;
                for (; nTextBoxIndex < nTextBoxLength; nTextBoxIndex++)
                {
                    if (strTextBox[nTextBoxIndex] == ' ')
                        break;
                    subTextBox += strTextBox[nTextBoxIndex];
                }
                nTextBoxIndex++;
                CustomProperty myPreperty = new CustomProperty(strFuncName, subLabel, subTextBox, false, true);
                m_Preperty.Add(myPreperty);
            }
            propertyGrid1.Refresh();
        }
Beispiel #5
0
		/// <summary>
		/// Add CustomProperty to Collectionbase List
		/// </summary>
		/// <param name="Value"></param>
		public void Add(CustomProperty Value)
		{
			base.List.Add(Value);
		}