コード例 #1
0
        private void set_fte_property2(FolderTreeExplorer fte, object value, string property)
        {
            switch (property)
            {
            case "Enabled":
            {
                fte.Enabled = (bool)value;
            }
            break;

            default:
                break;
            }
        }
コード例 #2
0
        /// <summary>
        /// Установить значение свойства FolderTreeExplorer
        /// </summary>
        /// <param name="tb">FolderTreeExplorer</param>
        /// <param name="value">значение</param>
        /// <param name="property">свойство</param>
        public void set_fte_property(FolderTreeExplorer fte, object value, string property)
        {
            PropertySetFoldrTEPropDelegate showProperty = new PropertySetFoldrTEPropDelegate(set_fte_property2);

            Application.OpenForms["FormMain"].Invoke(showProperty, new object[] { fte, value, property });
        }