private void OnOk() { ItemSelecionadoFav i = new ItemSelecionadoFav(ItemSelecionadoGrid.CodFavorec, ItemSelecionadoGrid.Seq, ItemSelecionadoGrid.Nome); this._eventAggregator.GetEvent <DadosItemSelecionadoFav>().Publish(i); OnCancelar(); }
//MÉTODOS Q VÃO PRECISAR DA VERIFICAÇÃO private void OnOk() { if (ChecksRelationship()) { Favored f = ItemSelecionadoGrid as Favored; fav = new ItemSelecionadoFav(f.CodFavorec, f.Seq, f.Nome); OnCancelar(); } else if (ChecksMaterials()) { mat = ItemSelecionadoGrid as Material; OnCancelar(); } }
private void PreencheDadosItemSelecionadoFav(ItemSelecionadoFav obj) { this.Text = obj.Nome; this.CodFavorec = obj.CodFavorec; }