예제 #1
0
        public ConsoleProperties ToConsoleProperties()
        {
            ConsoleProperties consoleProperties = new ConsoleProperties();

            foreach (PropertyInfo consoleSettingsProperty in typeof(ConsoleSettings).GetProperties())
            {
                PropertyInfo consolePropertiesProperty = typeof(ConsoleProperties).GetProperty(consoleSettingsProperty.Name);
                if (consolePropertiesProperty.CanWrite)
                {
                    consolePropertiesProperty.SetValue(consoleProperties, consoleSettingsProperty.GetValue(this));
                }
            }

            for (int i = 0; i < COLOR_TABLE_SIZE; i++)
            {
                consoleProperties.ColorTable[i] = this.ColorTable[i];
            }

            return(consoleProperties);
        }
예제 #2
0
 private ShellLink()
 {
     _handle           = new ShellLinkCoClass() as IPersistFile;
     ConsoleProperties = new ConsoleProperties();
 }