Exemple #1
0
        /// <summary>
        /// 열린 창 닫기
        /// 로그아웃 전에 열린 폼 닫기 및 정보테이블 삭제
        /// </summary>
        public void DisposeFormsOnLogOut()
        {
            //자원해제 대상
            try {
                if (noticelistform != null && !noticelistform.IsDisposed)
                {
                    noticelistform.Close();
                    noticelistform.Dispose();
                }

                if (noticeresultform != null && !noticeresultform.IsDisposed)
                {
                    noticeresultform.Close();
                    noticeresultform.Dispose();
                }

                if (noreceiveboardform != null && !noreceiveboardform.IsDisposed)
                {
                    noreceiveboardform.Close();
                    noreceiveboardform.Dispose();
                }

                if (mMemoListForm != null && !mMemoListForm.IsDisposed)
                {
                    mMemoListForm.Close();
                    mMemoListForm.Dispose();
                }

                ChatForms.Dispose();
                SendMemoForms.Dispose();
                Members.ClearAll();
                FileSendDetailListViews.Dispose();
                SendFileForms.Dispose();
                DownloadForms.Dispose();
                NoticeDetailForms.Dispose();
                MemoForms.Dispose();
            }
            catch (Exception e)
            {
                Logger.error(e.ToString());
            }
        }
Exemple #2
0
 private void MemoForm_Load(object sender, EventArgs e)
 {
     MemoForms.AddForm(this);
 }