private void GoToControlPanel() { FlyoutViewModel = new WelcomeScreenFlyoutViewModel(); FlyoutViewModel = new ControlPanelFlyoutViewModel(); ActivateItem(new ControlPanelViewModel()); DisplayName = "Bingo Bango: " + Event.EventTitle; Event.IsBingoRunning = true; Event.PInfo.PlatesUsed = Event.PInfo.PlatesGenerated; //Just a standard value for platesused, vi antager bare at man bruger dem alle sammen. }
private void ProcessFlyoutChildren(TreeNode parent, IFlyoutItem menu) { foreach (var item in menu.Items) { var node = CreateNode(item); parent.Nodes.Add(node); if (item.Function == UiItemFunctionType.Flyout) { ProcessFlyoutChildren(node, (IFlyoutItem)item); } } }
//The function below can be used as a constructor for the view. Everything in it will happen after the view is loaded. protected override void OnViewReady(object view) { _winMan = IoC.Get <IWindowManager>(); _winMan.ShowWindow(new DebuggingWindowViewModel(490, 490, 2300, 200)); _eventAggregator = IoC.Get <IEventAggregator>(); Event = IoC.Get <BingoEvent>(); _eventAggregator.Subscribe(this); DisplayName = "Bingo Kontrol"; _log.Info("Main View loaded"); worker.DoWork += worker_DoWork; worker.RunWorkerCompleted += worker_RunWorkerCompleted; SaveDirectory = System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); CreateApplicationDirectories(); _directoriesInitialised = true; FlyoutViewModel = new WelcomeScreenFlyoutViewModel(); }
public MenuCtrl(IFlyoutItem menu, IEditorService edSvc) : this() { _menu = menu; _edSvc = edSvc; _init = true; try { txtMenuLabel.Text = _menu.Label; txtImageClass.Text = _menu.ImageClass; txtImageUrl.Text = _menu.ImageUrl; txtTooltip.Text = _menu.Tooltip; } finally { _init = false; } }
private void GoToWelcomeView() { FlyoutViewModel = new WelcomeScreenFlyoutViewModel(); ActivateItem(new WelcomeViewModel()); DisplayName = "Bingo Banko"; }