Esempio 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();
        }
Esempio 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();
        }
Esempio 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;
        }
Esempio n. 4
0
 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();
 }
Esempio n. 8
0
 private void AggiungiNodo(string Alias, string Codice)
 {
     dati.Rows.Add(id, cBusinessObjects.idcliente, cBusinessObjects.idsessione, ((TabItem)(tabControl.SelectedItem)).Header);
     gtRiconciliazioni.AddRow();
 }