//수락여부 확인 플로우로 넘김 //1.수락 // FTP_ShowDialog(Hashtable info); // form.ShowDialog(Hashtable info); // event FTP_DialogResultReceived(CustomEvent); //2-1.거부 //2-2.종료 // event FTP_StatusChanged // //2.수락메시지전송 // //3.수신대기 // FileReceiver //4.수신 // FTP_ShowStatus(Receive|Cancel|Done|Error) // form.ShowStatus(Hashtable info); //5.완료 // FTP_StopReceiving() //6.취소 // FTP_CancelReceiving() //7.실패 // public void ShowDownloadFormOnFTPInfoReceived(object sender, SocFTPInfoEventArgs <FTPRcvObj> e) { //call DownloadForm DownloadForm frm = new DownloadForm(this.connection, e.GetObj); frm.Show(); }
//수락여부 확인 플로우로 넘김 //1.수락 // FTP_ShowDialog(Hashtable info); // form.ShowDialog(Hashtable info); // event FTP_DialogResultReceived(CustomEvent); //2-1.거부 //2-2.종료 // event FTP_StatusChanged // //2.수락메시지전송 // //3.수신대기 // FileReceiver //4.수신 // FTP_ShowStatus(Receive|Cancel|Done|Error) // form.ShowStatus(Hashtable info); //5.완료 // FTP_StopReceiving() //6.취소 // FTP_CancelReceiving() //7.실패 // public void ShowDownloadFormOnFTPInfoReceived(object sender, SocFTPInfoEventArgs<FTPRcvObj> e) { //call DownloadForm DownloadForm frm = new DownloadForm(this.connection, e.GetObj); frm.Show(); }
public void FTP_ShowDialg(DownloadInfo info) { //call DownloadForm DownloadForm frm = new DownloadForm(); frm.DownloadYNChecked += FTP_DiaglogResultReceived; frm.DownloadStatusChanged += FTP_DialogStatusChanged; frm.ShowDialog(info); //frm.Show(); FileRcvFormList[info.MsgFileKey] = frm; mFormKeyRcv = info.MsgFileKey; //CHOI_DEBUG showFileRcvStatDelegate = new ShowFileRcvStatDelegate(ShowFileReceiveStatus); }
/// <summary> /// 파일 전송 상태값 변경 /// </summary> /// <param name="stat">상태</param> /// <param name="form">대상 전송 폼</param> private void ShowFileReceiveStatus(int stat, int idx, DownloadForm form) { try { logWrite("CHOI_DEBUG ShowFileReceiveStatus stat"+stat); form.ShowFileReceiveStatus(stat, idx); } catch (Exception exception) { logWrite(exception.ToString()); } }