private void AddRowNote(object sender, RoutedEventArgs e) { DataRow dd = dati_note.Rows.Add(id, cBusinessObjects.idcliente, cBusinessObjects.idsessione, ((tabControl == null || tabControl.SelectedItem == null) ? "CUD" : ((TabItem)(tabControl.SelectedItem)).Header)); dd["isnew"] = 1; gtCUDNote.AddRow(); }
private void MainWindow_Loaded(object sender, RoutedEventArgs e) { DataContext = this; MainTable = new GenericTable <string, double, string>(); MainTable.AddColumn("Col 1"); MainTable.AddColumn("Col 2"); MainTable.AddColumn("Col 3"); MainTable.AddRow("Row 1"); MainTable.AddRow("Row 2"); MainTable.AddRow("Row 3"); MainTable.Update(); }
private void AddRowErroriRilevati(object sender, RoutedEventArgs e) { numeroattuale = 0; foreach (DataRow dtrow in dati.Rows) { if ((dtrow["Header"] != null) && (dtrow["Header"].ToString() == ((tabControl == null || tabControl.SelectedItem == null) ? "CUD" : ((TabItem)(tabControl.SelectedItem)).Header).ToString())) { if (numeroattuale < int.Parse(dtrow["rif"].ToString())) { numeroattuale = int.Parse(dtrow["rif"].ToString()); } } } numeroattuale++; DataRow dd = dati.Rows.Add(id, cBusinessObjects.idcliente, cBusinessObjects.idsessione, ((tabControl == null || tabControl.SelectedItem == null) ? "CUD" : ((TabItem)(tabControl.SelectedItem)).Header), (numeroattuale).ToString(), ""); dd["isnew"] = 1; gtCUD.AddRow(); return; }
private void addNode(string unitario, bool bold) { dati.Rows.Add(id, cBusinessObjects.idcliente, cBusinessObjects.idsessione, unitario); gtCassaContante.AddRow(); }
private void AggiungiNodoTerminiEsecuzione( ) { gtTerminiEsecuzione.AddRow(true); }
private void AddRowCompensoRevisione(object sender, RoutedEventArgs e) { gtCompensoRevisione.AddRow(true); }
private void AggiungiNodoEsecutoriRevisione( ) { gtEsecutoriRevisione.AddRow(); }
private void AggiungiNodo(string Alias, string Codice) { dati.Rows.Add(id, cBusinessObjects.idcliente, cBusinessObjects.idsessione, ((TabItem)(tabControl.SelectedItem)).Header); gtRiconciliazioni.AddRow(); }