Example #1
0
        static void Main()
        {
            try {
                Application.EnableVisualStyles();
                //Application.SetCompatibleTextRenderingDefault(false);

                CommunicationManager cm = new CommunicationManager();
                CellularProtocol cp = new CellularProtocol(cm);
                SwitchProtocol sp = new SwitchProtocol(cp);
                frmCommLog commLog = frmCommLog.Instance;
                commLog.commManager = cm;

                Application.Run(new mainForm(sp, cm));
            } catch (Exception e)
            {
                FormTools.ErrBox(e.Message, "Error");
            }
        }
Example #2
0
 public SwitchProtocol(CellularProtocol cp)
 {
     cp_ = cp;
 }