public void Initialize() { IRegion region = regionManager.Regions["StatusBarRegion"]; object newView = new StatusBarView(new ViewModels.StatusBarViewModel(regionManager)); region.Add(newView); region.Activate(newView); }
public MainPresenter CreateMainPresenter() { ToolbarView toolbarView = new ToolbarView(); TextInputView textInputView = new TextInputView(); WordCounterView wordCounterView = new WordCounterView(); StatusBarView statusBarView = new StatusBarView(); ToolbarModel toolbarModel = new ToolbarModel(); //ToolbarPresenter toolbarPresenter = new ToolbarPresenter(toolbarView, toolbarModel); IModalDialogBuilder modalDialogBuilder = new ModalDialogBuilder(); IFileSelectionView fileSelectionView = new FileSelectionView(); FileSelectionModel fileSelectionModel = new FileSelectionModel(); FileSelectionPresenter openFilePresenter = new FileSelectionPresenter(fileSelectionView, fileSelectionModel); TextInputModel textInputModel = new TextInputModel(fileSelectionModel); TextInputPresenter textInputPresenter = new TextInputPresenter(textInputView, textInputModel); WordFrequencyCounter wordFrequencyCounter = new WordFrequencyCounter(); WordCounterModel wordCounterModel = new WordCounterModel(wordFrequencyCounter); WordCounterPresenter wordCounterPresenter = new WordCounterPresenter(wordCounterView, wordCounterModel); RunButtonNavigator runButtonNavigator = new RunButtonNavigator(toolbarView, wordCounterModel); MainView mainView = new MainView(toolbarView, textInputView, wordCounterView, statusBarView); MainModel mainModel = new MainModel(); MainPresenter mainPresenter = new MainPresenter(mainView, mainModel); AboutView aboutView = new AboutView(); AboutModel aboutModel = new AboutModel(); AboutPresenter aboutPresenter = new AboutPresenter(aboutView, aboutModel); RunButtonNavigator navigation = new RunButtonNavigator(toolbarView, wordCounterModel); AboutButtonNavigator aboutButtonNavigator = new AboutButtonNavigator(toolbarView, aboutView); TextSynchronizer modelConnector = new TextSynchronizer(wordCounterModel, textInputModel); IFileSelectionDisplay fileSelectionDisplay = new FileSelectionDisplay(fileSelectionModel); ILoadTextFromFile loadTextFromFile = new LoadTextFromFile(fileSelectionDisplay); LoadTextFromFileToTextInput loadTextFromFileToTextInput = new LoadTextFromFileToTextInput(loadTextFromFile, textInputModel); FileSelectionNavigator openFileButtonNavigator = new FileSelectionNavigator(toolbarView, loadTextFromFileToTextInput); TextInputLoader textInputLoader = new TextInputLoader(textInputModel, fileSelectionModel); /* * Wyświetlanie MsgBox * Obsługa błędów otwarcia pliku */ return(mainPresenter); }
public PlayerHUD() : base(new RGBColor(0, 0, 0), 0f) { IsEventApplicable = false; Icons = new IconTab(975, 5, toggleInfoTable, toggleOptions, toggleMinimap); InfoTable = new PlayerInfoTable(); OptionTable = new OptionsTable(); MiniMapView = new MiniMap(950, 60); HealthBar = new StatusBarView(10, 10, 350, 40, "HP", new RGBColor(255, 12, 5)); AddChild(Icons); AddChild(HealthBar); }
public static void Init(StatusBarView statusBar) { _statusBar = statusBar; }
public void UpdateLanguage() { UpdateBindings(); RenderMenu(); StatusBarView.UpdateLanguage(); }