Exemplo n.º 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();
        }
Exemplo n.º 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;
            }
        }