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