private void InitContentVbox () { vBoxContent = new VBox(); var menubarWidget = new MenuBarWidget(); chooseConfigWidget = new ChooseConfigWidget(); repoTreeViewWidget = new RepoTreeViewWidget(); syncActionWidget = new SyncActionWidget(); syncOutputWidget= new SyncOutputWidget(); vBoxContent.PackStart (menubarWidget, false, false, 0); vBoxContent.PackStart (chooseConfigWidget, false, false, 0); vBoxContent.PackStart (repoTreeViewWidget, true, true, 0); vBoxContent.PackStart (syncActionWidget, false, false, 0); vBoxContent.PackStart (syncOutputWidget, true, true, 0); }
public MainController( ChooseConfigWidget chooseConfig, RepoTreeViewWidget repoTreeView, SyncActionWidget syncAction, SyncOutputWidget syncOutput) { this.chooseConfigWidget = chooseConfig; this.repoTreeViewWidget = repoTreeView; this.syncActionWidget = syncAction; this.syncOutputWidget = syncOutput; // Register events chooseConfigWidget.OnSyncConfigChangedStarted += HandleOnSyncConfigChangedStarted; repoTreeViewWidget.SingleSelectionChangeStarted += HandleSingleSelectionChangeStarted; syncActionWidget.DefaultGitActionForAllStarted += HandleBtnDefaultGitActionForAllStarted; syncActionWidget.ToggleAllReposStarted += HandleBtnToggleAllReposStarted; }
private void InitContentVbox() { vBoxContent = new VBox(); var menubarWidget = new MenuBarWidget(); chooseConfigWidget = new ChooseConfigWidget(); repoTreeViewWidget = new RepoTreeViewWidget(); syncActionWidget = new SyncActionWidget(); syncOutputWidget = new SyncOutputWidget(); vBoxContent.PackStart(menubarWidget, false, false, 0); vBoxContent.PackStart(chooseConfigWidget, false, false, 0); vBoxContent.PackStart(repoTreeViewWidget, true, true, 0); vBoxContent.PackStart(syncActionWidget, false, false, 0); vBoxContent.PackStart(syncOutputWidget, true, true, 0); }
public MainController ( ChooseConfigWidget chooseConfig, RepoTreeViewWidget repoTreeView, SyncActionWidget syncAction, SyncOutputWidget syncOutput) { this.chooseConfigWidget = chooseConfig; this.repoTreeViewWidget = repoTreeView; this.syncActionWidget = syncAction; this.syncOutputWidget = syncOutput; // Register events chooseConfigWidget.OnSyncConfigChangedStarted += HandleOnSyncConfigChangedStarted; repoTreeViewWidget.SingleSelectionChangeStarted += HandleSingleSelectionChangeStarted; syncActionWidget.DefaultGitActionForAllStarted += HandleBtnDefaultGitActionForAllStarted; syncActionWidget.ToggleAllReposStarted += HandleBtnToggleAllReposStarted; }