Esempio n. 1
0
        private void InitializeChat()
        {
            //Create field link (Done once from constructor when control is first created)
            string cmdText = @"exec sp_WS_ChatFieldLinkGetID 'WS_PCPO_Hdr.ws_pcpo_id', 'Web PO Submission'";

            // creates a unique id and puts into the chat table
            _Chat_FieldLink_ID = Convert.ToInt32(_HMCon.SQLExecutor.ExecuteScalar(cmdText, _HMCon.TRConnection));

            _ucChat        = new ReflexChat.ucChat(_HMCon, _TUC, ReflexChat.ChatType.Default);
            _ucChat.Dock   = DockStyle.Fill;
            _ucChat.Parent = xtabPageChat;
        }
Esempio n. 2
0
        private void SetupChat()
        {
            string cmdText = @"exec sp_WS_ChatFieldLinkGetID 'WS_INV_HEADER.WS_INV_ID', 'Subcontractor Payment Request'";

            // creates a unique id and puts into the chat table
            _Chat_FieldLink_ID = Convert.ToInt32(Connection.SQLExecutor.ExecuteScalar(cmdText, Connection.TRConnection));

            Chat = new ReflexChat.ucChat(Connection, DevXMgr, ReflexChat.ChatType.Default);
            Chat.MessageAdded += new ReflexChat.ucChat.DelegateMessageAdded(Chat_MessageAdded);
            Chat.Dock          = DockStyle.Fill;
            Chat.Parent        = tpChat;
        }
Esempio n. 3
0
        public avChat(HMConnection.HMCon hmCon, TUC_HMDevXManager.TUC_HMDevXManager tuc)
        {
            InitializeComponent();

            this.HMConnection = hmCon;
            this.TUC_DevXMgr  = tuc;


            _ucChat        = new ReflexChat.ucChat(hmCon, tuc, ReflexChat.ChatType.Default);
            _ucChat.Dock   = DockStyle.Fill;
            _ucChat.Parent = this;
            _ucChat.BringToFront();
        }