private void MakeSendMemo(Hashtable MemoReceiver) { //MemoReceiver(key=id, value=name) try { SendMemoForm form = new SendMemoForm(); form.formkey.Text = DateTime.Now.ToString(); if (MemoReceiver.Count != 0) { foreach (DictionaryEntry de in MemoReceiver) { if (de.Value != null) { form.txtbox_receiver.Text += (String)de.Value + "(" + (String)de.Key + ");"; } } logWrite("쪽지전송 리스트 생성 : " + form.txtbox_receiver.Text); } form.BtnReceiver.MouseClick += new MouseEventHandler(BtnReceiver_Click); form.BtnSend.MouseClick += new MouseEventHandler(BtnSend_Click); form.textBox1.KeyUp += new KeyEventHandler(textBox1_KeyDown); form.Show(); form.textBox1.Focus(); MemoFormList[form.formkey.Text] = form; } catch (Exception e) { logWrite(e.ToString()); } }
//MemoReceiver(key=name, value=id) private void MakeSendMemo(Hashtable MemoReceiver) { try { SendMemoForm form = new SendMemoForm(); string Receiver = null; form.formkey.Text = DateTime.Now.ToString(); if (MemoReceiver.Count != 0) { foreach (DictionaryEntry de in MemoReceiver) { if (de.Value != null) { Receiver = (String)de.Key + "(" + (String)de.Value + ");"; form.txtbox_receiver.Text += Receiver; form.receiverIDs.AppendText((String)de.Value + ";"); } } logWrite("������ receiverIDs ����Ʈ ���� : " + form.receiverIDs.Text); } form.BtnReceiver.MouseClick += new MouseEventHandler(BtnReceiver_Click); form.BtnSend.MouseClick += new MouseEventHandler(BtnSend_Click); form.textBox1.KeyUp += new KeyEventHandler(textBox1_KeyDown); form.Show(); form.textBox1.Focus(); MemoFormList[form.formkey.Text] = form; } catch (Exception e) { logWrite(e.ToString()); } }