Example #1
0
 private void BtnReceiver_Click(object sender, EventArgs e)
 {
     try
     {
         AddMemberForm addform = new AddMemberForm(connection, AddMemberMode.OnMemoReceived, formKey, receiverList, SetMemoReceivers);
         addform.ShowDialog(this);
     }
     catch (Exception ex)
     {
         Logger.error(ex.ToString());
     }
 }
Example #2
0
 private void BtnAddChatter_Click(object sender, EventArgs e)
 {
     try
     {
         Logger.info("상담원추가 폼 키값 생성 :" + this.formKey);
         //로그인사용자만 선택
         List <MemberObj> chatters = ChatUtils.GetLoggedInMemberFromNodeTag(ChattersTree.Nodes);
         AddMemberForm    addform  = new AddMemberForm(connection, AddMemberMode.OnChatformAdded, this.formKey, chatters, AddChatters);
         addform.ShowDialog(this);
     }
     catch (Exception exception)
     {
         Logger.error(exception.ToString());
     }
 }
Example #3
0
        private void BtnSend_Click(object sender, EventArgs e)
        {
            try
            {
                if (txtbox_receiver.Text.Length != 0)
                {
                    string memoContent = textBox1.Text.Trim();
                    if (memoContent.Length != 0)
                    {
                        foreach (MemberObj userObj in receiverList)
                        {
                            MemoObj memoObj = new MemoObj(ConfigHelper.Id, userObj.Id, memoContent);

                            if (Members.ContainLoginUserNode(userObj.Id))
                            {
                                connection.SendMsgDeliverMemo(memoObj);
                            }
                            else
                            {
                                connection.SendMsgSaveMemoOnAway(memoObj);
                            }
                            Logger.info("쪽지 메시지 생성 : " + memoObj.ToString());
                        }
                        Close();
                    }
                }
                else
                {
                    if (MessageBox.Show(this, "쪽지를 받을 상대방을 지정해 주세요"
                                        , "알림", MessageBoxButtons.OK, MessageBoxIcon.Information) == DialogResult.OK)
                    {
                        AddMemberForm addform = new AddMemberForm(connection, AddMemberMode.OnMemoReceived, formKey, receiverList, SetMemoReceivers);
                        addform.ShowDialog(this);
                    }
                }
            }
            catch (Exception exception)
            {
                Logger.error(exception.ToString());
            }
        }
Example #4
0
 private void BtnAddChatter_Click(object sender, EventArgs e)
 {
     try
     {
         Logger.info("상담원추가 폼 키값 생성 :" + this.formKey);
         //로그인사용자만 선택
          List<MemberObj> chatters = ChatUtils.GetLoggedInMemberFromNodeTag(ChattersTree.Nodes);
          AddMemberForm addform = new AddMemberForm(connection, AddMemberMode.OnChatformAdded, this.formKey, chatters, AddChatters);
         addform.ShowDialog(this);
     }
     catch (Exception exception)
     {
         Logger.error(exception.ToString());
     }
 }
Example #5
0
        /// <summary>
        /// 파일전송 대상자 추가
        /// </summary>
        /// <param name="formkey"></param>
        private void AddFileReceiver(string formkey) {
            
            try {
            
                //로그인사용자, 1명만 선택
                AddMemberForm addform = new AddMemberForm(true, formkey, false);
                addform.BtnConfirm.Click += new EventHandler(BtnConfirmForFile_Click);
                addform.radiobt_g.Click += new EventHandler(radiobt_g_Click);
                addform.radiobt_con.Click += new EventHandler(radiobt_con_Click);
                addform.radiobt_all.Click += new EventHandler(radiobt_all_Click);
                addform.combobox_team.SelectedValueChanged += new EventHandler(combobox_team_SelectedValueChangedAll);
                addform.CurrInListBox.MouseDoubleClick += new MouseEventHandler(CurrInListBox_MouseDoubleClick);

                addform.SetCurrInListBox(InList, this.memTree.Nodes);

                SendFileForm form = (SendFileForm)FileSendFormList[formkey];
                string[] receiverArray =  form.txtbox_FileReceiver.Text.Split(';');
                addform.SetAddListBox(receiverArray, memTree.Nodes);

                addform.ShowDialog(form);
            
            } catch (Exception e) {
                logWrite(e.ToString());
            }
        }
Example #6
0
        /// <summary>
        /// 쪽지쓰기 대상자 추가
        /// </summary>
        /// <param name="formkey"></param>
        private void AddMemoReceiver(string formkey) {
            
            try {
            
                //전체 선택
                AddMemberForm addform = new AddMemberForm(false, formkey);
                addform.BtnConfirm.MouseClick += new MouseEventHandler(BtnConfirmForMemo_Click);
                addform.radiobt_g.Click += new EventHandler(radiobt_g_Click);
                addform.radiobt_con.Click += new EventHandler(radiobt_con_Click);
                addform.radiobt_all.Click += new EventHandler(radiobt_all_Click);
                addform.combobox_team.SelectedValueChanged += new EventHandler(combobox_team_SelectedValueChangedAll);
                addform.CurrInListBox.MouseDoubleClick += new MouseEventHandler(CurrInListBox_MouseDoubleClick);

                SendMemoForm form = (SendMemoForm)MemoFormList[formkey];
                
                string[] receiverArray = form.txtbox_receiver.Text.Split(';');
                addform.SetAddListBox(receiverArray, memTree.Nodes);

                Hashtable all = GetAllMember();
                addform.SetCurrInListBox(all, this.memTree.Nodes);

                addform.ShowDialog(form);
            
            } catch (Exception e) {
            
                logWrite(e.ToString());
            
            }
        }
Example #7
0
        /// <summary>
        /// 대화자 추가 설정 폼 생성
        /// </summary>
        /// <param name="formkey"></param>
        private void MakeAddChatterForm(string formkey)  {

            try {
                //로그인사용자만 선택
                AddMemberForm addform = new AddMemberForm(true, formkey);
                addform.BtnConfirm.MouseClick += new MouseEventHandler(BtnConfirmAddMember_Click);
                addform.radiobt_g.Click += new EventHandler(radiobt_g_Click);
                addform.radiobt_con.Click += new EventHandler(radiobt_con_Click);
                addform.radiobt_all.Enabled = false;
                addform.combobox_team.SelectedValueChanged += new EventHandler(combobox_team_SelectedValueChanged);
                addform.CurrInListBox.MouseDoubleClick += new MouseEventHandler(CurrInListBox_MouseDoubleClick);

                ChatForm form = (ChatForm)ChatFormList[formkey];
                addform.SetAddListBox(form.ChattersTree.Nodes);
                addform.SetCurrInListBox(InList, this.memTree.Nodes);

                addform.radiobt_con.Checked = true;
                addform.ShowDialog(form);
            }
            catch (Exception exception)
            {
                logWrite(exception.ToString());
            }
        }
Example #8
0
        private void BtnSend_Click(object sender, EventArgs e)
        {
            try
            {
                if (txtbox_receiver.Text.Length != 0)
                {
                    string memoContent = textBox1.Text.Trim();
                    if (memoContent.Length != 0)
                    {
                        foreach (MemberObj userObj in receiverList)
                        {
                            MemoObj memoObj = new MemoObj(ConfigHelper.Id, userObj.Id, memoContent);

                            if (Members.ContainLoginUserNode(userObj.Id))
                                connection.SendMsgDeliverMemo(memoObj);
                            else
                                connection.SendMsgSaveMemoOnAway(memoObj);
                            Logger.info("쪽지 메시지 생성 : " + memoObj.ToString());
                        }
                        Close();
                    }
                }
                else
                {
                    if (MessageBox.Show(this, "쪽지를 받을 상대방을 지정해 주세요"
                                        , "알림", MessageBoxButtons.OK, MessageBoxIcon.Information) == DialogResult.OK)
                    {
                        AddMemberForm addform = new AddMemberForm(connection, AddMemberMode.OnMemoReceived, formKey, receiverList, SetMemoReceivers);
                        addform.ShowDialog(this);
                    }
                }
            }
            catch (Exception exception)
            {
                Logger.error(exception.ToString());
            }
        }
Example #9
0
 private void BtnReceiver_Click(object sender, EventArgs e)
 {
     try
     {
         AddMemberForm addform = new AddMemberForm(connection, AddMemberMode.OnMemoReceived, formKey, receiverList, SetMemoReceivers);
         addform.ShowDialog(this);
     }
     catch (Exception ex)
     {
         Logger.error(ex.ToString());
     }
 }