예제 #1
0
 /// <summary>
 /// Main settings constructor with parameters
 /// </summary>
 public MainS(int dotSize, EnumColor leftColor, EnumColor rightColor, bool showChart, int eventSize, int dotsToPaint, int channels, EnumAudio mono_stereo, EnumScreenSize screenSize)
 {
     this.dotSize     = dotSize;
     this.leftColor   = leftColor;
     this.rightColor  = rightColor;
     this.showChart   = showChart;
     this.eventSize   = eventSize;
     this.dotsToPaint = dotsToPaint;
     this.channels    = channels;
     this.mono_stereo = mono_stereo;
     this.screenSize  = screenSize;
 }
예제 #2
0
 /// <summary>
 /// Main settings empty constructor
 /// </summary>
 public MainS()
 {
     this.dotSize     = 2;
     this.leftColor   = EnumColor.BLUE;
     this.rightColor  = EnumColor.ORANGE;
     this.showChart   = true;
     this.eventSize   = 32;
     this.dotsToPaint = 10;
     this.channels    = 64;
     this.mono_stereo = EnumAudio.STEREO;
     this.screenSize  = EnumScreenSize.s1366x768;
 }
예제 #3
0
    public static AudioGet Enum(EnumWeapon Enum_weapon)
    {
        EnumAudio ptr_enum_audio = EnumAudio.WeaponDefault;

        switch (Enum_weapon)
        {
        case EnumWeapon.Default:
            ptr_enum_audio = EnumAudio.WeaponDefault;
            break;

        default:
            break;
        }
        return(new AudioGet(ptr_enum_audio));
    }
예제 #4
0
        /// <summary>
        /// Main settings read from XML
        /// </summary>
        public void fromXML(XElement root)
        {
            CultureInfo ci = new CultureInfo("en-us");
            XElement    xe;

            xe          = root.Element("Main");
            dotSize     = Convert.ToInt16(xe.Attribute("dotSize").Value, ci);
            leftColor   = (EnumColor)Enum.Parse(typeof(EnumColor), xe.Attribute("leftColor").Value);
            rightColor  = (EnumColor)Enum.Parse(typeof(EnumColor), xe.Attribute("rightColor").Value);
            showChart   = Convert.ToBoolean(xe.Attribute("showChart").Value, ci);
            eventSize   = Convert.ToInt16(xe.Attribute("eventSize").Value, ci);
            dotsToPaint = Convert.ToInt16(xe.Attribute("dotsToPaint").Value, ci);
            channels    = Convert.ToInt16(xe.Attribute("channels").Value, ci);
            mono_stereo = (EnumAudio)Enum.Parse(typeof(EnumAudio), xe.Attribute("mono_stereo").Value);
            screenSize  = (EnumScreenSize)Enum.Parse(typeof(EnumScreenSize), xe.Attribute("screenSize").Value);
        }
예제 #5
0
 private AudioGet(EnumAudio Enum_audio)
 {
     enum_audio = Enum_audio;
 }
예제 #6
0
 public static AudioGet Enum(EnumAudio Enum_audio)
 {
     return(new AudioGet(Enum_audio));
 }