Example #1
0
 public RLModel(RL aRL, Dispatcher aDispatcher)
 {
     _RL         = aRL;
     _Dispatcher = aDispatcher;
     RegisteEvent();
     m_Clearer = new Clearer();
     m_Clearer.Bind(_RL);
 }
Example #2
0
 public void OpenLog()
 {
     if (_RL == null)
     {
         RL.OpenLogFile();
     }
     else
     {
         _RL.Open();
     }
 }
Example #3
0
 private void cmdOpen_Click(object sender, EventArgs e)
 {
     if (uciRuntimeLogView.RuntimeLog == null)
     {
         RL.OpenLogFile();
     }
     else
     {
         uciRuntimeLogView.RuntimeLog.Open();
     }
 }
Example #4
0
 protected override void RuntimeLog_ClarifyLog(string aText)
 {
     System.DateTime aLogTime = System.DateTime.Now.Date;
     if (aLogTime != m_LastLogTime.Date)
     {
         System.DateTime aRetainTime = aLogTime.AddDays(-ReserveDays);
         if (this.RLBinded == null)
         {
             RL.RemoveLogFileBefore(aRetainTime);
         }
         else
         {
             this.RLBinded.RemoveBefore(aRetainTime);
         }
     }
     m_LastLogTime = aLogTime;
 }
Example #5
0
 public void Bind(RL aRL)
 {
     m_Model          = new RLModel(aRL, this.Dispatcher);
     m_Model.Clarify += RL_ClarifyLog;
     this.DataContext = m_Model;
 }
Example #6
0
 protected virtual void Dispose(bool aMode)
 {
     UnregisteEvent();
     m_RL = null;
 }
Example #7
0
 public void Bind(RL aRL)
 {
     UnregisteEvent();
     m_RL = aRL;
     RegisteEvent();
 }
Example #8
0
 public void Bind(RL aRuntimeLog)
 {
     m_Watcher.Bind(aRuntimeLog);
 }
Example #9
0
 public void Bind(RL aRuntimeLog)
 {
     uciRuntimeLogView.Bind(aRuntimeLog);
     _Clearer.Bind(aRuntimeLog);
 }