public ModTemplate(ErpFramework.Templates t) { InitializeComponent(); template = t; tbName.Text = template.Nombre; tbContent.Text = template.Contenido; }
private void Button_Click(object sender, RoutedEventArgs e) { var template = new ErpFramework.Templates() { Nombre = tbName.Text, Contenido = tbContent.Text }; template.Insert(); this.Close(); }