private void btnListarKit_Click(object sender, RoutedEventArgs e) { List <Models.Kits> dg = KitController.ListarTodosKits(); if (dg != null) { dgKit.ItemsSource = dg.ToList(); } }
private Models.Kits SalvarKit(string Nome, string Descricao, double Preco, int QtdPessoa) { Models.Kits kit = new Models.Kits(); kit.Nome = Nome; kit.Descricao = Descricao; kit.QtdPessoa = QtdPessoa; kit.Preco = Preco; KitController.SalvarKit(kit); return(kit); }
public ImportedKit(string name, object instance) { Name = name; Instance = (KitController)instance; }
private void btnExcluirKit_Click(object sender, RoutedEventArgs e) { KitController.ExcluirKit(int.Parse(txtIdKit.Text)); MessageBox.Show("Cliente Excluído"); LimparTextBoxes(); }
private void btnPesquisar_Click(object sender, RoutedEventArgs e) { Kits kits = KitController.PesquisarPorID(int.Parse(txtIdKit.Text)); PreencheDados(kits); }
public ImportedKit(string name, object instance, InstallationStatus status) { Name = name; Instance = (KitController)instance; Status = status; }
public ImportedKit(string name, object instance, InstallationStatus status) { Name = name; Instance = (KitController)instance; Status = status; }