예제 #1
0
파일: clsFTP.cs 프로젝트: jimidzj/Inspect
 public clsFTP(clsLog _log)
 {
     log = _log;
 }
예제 #2
0
 private clsLog InitLog()
 {
     try
     {
         mLog = new clsLog(mConfig);
         if (mLog != null)
         {
             mLog.DeleteExpiredLog();
             return mLog;
         }
         else
         {
             MessageBox.Show("Init log fail.");
         }
         return null;
     }
     catch (Exception ex)
     {
        // MessageBox.Show("Init log fail." + ex.Message);
         return null;
     }
 }
예제 #3
0
 public UpdateInfo(clsLog _mLog)
 {
     mLog =_mLog;
     getUpdateInfo(GetServerDoc());
 }
예제 #4
0
        private void ftpConfig()
        {
            try
            {
                Cursor.Current = Cursors.WaitCursor;
                mConfig = new clsConfig();
                if (mConfig.GetConfigValue(clsConfig.ConfigItem.FTPServerIP).Trim() != string.Empty)
                {
                    mLog = InitLog();
                    mLog.WriteSingleLog("###");
                    mLog.WriteSingleLog(">>>>>>Monitor was opened at " + DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss") + "<<<<<<");
                }
            }
            catch(Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);

                this.Close();
            }
            finally
            {
                Cursor.Current = Cursors.Default;
            }
        }
예제 #5
0
        public UpdateInfo( )
        {
            mLog = new clsLog( new clsConfig() );

            getUpdateInfo(GetServerDoc());
        }