Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
        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;
        }
Exemplo n.º 4
0
 private void addNode(string unitario, bool bold)
 {
     dati.Rows.Add(id, cBusinessObjects.idcliente, cBusinessObjects.idsessione, unitario);
     gtCassaContante.AddRow();
 }
Exemplo n.º 5
0
 private void AggiungiNodoTerminiEsecuzione( )
 {
     gtTerminiEsecuzione.AddRow(true);
 }
Exemplo n.º 6
0
 private void AddRowCompensoRevisione(object sender, RoutedEventArgs e)
 {
     gtCompensoRevisione.AddRow(true);
 }
Exemplo n.º 7
0
 private void AggiungiNodoEsecutoriRevisione( )
 {
     gtEsecutoriRevisione.AddRow();
 }
Exemplo n.º 8
0
 private void AggiungiNodo(string Alias, string Codice)
 {
     dati.Rows.Add(id, cBusinessObjects.idcliente, cBusinessObjects.idsessione, ((TabItem)(tabControl.SelectedItem)).Header);
     gtRiconciliazioni.AddRow();
 }