Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        public PhoneForm()
        {
            _form = this;
            InitializeComponent();

            ///////////////////////////////////////////////////////////////
            // sasacoh coding
            ///////////////////////////////////////////////////////////////
            string str = new string(' ', 255);

            richTextBox1.Lines = new string[] { str, str, str, str, str, str, str, str, str, str, str };
            //_buttons = new System.Collections.Generic.List<Button>();

            control = CComponentController.getInstance();

            Renderer     renderer = new Renderer(this);
            CFactoryImpl factory  = new CFactoryImpl();

            control.attach(renderer);
            control.Factory  = factory;
            control.Language = _langEN;

            // Create menu pages...
            new CInitPage();
            new CIdlePage();
            new CPhonebookPage();
            new CPhonebookEditPage();
            new CMenuPage();
            new CSIPSettings();
            new CSIPProxySettings();
            new CSIPProxySettings2nd();
            new CSIPProxySettings3rd();
            new CRingModePage();
            new CCalllogPage();
            new CAccountsPage();
            new CServicesPage();
            new CRedirectPage();
            new CMessageBoxPage();
            new CMessageReceivedPage();

            control.initialize();

            // register callback
            Telephony.CCallManager.getInstance().CallStateChanged += onTelephonyRefresh;

            // set active page...
            control.showPage((int)EPages.P_INIT);
        }
Beispiel #2
0
        /// <summary>
        /// 
        /// </summary>
        public PhoneForm()
        {
            _form = this;
              InitializeComponent();

              ///////////////////////////////////////////////////////////////
              // sasacoh coding
              ///////////////////////////////////////////////////////////////
              string str = new string(' ', 255);
              richTextBox1.Lines = new string[] { str, str, str, str, str, str, str, str, str, str, str };
              //_buttons = new System.Collections.Generic.List<Button>();

              control = CComponentController.getInstance();

              Renderer renderer = new Renderer(this);
              CFactoryImpl factory = new CFactoryImpl();

              control.attach(renderer);
              control.Factory = factory;
              control.Language = _langEN;

              // Create menu pages...
              new CInitPage();
              new CIdlePage();
              new CPhonebookPage();
              new CPhonebookEditPage();
              new CMenuPage();
              new CSIPSettings();
              new CSIPProxySettings();
              new CSIPProxySettings2nd();
              new CSIPProxySettings3rd();
              new CRingModePage();
              new CCalllogPage();
              new CAccountsPage();
              new CServicesPage();
              new CRedirectPage();
              new CMessageBoxPage();
              new CMessageReceivedPage();

              control.initialize();

              // register callback
              Telephony.CCallManager.getInstance().CallStateChanged += onTelephonyRefresh;

              // set active page...
              control.showPage((int)EPages.P_INIT);
        }