Exemplo n.º 1
0
        public void LoadData()
        {
            Messenger.Default.Send <LoadSecurityListMessage>(new LoadSecurityListMessage());

            dispatcher = Window.Current.Content.Dispatcher;

            _commandBar.Clear();
            _commandBar.AddCommandButton(new AppBarButton()
            {
                Icon    = new SymbolIcon(Symbol.Play),
                Command = this.StartRobot
            });
        }
Exemplo n.º 2
0
        public void LoadData(Emitent emitent)
        {
            this._emitentId = emitent.Id;

            this.Emitent = emitent;

            Messenger.Default.Send <LoadFinancialListMessage>(new LoadFinancialListMessage()
            {
                EmitentId = this._emitentId
            });

            _commandBar.Clear();
            _commandBar.AddCommandButton(new AppBarButton()
            {
                Icon    = new SymbolIcon(Symbol.Add),
                Command = this.AddFinancialCmd
            });

            _commandBar.AddCommandButton(new AppBarButton()
            {
                Icon    = new SymbolIcon(Symbol.Edit),
                Command = this.EditFinancialCmd
            });
        }