Ejemplo n.º 1
0
 public MainForm()
 {
     InitializeComponent();
     m_SharedData = new SRHSharedData();
 }
Ejemplo n.º 2
0
        public MainForm()
        {
            InitializeComponent();

            m_SharedData = new SRHSharedData();

            string curentdirstr = System.IO.Directory.GetCurrentDirectory() + "\\config.ini";
            m_SharedData.configfilepath = curentdirstr;

            if (File.Exists("config.xml"))
            {
                #region Load Config XML
                using (XmlReader reader = XmlReader.Create("config.xml"))
                {
                    var configration = new Config();
                    var serializer = new XmlSerializer(typeof(Config));

                    configration = (Config)serializer.Deserialize(reader);

                    m_SharedData.write_packetlog
                        = configration.write_packetlog;
                    m_SharedData.freemouse
                        = configration.freemouse;
                    m_SharedData.m2e
                        = configration.m2e;
                    m_SharedData.fix_windowmode_vsyncwait
                        = configration.fix_windowmode_vsyncwait;
                    m_SharedData.show_framerate
                        = configration.show_framerate;
                    m_SharedData.objectinformation
                        = configration.objectinformation;
                    m_SharedData._44khz_audiomode
                        = configration._44khz_audiomode;
                    m_SharedData.cpucoolerlevel
                        = configration.cpucoolerlevel;
                }
                #endregion
            }
        }
Ejemplo n.º 3
0
 public MainForm()
 {
     InitializeComponent();
     m_SharedData = new SRHSharedData();
 }