Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public NewClientPresenter(INewClientView newClientView)
 {
     view   = newClientView;
     entity = DBEntity.Instance;
 }