Exemplo n.º 1
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());
            
            }
        }
Exemplo n.º 2
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());
            }
        }
Exemplo n.º 3
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());
            }
        }