예제 #1
0
파일: menus.cs 프로젝트: erdincay/sipek-1
        public CSIPProxySettings2nd()
            : base((int)EPages.P_SIPPROXYSETTINGS_2nd, "Settings")
        {
            this.forgetPage(true);
            ////////////
            // 2nd page
            _editUserName         = new CEditField("Username>", "", true);
            _editUserName.PosY    = 5;
            _editUserName.LinkKey = _editUserName.PosY;
            this.add(_editUserName);

            _editPassword         = new CEditField("Password>", "");
            _editPassword.PosY    = 7;
            _editPassword.LinkKey = _editPassword.PosY;
            this.add(_editPassword);

            CLink linkNext = new CLink("More...");

            linkNext.PosY     = 10;
            linkNext.Align    = EAlignment.justify_right;
            linkNext.Softkey += new BoolIntDelegate(linkNext_Softkey);
            add(linkNext);

            this.Ok += new VoidDelegate(CSIPProxySettings_Ok);
        }
예제 #2
0
파일: menus.cs 프로젝트: erdincay/sipek-1
        public CMessageBoxPage()
            : base((int)EPages.P_MESSAGEBOX, "Send Message To...")
        {
            _titleText      = new CText("Buddy");
            _titleText.PosY = 1;
            add(_titleText);

            _textBox      = new CTextBox("");
            _textBox.PosY = 2;
            add(_textBox);

            _editBox      = new CEditBox(">", "");
            _editBox.PosY = 5;
            add(_editBox);

            CLink sendLink = new CLink("Send");

            sendLink.PosY     = 10;
            sendLink.Align    = EAlignment.justify_right;
            sendLink.Softkey += new BoolIntDelegate(sendLink_Softkey);
            this.add(sendLink);

            _buddyName      = new CLink("");
            _buddyName.PosY = 3;
            add(_buddyName);

            this.Ok += new VoidDelegate(CMessageBoxPage_Ok);
        }
예제 #3
0
파일: menus.cs 프로젝트: erdincay/sipek-1
        public CSIPProxySettings()
            : base((int)EPages.P_SIPPROXYSETTINGS, "Settings")
        {
            // create 1st page
            _editDisplayName         = new CEditField("Name>", "", true);
            _editDisplayName.PosY    = 3;
            _editDisplayName.LinkKey = _editDisplayName.PosY;
            this.add(_editDisplayName);

            _editId         = new CEditField("Id>", "");
            _editId.PosY    = 5;
            _editId.LinkKey = _editId.PosY;
            this.add(_editId);

            //_editProxyAddress = new CIpAddressEdit("Proxy>");
            _editProxyAddress         = new CEditField("Proxy>", "");
            _editProxyAddress.PosY    = 7;
            _editProxyAddress.LinkKey = _editProxyAddress.PosY;
            this.add(_editProxyAddress);

            _editProxyPort         = new CEditField("Port>", "", EEditMode.numeric);
            _editProxyPort.PosY    = 9;
            _editProxyPort.LinkKey = _editProxyPort.PosY;
            this.add(_editProxyPort);

            CLink linkNext = new CLink("More...");

            linkNext.PosY     = 10;
            linkNext.Align    = EAlignment.justify_right;
            linkNext.Softkey += new BoolIntDelegate(linkNext_Softkey);
            add(linkNext);

            this.Ok  += new VoidDelegate(CSIPProxySettings_Ok);
            this.Esc += new VoidDelegate(CSIPProxySettings_Esc);
        }
예제 #4
0
파일: menus.cs 프로젝트: erdincay/sipek-1
        public CInitPage()
            : base((int)EPages.P_INIT)
        {
            this.forgetPage(true);

            CLink link = new CLink("Initializing", (int)EPages.P_INIT);

            link.Align   = EAlignment.justify_center;
            link.PosY    = 2;
            link.LinkKey = link.PosY;
            this.add(link);

            CText text = new CText("Sipek Phone", EAlignment.justify_center);

            text.PosY = 3;
            this.add(text);

            CText txt = new CText(".....");

            txt.PosY = 5;
            txt.PosX = 10;
            CHorizontalScroller scrollingtext = new CHorizontalScroller(txt, 10, 200);

            // add(scrollingtext); // solve problem with remaining dots

            this.Ok += new VoidDelegate(okhandler);
        }
예제 #5
0
        public CActivePage()
            : base(ECallPages.P_ACTIVE, "Connected...")
        {
            _duration       = new CText("00:00");
            _duration.PosY  = 2;
            _duration.Align = EAlignment.justify_right;

            CTimeoutDecorator decor = new CTimeoutDecorator(_duration, 1000, true);

            decor.OnTimeout += new VoidDelegate(decor_OnTimeout);

            add(decor);

            _hold          = new CLink("Hold");
            _hold.Softkey += new BoolIntDelegate(_hold_Softkey);
            _hold.PosY     = 7;
            add(_hold);

            _3pty       = new CLink("3Pty");
            _3pty.Align = EAlignment.justify_right;
            _3pty.PosY  = 8;
            //add(_3pty);

            _xfer = new CLink("Transfer");
            //_xfer.Softkey += new BoolIntDelegate(_xfer_Softkey);
            _xfer.PosY = 9;
            add(_xfer);

            this.Digitkey += new BoolIntDelegate(CActivePage_Digitkey);
        }
예제 #6
0
        private void tbtEdit2_Click(object sender, EventArgs e)
        {
            if (m_WorkflowDef.FW_Table_id == Guid.Empty)
            {
                MessageBox.Show("请先选择表对象!");
                return;
            }
            if (dataGridView.CurrentRow == null)
            {
                MessageBox.Show("请先选择活动!");
                return;
            }
            CActivesDef ActivesDef = (CActivesDef)dataGridView.CurrentRow.Tag;

            if (dataGridView2.CurrentRow == null)
            {
                MessageBox.Show("请先选择连接!");
                return;
            }
            CLink Link = (CLink)dataGridView2.CurrentRow.Tag;

            LinkInfo frm = new LinkInfo();

            frm.m_WorkflowDef = m_WorkflowDef;
            frm.m_PreActives  = ActivesDef;
            frm.m_Link        = Link;
            if (frm.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            LoadLink(ActivesDef);
        }
예제 #7
0
        public CXferDialingPage()
            : base(ECallPages.P_XFERDIAL, "Transfer...")
        {
            this.clearHistory(false);

            CLink phbookLink = new CLink("Phonebook", (int)EPages.P_PHONEBOOK);

            phbookLink.PosY = 9;
            this.add(phbookLink);

            CLink callRegLink = new CLink("Calls", (int)EPages.P_CALLLOG);

            callRegLink.Align = EAlignment.justify_right;
            callRegLink.PosY  = 8;
            this.add(callRegLink);

            _editField      = new CEditField(">", "", EEditMode.numeric, true);
            _editField.PosY = 2;
            _editField.Ok  += new VoidDelegate(_editField_Ok);
            this.add(_editField);

            // remove unneeded controls
            remove(this._name);
            remove(this._sessions);
        }
예제 #8
0
파일: menus.cs 프로젝트: erdincay/sipek-1
        public CPhonebookEditPage()
            : base((int)EPages.P_PHONEBOOKEDIT, "Editing")
        {
            _fname         = new CEditField("First Name>", "", EEditMode.alphanum_high, true);
            _fname.PosY    = 3;
            _fname.LinkKey = _fname.PosY;
            add(_fname);

            _lname         = new CEditField("Last Name>", "", EEditMode.alphanum_high, false);
            _lname.PosY    = 5;
            _lname.LinkKey = _lname.PosY;
            add(_lname);

            _number         = new CEditField("Number>", "", EEditMode.numeric);
            _number.PosY    = 7;
            _number.LinkKey = _number.PosY;
            add(_number);

            CLink saveLink = new CLink("Save!");

            saveLink.PosY     = 8;
            saveLink.LinkKey  = saveLink.PosY;
            saveLink.Align    = EAlignment.justify_right;
            saveLink.Softkey += new BoolIntDelegate(saveLink_Softkey);
            add(saveLink);

            CLink deleteLink = new CLink("Delete!");

            deleteLink.PosY     = 10;
            deleteLink.Align    = EAlignment.justify_right;
            deleteLink.LinkKey  = deleteLink.PosY;
            deleteLink.Softkey += new BoolIntDelegate(deleteLink_Softkey);
            add(deleteLink);
        }
예제 #9
0
파일: menus.cs 프로젝트: erdincay/sipek-1
        public CPhonebookPage() : base((int)EPages.P_PHONEBOOK, "Phonebook")
        {
            _criteria           = new CEditField(">", "", EEditMode.alphanum_low, true);
            _criteria.PosY      = 1;
            _criteria.Digitkey += new BoolIntDelegate(_criteria_Digitkey);
            add(_criteria);

            _list      = new CSelectList(7);
            _list.PosY = 3;
            add(_list);

            CLink addNewLink = new CLink("Add New", (int)EPages.P_PHONEBOOKEDIT);

            addNewLink.PosY = 9;
            //addNewLink.Align = EAlignment.justify_right;
            add(addNewLink);

            CLink modifyLink = new CLink("Modify");

            modifyLink.PosY     = 10;
            modifyLink.Softkey += new BoolIntDelegate(modifyLink_Softkey);
            modifyLink.Align    = EAlignment.justify_right;
            add(modifyLink);

            CLink messageLink = new CLink("Message");

            messageLink.Align    = EAlignment.justify_right;
            messageLink.PosY     = 8;
            messageLink.Softkey += new BoolIntDelegate(messageLink_Softkey);
            add(messageLink);

            Menu += new VoidDelegate(CPhonebookPage_Menu);
        }
예제 #10
0
파일: menus.cs 프로젝트: erdincay/sipek-1
        public CAccountsPage()
            : base((int)EPages.P_ACCOUNTS, "Accounts")
        {
            _radio = new CRadioButtonGroup();

            _list      = new CSelectList(_radio, 5);
            _list.PosY = 3;
            add(_list);

            CLink linkConfigure = new CLink("Edit");

            linkConfigure.Align    = EAlignment.justify_right;
            linkConfigure.PosY     = 10;
            linkConfigure.Softkey += new BoolIntDelegate(linkConfigure_Softkey);
            add(linkConfigure);

            CLink linkSave = new CLink("Save changes");

            linkSave.PosY     = 9;
            linkSave.Softkey += new BoolIntDelegate(linkSave_Softkey);
            add(linkSave);

            this.Menu += new VoidDelegate(_radio_Menu);
            this.Ok   += new VoidDelegate(CAccountsPage_Ok);
            this.Esc  += new VoidDelegate(CAccountsPage_Esc);
        }
예제 #11
0
파일: menus.cs 프로젝트: erdincay/sipek-1
        public CMenuPage()
            : base((int)EPages.P_MENU, "Settings")
        {
            CLink linkNetwork = new CLink("Network", 0);

            linkNetwork.PosY = 7;
            add(linkNetwork);

            CLink linkSound = new CLink("Sound", 0);

            linkSound.PosY  = 8;
            linkSound.Align = EAlignment.justify_right;
            add(linkSound);

            CLink linkSIP = new CLink("SIP", (int)EPages.P_SIPSETTINGS);

            linkSIP.PosY = 9;
            add(linkSIP);

            CLink linkServices = new CLink("Services", (int)EPages.P_SERVICES);

            linkServices.PosY  = 10;
            linkServices.Align = EAlignment.justify_right;
            add(linkServices);
        }
예제 #12
0
 public CDoubleLink(string caption_1, string caption_2, EAlignment alignmode1, EAlignment alignmode2)
     : base("")
 {
     _link1       = new CLink(caption_1);
     _link1.Align = alignmode1;
     _link2       = new CLink(caption_2);
     _link2.Align = alignmode2;
 }
예제 #13
0
        void LoadData()
        {
            if (m_WorkflowDef == null)
            {
                m_bIsNew          = true;
                m_WorkflowDef     = new CWorkflowDef();
                m_WorkflowDef.Ctx = Program.Ctx;
                m_WorkflowDef.WF_WorkflowCatalog_id = m_Catalog_id;
                CActivesDef startActivesDef = new CActivesDef();
                startActivesDef.Ctx = Program.Ctx;
                startActivesDef.WF_WorkflowDef_id = m_WorkflowDef.Id;
                startActivesDef.WType             = ActivesType.Start;
                startActivesDef.Name = "启动";
                startActivesDef.Idx  = 0;
                m_WorkflowDef.ActivesDefMgr.AddNew(startActivesDef);

                CActivesDef SuccessActivesDef = new CActivesDef();
                SuccessActivesDef.Ctx = Program.Ctx;
                SuccessActivesDef.WF_WorkflowDef_id = m_WorkflowDef.Id;
                SuccessActivesDef.WType             = ActivesType.Success;
                SuccessActivesDef.Name = "成功结束";
                SuccessActivesDef.Idx  = -1;
                m_WorkflowDef.ActivesDefMgr.AddNew(SuccessActivesDef);

                CActivesDef FailureActivesDef = new CActivesDef();
                FailureActivesDef.Ctx = Program.Ctx;
                FailureActivesDef.WF_WorkflowDef_id = m_WorkflowDef.Id;
                FailureActivesDef.WType             = ActivesType.Failure;
                FailureActivesDef.Name = "失败结束";
                FailureActivesDef.Idx  = -2;
                m_WorkflowDef.ActivesDefMgr.AddNew(FailureActivesDef);

                CLink Link = new CLink();
                Link.Ctx = Program.Ctx;
                Link.WF_WorkflowDef_id = m_WorkflowDef.Id;
                Link.Result            = enumApprovalResult.Accept;
                Link.PreActives        = startActivesDef.Id;
                Link.NextActives       = SuccessActivesDef.Id;
                m_WorkflowDef.LinkMgr.AddNew(Link);
            }

            txtName.Text = m_WorkflowDef.Name;


            CTable Table = (CTable)Program.Ctx.TableMgr.Find(m_WorkflowDef.FW_Table_id);

            if (Table != null)
            {
                txtTable.Text = Table.Name;
            }
            LoadActives();
            if (dataGridView.Rows.Count > 0)
            {
                CActivesDef ActivesDef = (CActivesDef)dataGridView.Rows[0].Tag;
                LoadLink(ActivesDef);
            }
        }
예제 #14
0
파일: menus.cs 프로젝트: erdincay/sipek-1
        public CIdlePage()
            : base((int)EPages.P_IDLE)
        {
            _timedate         = new CText("");
            _timedate.PosY    = 0;
            _timedate.Caption = System.DateTime.Now.ToShortDateString() + " " + System.DateTime.Now.ToShortTimeString();
            CTimeoutDecorator timeDecor = new CTimeoutDecorator(_timedate, 1000, true);

            timeDecor.OnTimeout += new VoidDelegate(timeDateHandler);
            this.add(timeDecor);

            CText title = new CText("SIPek", EAlignment.justify_center);

            title.PosY = 3;
            add(title);

            // status indicator
            _statusBar      = new CStatusBar(EAlignment.justify_right);
            _statusBar.PosY = 0;
            add(_statusBar);

            _displayName       = new CText("");
            _displayName.PosY  = 4;
            _displayName.Align = EAlignment.justify_center;
            add(_displayName);

            CLink mlinkPhonebook = new CLink("Buddies", (int)EPages.P_PHONEBOOK);

            mlinkPhonebook.PosY    = 9;
            mlinkPhonebook.LinkKey = mlinkPhonebook.PosY;
            this.add(mlinkPhonebook);

            _linkRinger         = new CLink("Ring Mode", (int)EPages.P_RINGMODE);
            _linkRinger.Align   = EAlignment.justify_right;
            _linkRinger.PosY    = 8;
            _linkRinger.LinkKey = _linkRinger.PosY;
            this.add(_linkRinger);

            CLink mlinkCalls = new CLink("Calls", (int)EPages.P_CALLLOG);

            mlinkCalls.Align   = EAlignment.justify_right;
            mlinkCalls.PosY    = 10;
            mlinkCalls.LinkKey = mlinkCalls.PosY;
            this.add(mlinkCalls);

            _linkAccounts      = new CLink("Accounts", (int)EPages.P_ACCOUNTS);
            _linkAccounts.PosY = 7;
            this.add(_linkAccounts);

            // Initialize handlers
            Digitkey += new BoolIntDelegate(digitkeyHandler);
            Charkey  += new BoolIntDelegate(CIdlePage_Charkey);
            Offhook  += new VoidDelegate(IdlePage_Offhook);
            Menu     += new VoidDelegate(IdlePage_Menu);
            Ok       += new VoidDelegate(IdlePage_Ok);
        }
예제 #15
0
        public CExtendedPage(int pageId)
            : base(pageId)
        {
            _embeddedPages = new List <CPage>();

            _linkNext       = new CLink("Next");
            _linkNext.PosY  = 10;
            _linkNext.Align = EAlignment.justify_right;
            add(_linkNext);
        }
예제 #16
0
    public override bool CanEstablishLink(CNode other, CLink checkLink)
    {
        /*	bool countryBlock = false;
        if (other.GetType () == System.Type.GetType ("CountryNode")) {
            CountryNode otherCountry = other as CountryNode;
            countryBlock = (otherCountry.country == country);
        }*/

        return !checkLink.nodes.Contains (this);
    }
예제 #17
0
        static void Main(string[] args)
        {
            CLink  CL      = new CLink();
            Server _server = CL.CreateServer("Main Server", 2048, @"F:\Servers\1364307782", "server.jar");

            _server.StartServer();
            Console.ReadLine();
            CL.MassStop();
            Console.ReadLine();
        }
예제 #18
0
    public override bool CanEstablishLink(CNode other, CLink checkLink)
    {
        /*	bool countryBlock = false;
         *      if (other.GetType () == System.Type.GetType ("CountryNode")) {
         *              CountryNode otherCountry = other as CountryNode;
         *              countryBlock = (otherCountry.country == country);
         *      }*/

        return(!checkLink.nodes.Contains(this));
    }
예제 #19
0
    public CWorkflowDef GetWorkflowDef()
    {
        if (Session["AddWorkflowDef"] == null)
        {
            CUser        user        = (CUser)Session["User"];
            CWorkflowDef WorkflowDef = new CWorkflowDef();
            WorkflowDef.Ctx = Global.GetCtx(Session["TopCompany"].ToString());
            Guid Catalog_id = Guid.Empty;
            if (!string.IsNullOrEmpty(Request["catalog_id"]))
            {
                Catalog_id = new Guid(Request["catalog_id"]);
            }
            WorkflowDef.WF_WorkflowCatalog_id = Catalog_id;
            WorkflowDef.B_Company_id          = m_Company.Id;
            WorkflowDef.Creator = user.Id;
            CActivesDef startActivesDef = new CActivesDef();
            startActivesDef.Ctx = Global.GetCtx(Session["TopCompany"].ToString());
            startActivesDef.WF_WorkflowDef_id = WorkflowDef.Id;
            startActivesDef.WType             = ActivesType.Start;
            startActivesDef.Name    = "启动";
            startActivesDef.Idx     = 0;
            startActivesDef.Creator = user.Id;
            WorkflowDef.ActivesDefMgr.AddNew(startActivesDef);

            CActivesDef SuccessActivesDef = new CActivesDef();
            SuccessActivesDef.Ctx = Global.GetCtx(Session["TopCompany"].ToString());
            SuccessActivesDef.WF_WorkflowDef_id = WorkflowDef.Id;
            SuccessActivesDef.WType             = ActivesType.Success;
            SuccessActivesDef.Name    = "成功结束";
            SuccessActivesDef.Idx     = -1;
            SuccessActivesDef.Creator = user.Id;
            WorkflowDef.ActivesDefMgr.AddNew(SuccessActivesDef);

            CActivesDef FailureActivesDef = new CActivesDef();
            FailureActivesDef.Ctx = Global.GetCtx(Session["TopCompany"].ToString());
            FailureActivesDef.WF_WorkflowDef_id = WorkflowDef.Id;
            FailureActivesDef.WType             = ActivesType.Failure;
            FailureActivesDef.Name    = "失败结束";
            FailureActivesDef.Idx     = -2;
            FailureActivesDef.Creator = user.Id;
            WorkflowDef.ActivesDefMgr.AddNew(FailureActivesDef);

            CLink Link = new CLink();
            Link.Ctx = Global.GetCtx(Session["TopCompany"].ToString());
            Link.WF_WorkflowDef_id = WorkflowDef.Id;
            Link.Result            = enumApprovalResult.Accept;
            Link.PreActives        = startActivesDef.Id;
            Link.NextActives       = SuccessActivesDef.Id;
            Link.Creator           = user.Id;
            WorkflowDef.LinkMgr.AddNew(Link);

            Session["AddWorkflowDef"] = WorkflowDef;
        }
        return((CWorkflowDef)Session["AddWorkflowDef"]);
    }
예제 #20
0
파일: menus.cs 프로젝트: erdincay/sipek-1
        bool recordLink_Ok()
        {
            CLink item = (CLink)_list.Selected;

            if (item == null)
            {
                return(false);
            }

            CCallManager.getInstance().createSession(item.subItems[2]);
            return(true);
        }
예제 #21
0
    public virtual void OnDestroy()
    {
        menuOpen = false;
        parentCC.nodes.Remove(this);

        while (links.Count > 0)
        {
            CLink link = links [0];
            links.Remove(link);

            GameObject.Destroy(link.gameObject);
        }
    }
예제 #22
0
        bool CXferListPage_Ok()
        {
            CLink selection = (CLink)_xfer2List.Selected;

            if (selection == null)
            {
                return(false);
            }

            string sesIndStr = selection.subItems[0];

            _currentCall.getState().xferCallSession(int.Parse(sesIndStr));
            return(true);
        }
예제 #23
0
        bool C3PtyListPage_Ok()
        {
            CLink selection = (CLink)_3pty2List.Selected;

            if (selection == null)
            {
                return(false);
            }

            string sesIndStr = selection.subItems[0];

            _currentCall.getState().threePtyCall(int.Parse(sesIndStr));
            return(true);
        }
예제 #24
0
        public CHoldingPage()
            : base(ECallPages.P_HOLDING, "Holding...")
        {
            _hold          = new CLink("Retrieve");
            _hold.Softkey += new BoolIntDelegate(_hold_Softkey);
            _hold.PosY     = 7;
            add(_hold);

            _xfer          = new CLink("Transfer");
            _xfer.Softkey += new BoolIntDelegate(_xfer_Softkey);
            _xfer.PosY     = 9;
            add(_xfer);

            Digitkey += new BoolIntDelegate(CHoldingPage_Digitkey);
        }
예제 #25
0
파일: menus.cs 프로젝트: erdincay/sipek-1
        bool messageLink_Softkey(int keyId)
        {
            CLink item = (CLink)_list.Selected;

            if (item == null)
            {
                return(false);
            }

            CMessageBoxPage page = (CMessageBoxPage)_controller.getPage((int)EPages.P_MESSAGEBOX);

            page.BuddyId = int.Parse(item.subItems[0]);
            _controller.showPage(page.Id);
            return(true);
        }
예제 #26
0
    void PostData()
    {
        CUser user       = (CUser)Session["User"];
        CLink BaseObject = new CLink();

        BaseObject.Ctx     = Global.GetCtx(Session["TopCompany"].ToString());
        BaseObject.Creator = user.Id;

        List <CBaseObject> lstCol = m_Table.ColumnMgr.GetList();
        bool bHasVisible          = false;

        foreach (CBaseObject obj in lstCol)
        {
            CColumn col = (CColumn)obj;

            if (col.Code.Equals("id", StringComparison.OrdinalIgnoreCase))
            {
                continue;
            }
            else if (col.Code.Equals("Created", StringComparison.OrdinalIgnoreCase))
            {
                continue;
            }
            else if (col.Code.Equals("Creator", StringComparison.OrdinalIgnoreCase))
            {
                //BaseObject.SetColValue(col, Program.User.Id);
                continue;
            }
            else if (col.Code.Equals("Updated", StringComparison.OrdinalIgnoreCase))
            {
                continue;
            }
            else if (col.Code.Equals("Updator", StringComparison.OrdinalIgnoreCase))
            {
                //BaseObject.SetColValue(col, Program.User.Id);
                continue;
            }

            BaseObject.SetColValue(col, Request.Params[col.Code]);
            bHasVisible = true;
        }
        if (!bHasVisible)
        {
            Response.Write("没有可修改字段!");
            return;
        }
        m_LinkMgr.AddNew(BaseObject);
    }
예제 #27
0
파일: menus.cs 프로젝트: erdincay/sipek-1
        public CMessageReceivedPage()
            : base((int)EPages.P_MESSAGERECEIVEDBOX, "Message Received")
        {
            _titleText      = new CText("");
            _titleText.PosY = 1;
            add(_titleText);

            _textBox      = new CTextBox("");
            _textBox.PosY = 3;
            add(_textBox);

            _replyLink          = new CLink("Reply");
            _replyLink.PosY     = 9;
            _replyLink.Softkey += new BoolIntDelegate(_replyLink_Softkey);
            add(_replyLink);
        }
예제 #28
0
        public CIncomingPage()
            : base(ECallPages.P_INCOMING, "Incoming...")
        {
            CLink accept_call = new CLink("Accept");

            accept_call.Softkey += new BoolIntDelegate(accept_call_Softkey);
            accept_call.PosY     = 7;
            accept_call.LinkKey  = accept_call.PosY;
            this.add(accept_call);

            CLink deflectLink = new CLink("Deflect", (int)ECallPages.P_DEFLECT);

            deflectLink.PosY  = 8;
            deflectLink.Align = EAlignment.justify_right;
            this.add(deflectLink);
        }
예제 #29
0
파일: menus.cs 프로젝트: erdincay/sipek-1
        public CCalllogPage()
            : base((int)EPages.P_CALLLOG, "Call Register")
        {
            _list      = new CSelectList(8, 2);
            _list.PosY = 1;
            add(_list);

            CLink clearLink = new CLink("Clear All");

            clearLink.PosY     = 10;
            clearLink.LinkKey  = clearLink.PosY;
            clearLink.Align    = EAlignment.justify_right;
            clearLink.Softkey += new BoolIntDelegate(clearLink_Softkey);
            add(clearLink);

            Menu += new VoidDelegate(CCalllogPage_Menu);
        }
예제 #30
0
파일: menus.cs 프로젝트: erdincay/sipek-1
        public override void onEntry()
        {
            _list.removeAll();

            Dictionary <int, CBuddyRecord> results = CBuddyList.getInstance().getList();

            foreach (KeyValuePair <int, CBuddyRecord> kvp in results)
            {
                CLink recordLink = new CLink(kvp.Value.FirstName + " " + kvp.Value.LastName);
                recordLink.subItems[0] = kvp.Value.Id.ToString();

                recordLink.Ok      += new VoidDelegate(recordLink_Ok);
                recordLink.Softkey += new BoolIntDelegate(recordLink_Softkey);
                _list.add(recordLink);
            }

            base.onEntry();
        }
예제 #31
0
 private void LinkInfo_Load(object sender, EventArgs e)
 {
     if (m_Link == null)
     {
         m_bIsNew   = true;
         m_Link     = new CLink();
         m_Link.Ctx = Program.Ctx;
         m_Link.WF_WorkflowDef_id = m_WorkflowDef.Id;
         m_Link.PreActives        = m_PreActives.Id;
         m_Link.Result            = enumApprovalResult.Accept;
     }
     LoadResult();
     LoadAndOr();
     LoadColumn();
     LoadSign();
     LoadNextActives();
     LoadData();
 }
예제 #32
0
        public CExtendedPage(int pageId)
            : base(pageId)
        {
            _embeddedPages = new List<CPage>();

              _linkNext = new CLink("Next");
              _linkNext.PosY = 10;
              _linkNext.Align = EAlignment.justify_right;
              add(_linkNext);
        }
예제 #33
0
파일: menus.cs 프로젝트: AngieToro/sipek
        public CIdlePage()
            : base((int)EPages.P_IDLE)
        {
            _timedate = new CText("");
              _timedate.PosY = 0;
              _timedate.Caption = System.DateTime.Now.ToShortDateString() + " " + System.DateTime.Now.ToShortTimeString();
              CTimeoutDecorator timeDecor = new CTimeoutDecorator(_timedate, 1000, true);
              timeDecor.OnTimeout += new VoidDelegate(timeDateHandler);
              this.add(timeDecor);

              CText title = new CText("SIPek", EAlignment.justify_center);
              title.PosY = 3;
              add(title);

              // status indicator
              _statusBar = new CStatusBar(EAlignment.justify_right);
              _statusBar.PosY = 0;
              add(_statusBar);

              _displayName = new CText("");
              _displayName.PosY = 4;
              _displayName.Align = EAlignment.justify_center;
              add(_displayName);

              CLink mlinkPhonebook = new CLink("Buddies", (int)EPages.P_PHONEBOOK);
              mlinkPhonebook.PosY = 9;
              mlinkPhonebook.LinkKey = mlinkPhonebook.PosY;
              this.add(mlinkPhonebook);

              _linkRinger = new CLink("Ring Mode", (int)EPages.P_RINGMODE);
              _linkRinger.Align = EAlignment.justify_right;
              _linkRinger.PosY = 8;
              _linkRinger.LinkKey = _linkRinger.PosY;
              this.add(_linkRinger);

              CLink mlinkCalls = new CLink("Calls", (int)EPages.P_CALLLOG);
              mlinkCalls.Align = EAlignment.justify_right;
              mlinkCalls.PosY = 10;
              mlinkCalls.LinkKey = mlinkCalls.PosY;
              this.add(mlinkCalls);

              _linkAccounts = new CLink("Accounts", (int)EPages.P_ACCOUNTS);
              _linkAccounts.PosY = 7;
              this.add(_linkAccounts);

              // Initialize handlers
              Digitkey += new BoolIntDelegate(digitkeyHandler);
              Charkey += new BoolIntDelegate(CIdlePage_Charkey);
              Offhook += new VoidDelegate(IdlePage_Offhook);
              Menu += new VoidDelegate(IdlePage_Menu);
              Ok += new VoidDelegate(IdlePage_Ok);
        }
예제 #34
0
파일: menus.cs 프로젝트: AngieToro/sipek
        public CInitPage()
            : base((int)EPages.P_INIT)
        {
            this.forgetPage(true);

              CLink link = new CLink("Initializing", (int)EPages.P_INIT);
              link.Align = EAlignment.justify_center;
              link.PosY = 2;
              link.LinkKey = link.PosY;
              this.add(link);

              CText text = new CText("Sipek Phone", EAlignment.justify_center);
              text.PosY = 3;
              this.add(text);

              CText txt = new CText(".....");
              txt.PosY = 5;
              txt.PosX = 10;
              CHorizontalScroller scrollingtext = new CHorizontalScroller(txt, 10, 200);
              // add(scrollingtext); // solve problem with remaining dots

              this.Ok += new VoidDelegate(okhandler);
        }
예제 #35
0
        public CXferListPage()
            : base(ECallPages.P_XFERLIST, "Transfer to...")
        {
            this.clearHistory(false);

              // remove end call link from CTelephony
              this.remove(_endCall);
              this.remove(_sessions);
              this.remove(_name);
              this.remove(_digits);

              _xfer2List = new CSelectList(5);
              _xfer2List.PosY = 1;
              this.add(_xfer2List);

              CLink blind = new CLink("Enter number", (int)ECallPages.P_XFERDIAL);
              blind.Align = EAlignment.justify_right;
              blind.PosY = 10;
              this.add(blind);

              // handlers
              Ok += new VoidDelegate(CXferListPage_Ok);
        }
예제 #36
0
        public CTelephonyPage(ECallPages pageId, string pageName)
            : base((int)pageId, false,true)
        {
            setText(pageName);

            CText title = new CText(pageName);
            title.PosY = 0;
            add(title);
            // sessions link
              _sessions = new CLink("0/0");
              _sessions.Align = EAlignment.justify_right;
              _sessions.Softkey += new BoolIntDelegate(sessionHandler);
              _sessions.PosY = 0;
              this.add(_sessions);

            _digits = new CText("");
              _digits.Align = EAlignment.justify_center;
            _digits.PosY = 1;
            this.add(_digits);

              _name = new CText("");
              _name.Align = EAlignment.justify_center;
              _name.PosY = 2;
              this.add(_name);

            _info = new CText("");
              _info.Align = EAlignment.justify_center;
            _info.PosY = 7;
            this.add(_info);

            _endCall = new CLink("End Call");
              _endCall.Align = EAlignment.justify_right;
              _endCall.Softkey += new BoolIntDelegate(endCallHandler);
              _endCall.PosY = 10;
              _endCall.LinkKey = _endCall.PosY;
              this.add(_endCall);

              // assign page handlers....
              this.Onhook += new VoidDelegate(onhookHandler);
              this.Speaker += new VoidDelegate(onspeakerHandler);
              this.Menu += new VoidDelegate(menuHandler);
        }
예제 #37
0
        public CIncomingPage()
            : base(ECallPages.P_INCOMING, "Incoming...")
        {
            CLink accept_call = new CLink("Accept");
              accept_call.Softkey += new BoolIntDelegate(accept_call_Softkey);
              accept_call.PosY = 7;
              accept_call.LinkKey = accept_call.PosY;
              this.add(accept_call);

              CLink deflectLink = new CLink("Deflect", (int)ECallPages.P_DEFLECT);
              deflectLink.PosY = 8;
              deflectLink.Align = EAlignment.justify_right;
              this.add(deflectLink);
        }
예제 #38
0
파일: menus.cs 프로젝트: AngieToro/sipek
        public CMessageBoxPage()
            : base((int)EPages.P_MESSAGEBOX, "Send Message To...")
        {
            _titleText = new CText("Buddy");
              _titleText.PosY = 1;
              add(_titleText);

              _textBox = new CTextBox("");
              _textBox.PosY = 2;
              add(_textBox);

              _editBox = new CEditBox(">", "");
              _editBox.PosY = 5;
              add(_editBox);

              CLink sendLink = new CLink("Send");
              sendLink.PosY = 10;
              sendLink.Align = EAlignment.justify_right;
              sendLink.Softkey += new BoolIntDelegate(sendLink_Softkey);
              this.add(sendLink);

              _buddyName = new CLink("");
              _buddyName.PosY = 3;
              add(_buddyName);

              this.Ok += new VoidDelegate(CMessageBoxPage_Ok);
        }
예제 #39
0
파일: menus.cs 프로젝트: AngieToro/sipek
        public override void onEntry()
        {
            _list.removeAll();

              Dictionary<int, CBuddyRecord> results = CBuddyList.getInstance().getList();

              foreach (KeyValuePair<int, CBuddyRecord> kvp in results)
              {
            CLink recordLink = new CLink(kvp.Value.FirstName + " " + kvp.Value.LastName);
            recordLink.subItems[0] = kvp.Value.Id.ToString();

            recordLink.Ok += new VoidDelegate(recordLink_Ok);
            recordLink.Softkey += new BoolIntDelegate(recordLink_Softkey);
            _list.add(recordLink);
              }

              base.onEntry();
        }
예제 #40
0
파일: menus.cs 프로젝트: AngieToro/sipek
        public CPhonebookPage()
            : base((int)EPages.P_PHONEBOOK,"Phonebook")
        {
            _criteria = new CEditField(">", "", EEditMode.alphanum_low, true);
              _criteria.PosY = 1;
              _criteria.Digitkey += new BoolIntDelegate(_criteria_Digitkey);
              add(_criteria);

              _list = new CSelectList(7);
              _list.PosY = 3;
              add(_list);

              CLink addNewLink = new CLink("Add New", (int)EPages.P_PHONEBOOKEDIT);
              addNewLink.PosY = 9;
              //addNewLink.Align = EAlignment.justify_right;
              add(addNewLink);

              CLink modifyLink = new CLink("Modify");
              modifyLink.PosY = 10;
              modifyLink.Softkey += new BoolIntDelegate(modifyLink_Softkey);
              modifyLink.Align = EAlignment.justify_right;
              add(modifyLink);

              CLink messageLink = new CLink("Message");
              messageLink.Align = EAlignment.justify_right;
              messageLink.PosY = 8;
              messageLink.Softkey += new BoolIntDelegate(messageLink_Softkey);
              add(messageLink);

              Menu += new VoidDelegate(CPhonebookPage_Menu);
        }
예제 #41
0
파일: menus.cs 프로젝트: AngieToro/sipek
        public CAccountsPage()
            : base((int)EPages.P_ACCOUNTS, "Accounts")
        {
            _radio = new CRadioButtonGroup();

              _list = new CSelectList(_radio, 5);
              _list.PosY = 3;
              add(_list);

              CLink linkConfigure = new CLink("Edit");
              linkConfigure.Align = EAlignment.justify_right;
              linkConfigure.PosY = 10;
              linkConfigure.Softkey += new BoolIntDelegate(linkConfigure_Softkey);
              add(linkConfigure);

              CLink linkSave = new CLink("Save changes");
              linkSave.PosY = 9;
              linkSave.Softkey += new BoolIntDelegate(linkSave_Softkey);
              add(linkSave);

              this.Menu += new VoidDelegate(_radio_Menu);
              this.Ok += new VoidDelegate(CAccountsPage_Ok);
              this.Esc += new VoidDelegate(CAccountsPage_Esc);
        }
예제 #42
0
파일: menus.cs 프로젝트: AngieToro/sipek
        public CPhonebookEditPage()
            : base((int)EPages.P_PHONEBOOKEDIT, "Editing")
        {
            _fname = new CEditField("First Name>", "", EEditMode.alphanum_high, true);
              _fname.PosY = 3;
              _fname.LinkKey = _fname.PosY;
              add(_fname);

              _lname = new CEditField("Last Name>", "", EEditMode.alphanum_high, false);
              _lname.PosY = 5;
              _lname.LinkKey = _lname.PosY;
              add(_lname);

              _number = new CEditField("Number>", "", EEditMode.numeric);
              _number.PosY = 7;
              _number.LinkKey = _number.PosY;
              add(_number);

              CLink saveLink = new CLink("Save!");
              saveLink.PosY = 8;
              saveLink.LinkKey = saveLink.PosY;
              saveLink.Align = EAlignment.justify_right;
              saveLink.Softkey += new BoolIntDelegate(saveLink_Softkey);
              add(saveLink);

              CLink deleteLink = new CLink("Delete!");
              deleteLink.PosY = 10;
              deleteLink.Align = EAlignment.justify_right;
              deleteLink.LinkKey = deleteLink.PosY;
              deleteLink.Softkey += new BoolIntDelegate(deleteLink_Softkey);
              add(deleteLink);
        }
예제 #43
0
파일: menus.cs 프로젝트: AngieToro/sipek
        public CMessageReceivedPage()
            : base((int)EPages.P_MESSAGERECEIVEDBOX, "Message Received")
        {
            _titleText = new CText("");
              _titleText.PosY = 1;
              add(_titleText);

              _textBox = new CTextBox("");
              _textBox.PosY = 3;
              add(_textBox);

              _replyLink = new CLink("Reply");
              _replyLink.PosY = 9;
              _replyLink.Softkey += new BoolIntDelegate(_replyLink_Softkey);
              add(_replyLink);
        }
예제 #44
0
        public CCallOptionsPage()
            : base(ECallPages.P_CALLOPTIONS, "Options...")
        {
            clearHistory(false);

              forgetPage(false);

              // remove all CTelephony controls.
              removeAll();

              _mute = new CCheckBox("Mute");
              _mute.PosY = 5;
              _mute.Softkey += new BoolIntDelegate(_mute_Softkey);
              this.add(_mute);

              CLink volume = new CLink("Volume", (int)ECallPages.P_SETVOLUME);
              volume.PosY = 6;
              volume.Align = EAlignment.justify_right;
              this.add(volume);

              _linkDtmf = new CLink("DTMF mode", (int)ECallPages.P_DTMFOPTIONS);
              _linkDtmf.PosY = 7;
              this.add(_linkDtmf);

              CLink calls = new CLink("Calls", (int)EPages.P_CALLLOG);
              calls.PosY = 8;
              calls.Align = EAlignment.justify_right;
              this.add(calls);

              CLink phonebook = new CLink("Phonebook", (int)EPages.P_PHONEBOOK);
              phonebook.PosY = 9;
              this.add(phonebook);

              CLink menu = new CLink("Menu", (int)EPages.P_MENU);
              menu.PosY = 10;
              menu.Align = EAlignment.justify_right;
              this.add(menu);
        }
예제 #45
0
파일: menus.cs 프로젝트: AngieToro/sipek
        public CSIPProxySettings3rd()
            : base((int)EPages.P_SIPPROXYSETTINGS_3rd, "Settings")
        {
            this.forgetPage(true);

              _editDomain = new CEditField("Domain>", "", true);
              _editDomain.PosY = 5;
              _editDomain.LinkKey = _editDomain.PosY;
              this.add(_editDomain);

              _editperiod = new CEditField("Reg. Period>", "", EEditMode.numeric);
              _editperiod.PosY = 7;
              _editperiod.LinkKey = _editperiod.PosY;
              this.add(_editperiod);

              CLink linkNext = new CLink("More...");
              linkNext.PosY = 10;
              linkNext.Align = EAlignment.justify_right;
              linkNext.Softkey += new BoolIntDelegate(linkNext_Softkey);
              add(linkNext);

              this.Ok += new VoidDelegate(CSIPProxySettings_Ok);
        }
예제 #46
0
파일: menus.cs 프로젝트: AngieToro/sipek
        public CSIPSettings()
            : base((int)EPages.P_SIPSETTINGS, "SIP Settings")
        {
            _list = new CSelectList(3);
              _list.PosY = 2;
              add(_list);

              _editport = new CEditField("Local Port>", "", EEditMode.numeric);
              _editport.PosY = 7;
              _editport.LinkKey = _editport.PosY;
              add(_editport);

              _accountsLink = new CLink("Accounts", (int)EPages.P_ACCOUNTS);
              _accountsLink.Align = EAlignment.justify_right;
              _accountsLink.PosY = 8;
              _accountsLink.LinkKey = _accountsLink.PosY;
              add(_accountsLink);

              // ok handler
              this.Ok += new VoidDelegate(CSIPSettings_Ok);
        }
예제 #47
0
        public CActivePage()
            : base(ECallPages.P_ACTIVE, "Connected...")
        {
            _duration = new CText("00:00");
              _duration.PosY = 2;
              _duration.Align = EAlignment.justify_right;

              CTimeoutDecorator decor = new CTimeoutDecorator(_duration, 1000, true);
              decor.OnTimeout += new VoidDelegate(decor_OnTimeout);

              add(decor);

              _hold = new CLink("Hold");
              _hold.Softkey += new BoolIntDelegate(_hold_Softkey);
              _hold.PosY = 7;
              add(_hold);

              _3pty = new CLink("3Pty");
              _3pty.Align = EAlignment.justify_right;
              _3pty.PosY = 8;
              //add(_3pty);

              _xfer = new CLink("Transfer");
              //_xfer.Softkey += new BoolIntDelegate(_xfer_Softkey);
              _xfer.PosY = 9;
              add(_xfer);

              this.Digitkey += new BoolIntDelegate(CActivePage_Digitkey);
        }
예제 #48
0
파일: menus.cs 프로젝트: AngieToro/sipek
        public CSIPProxySettings2nd()
            : base((int)EPages.P_SIPPROXYSETTINGS_2nd, "Settings")
        {
            this.forgetPage(true);
              ////////////
              // 2nd page
              _editUserName = new CEditField("Username>", "", true);
              _editUserName.PosY = 5;
              _editUserName.LinkKey = _editUserName.PosY;
              this.add(_editUserName);

              _editPassword = new CEditField("Password>", "");
              _editPassword.PosY = 7;
              _editPassword.LinkKey = _editPassword.PosY;
              this.add(_editPassword);

              CLink linkNext = new CLink("More...");
              linkNext.PosY = 10;
              linkNext.Align = EAlignment.justify_right;
              linkNext.Softkey += new BoolIntDelegate(linkNext_Softkey);
              add(linkNext);

              this.Ok += new VoidDelegate(CSIPProxySettings_Ok);
        }
예제 #49
0
        public CHoldingPage()
            : base(ECallPages.P_HOLDING, "Holding...")
        {
            _hold = new CLink("Retrieve");
              _hold.Softkey += new BoolIntDelegate(_hold_Softkey);
              _hold.PosY = 7;
              add(_hold);

              _xfer = new CLink("Transfer");
              _xfer.Softkey += new BoolIntDelegate(_xfer_Softkey);
              _xfer.PosY = 9;
              add(_xfer);

              Digitkey += new BoolIntDelegate(CHoldingPage_Digitkey);
        }
예제 #50
0
파일: menus.cs 프로젝트: AngieToro/sipek
        public CSIPProxySettings()
            : base((int)EPages.P_SIPPROXYSETTINGS,"Settings")
        {
            // create 1st page
              _editDisplayName = new CEditField("Name>", "",true);
              _editDisplayName.PosY = 3;
              _editDisplayName.LinkKey = _editDisplayName.PosY;
              this.add(_editDisplayName);

              _editId = new CEditField("Id>", "");
              _editId.PosY = 5;
              _editId.LinkKey = _editId.PosY;
              this.add(_editId);

              //_editProxyAddress = new CIpAddressEdit("Proxy>");
              _editProxyAddress = new CEditField("Proxy>","");
              _editProxyAddress.PosY = 7;
              _editProxyAddress.LinkKey = _editProxyAddress.PosY;
              this.add(_editProxyAddress);

              _editProxyPort = new CEditField("Port>", "", EEditMode.numeric);
              _editProxyPort.PosY = 9;
              _editProxyPort.LinkKey = _editProxyPort.PosY;
              this.add(_editProxyPort);

              CLink linkNext = new CLink("More...");
              linkNext.PosY = 10;
              linkNext.Align = EAlignment.justify_right;
              linkNext.Softkey += new BoolIntDelegate(linkNext_Softkey);
              add(linkNext);

              this.Ok += new VoidDelegate(CSIPProxySettings_Ok);
              this.Esc += new VoidDelegate(CSIPProxySettings_Esc);
        }
예제 #51
0
        public CPreDialPage()
            : base(ECallPages.P_PREDIALING, "Dialing...")
        {
            clearHistory(false);

              CLink linkHide = new CLink("Hide Number", 0);
              linkHide.PosY = 7;
              this.add(linkHide);

              CLink dialing_phbook = new CLink("Phonebook"/*, P_PBOOK*/);
              dialing_phbook.PosY = 9;
              this.add(dialing_phbook);

              CLink linkCall = new CLink("Calls");
              linkCall.Align = EAlignment.justify_right;
              linkCall.Softkey += new BoolIntDelegate(callHandler);
              linkCall.PosY = 8;
              this.add(linkCall);

              CLink linkSave = new CLink("Save");
              linkSave.Align = EAlignment.justify_right;
              linkSave.PosY = 10;
              this.add(linkSave);

              _editField = new CEditField(">", "", EEditMode.numeric, true);
              _editField.PosY = 2;
              this.add(_editField);

              // page handlers
              //this->OnOkKeyFPtr = &this->okHandlerFctr;
              //this->OnOffhookKeyFPtr = &this->okHandlerFctr;
              //this->OnSpeakerKeyFPtr = &this->okHandlerFctr;

              this.Ok += new VoidDelegate(okHandler);
              Offhook += new VoidDelegate(CPreDialPage_Offhook);
        }
예제 #52
0
파일: menus.cs 프로젝트: AngieToro/sipek
        public CServicesPage()
            : base((int)EPages.P_SERVICES, "Services")
        {
            CLink linkRedirect = new CLink("Redirect", (int)EPages.P_REDIRECT);
              linkRedirect.PosY = 7;
              add(linkRedirect);

              CCheckBox chbDND = new CCheckBox("Do Not Disturb", 0);
              chbDND.PosY = 8;
              chbDND.Align = EAlignment.justify_right;
              chbDND.OnChecked += new VoidDelegate(chbDND_OnChecked);
              chbDND.OnUnchecked += new VoidDelegate(chbDND_OnUnchecked);
              add(chbDND);

              CCheckBox linkAA = new CCheckBox("Auto Answer", 0);
              linkAA.PosY = 9;
              add(linkAA);
        }
예제 #53
0
        public CXferDialingPage()
            : base(ECallPages.P_XFERDIAL, "Transfer...")
        {
            this.clearHistory(false);

              CLink phbookLink = new CLink("Phonebook", (int)EPages.P_PHONEBOOK);
              phbookLink.PosY = 9;
              this.add(phbookLink);

              CLink callRegLink = new CLink("Calls", (int)EPages.P_CALLLOG);
              callRegLink.Align = EAlignment.justify_right;
              callRegLink.PosY = 8;
              this.add(callRegLink);

              _editField = new CEditField(">", "", EEditMode.numeric, true);
              _editField.PosY = 2;
              _editField.Ok += new VoidDelegate(_editField_Ok);
              this.add(_editField);

              // remove unneeded controls
              remove(this._name);
              remove(this._sessions);
        }
예제 #54
0
 public override bool CanEstablishLink(CNode other, CLink checkLink)
 {
     return links.Count == 0;
 }
예제 #55
0
        public override void onEntry()
        {
            int callnums = _callManager.getNoCallsInState(EStateId.HOLDING | EStateId.ACTIVE);

              _xfer2List.removeAll();

              Dictionary<int, CStateMachine> list = _callManager.CallList;
              foreach (KeyValuePair<int, CStateMachine> kvp in list)
              {
            CStateMachine call = kvp.Value;
            if ((call.Session != _callManager.getCurrentCall().Session) &&
              ((call.getStateId() == EStateId.HOLDING)||(call.getStateId() == EStateId.ACTIVE)))
            {
              string dn = call.CallingNo;
              CLink link = new CLink(dn);
              link.Align = EAlignment.justify_left;
              link.subItems[0] = call.Session.ToString();
              _xfer2List.add(link);
            }
              }

              base.onEntry();
        }
예제 #56
0
 public CDoubleLink(string caption_1, string caption_2, EAlignment alignmode1, EAlignment alignmode2)
     : base("")
 {
     _link1 = new CLink(caption_1);
       _link1.Align = alignmode1;
     _link2 = new CLink(caption_2);
       _link2.Align = alignmode2;
 }
예제 #57
0
파일: menus.cs 프로젝트: AngieToro/sipek
        public CMenuPage()
            : base((int)EPages.P_MENU, "Settings")
        {
            CLink linkNetwork = new CLink("Network", 0);
              linkNetwork.PosY = 7;
              add(linkNetwork);

              CLink linkSound = new CLink("Sound", 0);
              linkSound.PosY = 8;
              linkSound.Align = EAlignment.justify_right;
              add(linkSound);

              CLink linkSIP = new CLink("SIP", (int)EPages.P_SIPSETTINGS);
              linkSIP.PosY = 9;
              add(linkSIP);

              CLink linkServices = new CLink("Services", (int)EPages.P_SERVICES);
              linkServices.PosY = 10;
              linkServices.Align = EAlignment.justify_right;
              add(linkServices);
        }
예제 #58
0
파일: menus.cs 프로젝트: AngieToro/sipek
        public CCalllogPage()
            : base((int)EPages.P_CALLLOG, "Call Register")
        {
            _list = new CSelectList(8,2);
              _list.PosY = 1;
              add(_list);

              CLink clearLink = new CLink("Clear All");
              clearLink.PosY = 10;
              clearLink.LinkKey = clearLink.PosY;
              clearLink.Align = EAlignment.justify_right;
              clearLink.Softkey += new BoolIntDelegate(clearLink_Softkey);
              add(clearLink);

              Menu += new VoidDelegate(CCalllogPage_Menu);
        }