Esempio n. 1
0
        private void InsertProperty(object sender, EventArgs e)
        {
            frmProperty Property = new frmProperty();

            if (DialogResult.OK == Property.ShowDialog())
            {
                rtbClassGenerator.SelectedText = Property.Property;
            }
            Property.Close();
        }
Esempio n. 2
0
        /// <summary>
        /// Set properties
        /// </summary>
        public void SetProperties()
        {
            Dictionary <string, string> objAttr = new Dictionary <string, string>();

            //objAttr.Add("GroupHandle", "GroupHandle");
            objAttr.Add("GroupName", "GroupName");
            CustomProperty cp    = new CustomProperty(this, objAttr);
            frmProperty    aFrmP = new frmProperty();

            aFrmP.SetObject(cp);
            aFrmP.ShowDialog();
        }
        /// <summary>
        /// Set properties
        /// </summary>
        public void SetProperties()
        {
            Dictionary <string, string> objAttr = new Dictionary <string, string>();

            objAttr.Add("Text", "Text");
            objAttr.Add("Font", "Font");
            objAttr.Add("ForeColor", "Fore Color");
            objAttr.Add("BackColor", "Back Color");
            CustomProperty cp    = new CustomProperty(this, objAttr);
            frmProperty    aFrmP = new frmProperty();

            aFrmP.SetObject(cp);
            aFrmP.ShowDialog();
        }