示例#1
0
 public Presenter(IViewMain view)
 {
     this.mainview           = view;
     entityDB                = DBEntity.Instance;
     logCenterDB             = new LogCenter();
     entityDB.newLogMessage += logCenterDB.AddMessage;
     windowsHolder           = new WindowsHolder((Window)view);
     logCenterDB.NewMessage += (r) => { mainview.LogViewRow = r; };
     mainview.xmlLanguage    = System.Windows.Markup.XmlLanguage.GetLanguage(System.Threading.Thread.CurrentThread.CurrentUICulture.IetfLanguageTag);
 }
示例#2
0
 public NewClientPresenter(INewClientView newClientView)
 {
     view   = newClientView;
     entity = DBEntity.Instance;
 }