public clsFTP(clsLog _log) { log = _log; }
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; } }
public UpdateInfo(clsLog _mLog) { mLog =_mLog; getUpdateInfo(GetServerDoc()); }
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; } }
public UpdateInfo( ) { mLog = new clsLog( new clsConfig() ); getUpdateInfo(GetServerDoc()); }