Example #1
0
        private CConfig()
        {
            // Dados lidos do arquivo de configuraĆ§Ć£o
            m_htBooks = new Hashtable();

            // Dados lidos do arquivo de efeitos
            m_htEffects = new Hashtable();

            o_fInterfaceSerial = new FInterfaceSerial();
        }
Example #2
0
        private void configurarPortaSerialToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (o_fInterfaceSerial == null)
            {
                o_fInterfaceSerial = new FInterfaceSerial();
                o_fInterfaceSerial.ShowDialog();

                oSerialPort = new SerialPort();
                oSerialPort = o_fInterfaceSerial.InterfaceSerialPort;

                CConfig.Instance.InterfaceSerial = o_fInterfaceSerial;
            }
            else
            {
                o_fInterfaceSerial.ShowDialog();
                oSerialPort = o_fInterfaceSerial.InterfaceSerialPort;
            }
        }