gr4viton

good practice

Mar 16th, 2015
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. class Logger{
  2. public void LOG_spi(string _msg) { LOG("spi", _msg); }
  3. public void LOG_gui(string _msg) { LOG("gui", _msg); }
  4. public void LOG_log(string _msg) { LOG("log", _msg); }
  5. public void LOG_mot(string _msg) { LOG("mot", _msg); }
  6.  
  7. public void LOG_motX(byte id, string _msg) { LOG(string.Format("mot{0}", id), _msg); }
  8.  
  9. public void LOG_motX_e(byte id, string _msg) { LOG_type(string.Format("mot{0}", id), _msg,"error"); }
  10.  
  11. public void LOG(string _src, string _msg)
  12. {
  13. itemList.Add(new LogMessageRow { src = _src, msg = _msg });
  14. // ObservableCollection<LogMessageRow>.CollectionChanged +=;
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment