private void Initialize() { libraryPresenter = new LibraryPresenter(); presenter = new HomePresenter(libraryPresenter); libraryPresenter.Container.books.BookContainerChanged += RefreshAllBooks; presenter.displayAllBooks(flowLayoutPanelAllBooks); libraryPresenter.Container.settings.GetSettings().ThemeChanged += LoadTheme; try { LoadTheme(this, null); } catch { } tabControl1.Appearance = TabAppearance.FlatButtons; tabControl1.ItemSize = new Size(0, 1); tabControl1.SizeMode = TabSizeMode.Fixed; presenter.loadNotification(label_Notification); setUserTabPage(); InitializeMostReadBooks(); }
public BookDataControler(ILibraryPresenter libraryPresenter, IBookBorrowed bookdata) { _libraryPresenter = libraryPresenter; borrowedBook = bookdata; InitializeComponent(); Initialize(); }
public UserDataControler(ILibraryPresenter libraryPresenter, IUser user) { _libraryPresenter = libraryPresenter; userData = user; InitializeComponent(); Initialize(); }
public RezervationForm(ILibraryPresenter libraryPresenter) { _libraryPresenter = libraryPresenter; presenter = new RezervationPresenter(libraryPresenter); _libraryPresenter.Container.settings.GetSettings().DefaultDaysChanged += ChangeDefaultDays; InitializeComponent(); }
private static void Launching(string args) { string filePath = args; if (!File.Exists(filePath)) { Console.WriteLine("File does not exist."); Exit(); } var fileType = filePath.Substring(filePath.LastIndexOf(".") + 1); if (fileType != "json" && fileType != "xml") { Console.WriteLine("Sorry, Virtual Libary does not support given file type."); Exit(); } IConfiguration configuration = new ConsoleConfiguration() { FilePath = filePath, }; if (fileType == "json") { _bookRepository = new JsonBookRepository(configuration); } else { _bookRepository = new XmlBookRepository(configuration); } _libraryService = new LibraryService(_bookRepository); _libraryPresenter = new ConsoleLibraryPresenter(); }
public AddBookForm(ILibraryPresenter presenter) { libraryPresenter = presenter; InitializeComponent(); Initialize(); }
public AddUserControler(ILibraryPresenter libraryPresenter) { InitializeComponent(); _libraryPresenter = libraryPresenter; presenter = new AddUserPresenter(_libraryPresenter); Initialize(); }
public AdvanceSearchPresenter(ILibraryPresenter libraryPresenter, FlowLayoutPanel panelSearchResult) { _libraryPresenter = libraryPresenter; _panelSearchResult = panelSearchResult; searchHelper = new GeneralSearchHelper(_libraryPresenter); bookUserControlers = new List <BookUserControler>(); }
public RezervationPresenter(ILibraryPresenter libraryPresenter) { _libraryPresenter = libraryPresenter; helper = new GeneralSearchHelper(_libraryPresenter); controlerList = new List <BookUserControler>(); userHelper = new UserSearchHelper(_libraryPresenter); }
public BookDataPresenter(IBook aBook, ILibraryPresenter librarypresenter) { _libraryPresenter = librarypresenter; book = aBook; validate = new ValidationHelper(_libraryPresenter); Initialize(); }
public UserForm(ILibraryPresenter libraryPresenter) { InitializeComponent(); _libraryPresenter = libraryPresenter; presenter = new UserFormPresenter(this, _libraryPresenter, dataGridViewUsers); _libraryPresenter.Container.settings.GetSettings().ThemeChanged += ChangeTheme; }
public UserMenuForm(ILibraryPresenter libraryPresenter, IUser userdata) { _libraryPresenter = libraryPresenter; InitializeComponent(); user = userdata; presenter = new UserMenuPresenter(_libraryPresenter, user); Initilize(); }
public SettingsForm(ILibraryPresenter libraryPresenter) { _libraryPresenter = libraryPresenter; _libraryPresenter.Container.settings.GetSettings().ThemeChanged += LoadTheme; validationHelper = new ValidationHelper(_libraryPresenter); InitializeComponent(); InitializeSetings(); }
public BookData(IBook abook, ILibraryPresenter libraryPresenter) { InitializeComponent(); book = abook; _libraryPresenter = libraryPresenter; book.BookEdited += BookData_Load; presenter = new BookDataPresenter(book, _libraryPresenter); }
public UserFormPresenter(UserForm userForm, ILibraryPresenter libraryPresenter, DataGridView dataGridView) { _userForm = userForm; _libraryPresenter = libraryPresenter; dataGridViewForUsers = dataGridView; addUserControler = new AddUserControler(_libraryPresenter); addUserControler.UserDataChanged += BookDatataChanging; SetControlerPosition(); }
public UserMenuPresenter(ILibraryPresenter libraryPresenter, IUser user) { _libraryPresenter = libraryPresenter; this.user = user; }
public RecorsPresenter(ILibraryPresenter libraryPresenter) { _libraryPresenter = libraryPresenter; }
public BookSearchPresenter(ILibraryPresenter presenter) { _libraryPresenter = presenter; borrowedbooks = _libraryPresenter.Container.borrowed.GetAllRecords(); helper = new GeneralSearchHelper(presenter); }
public AddBookPresenter(ILibraryPresenter presenter) { libraryPresenter = presenter; validate = new ValidationHelper(libraryPresenter); Initialize(); }
public RecordsForm(ILibraryPresenter libraryPresenter) { _libraryPresenter = libraryPresenter; InitializeComponent(); presenter = new RecorsPresenter(libraryPresenter); }
public AuthorListPresenter(ILibraryPresenter libraryPresenter, AuthorsList authorsList) { this.libraryPresenter = libraryPresenter; this.authorsList = authorsList; }
public HomePresenter(ILibraryPresenter libraryPresenter) { _libraryPresenter = libraryPresenter; searchPresenter = new BookSearchPresenter(_libraryPresenter); searchHelper = new GeneralSearchHelper(_libraryPresenter); }
public UserSearchHelper(ILibraryPresenter presenter) { this.presenter = presenter; usersList = presenter.GetUsers(); }
public BorrowManager(ILibraryPresenter libraryPresenter) { _libraryPresenter = libraryPresenter; }
public AuthorsList(ILibraryPresenter libraryPresenter) { InitializeComponent(); _librarypresenter = libraryPresenter; presenter = new AuthorListPresenter(libraryPresenter, this); }
public ValidationHelper(ILibraryPresenter libraryPresenter) { _libraryPresenter = libraryPresenter; }
public GeneralSearchHelper(ILibraryPresenter presenter) { this._libraryPresenter = presenter; allBooks = _libraryPresenter.GetBooks(); }
public AdvancedSearchForm(ILibraryPresenter libraryPresenter) { InitializeComponent(); _libraryPresenter = libraryPresenter; presenter = new AdvanceSearchPresenter(_libraryPresenter, flowLayoutPanel_SearchResult); }
public BookUserControler(IBook otherBook, ILibraryPresenter libraryPresenter) { InitializeComponent(); book = otherBook; _libraryPresenter = libraryPresenter; }
public ReturnManager(ILibraryPresenter libraryPresenter) { _libraryPresente = libraryPresenter; }