Exemple #1
0
        void ViewAutomatismi(DataSet DS)
        {
            string spesa = null;

            if (DS.Tables["expense"] != null)
            {
                DataTable Var = DS.Tables["expense"];
                spesa = QHS.FieldIn("idexp", Var.Select(), "idexp");
            }

            Form F = ShowAutomatismi.Show(Meta, spesa, null, null, null);

            F.ShowDialog(this);
        }
Exemple #2
0
        DataRow[] GetRigheSelezionate()
        {
            string          dataMember = dgMovSpesa.DataMember;
            CurrencyManager cm         = (CurrencyManager)dgMovSpesa.BindingContext[DS2, dataMember];
            DataView        view       = cm.List as DataView;

            if (view == null)
            {
                return new DataRow[] { }
            }
            ;
            int n = 0;

            for (int i = 0; i < view.Count; i++)
            {
                if (dgMovSpesa.IsSelected(i))
                {
                    n++;
                }
            }
            DataRow [] res   = new DataRow[n];
            int        found = 0;

            for (int i = 0; i < view.Count; i++)
            {
                if (dgMovSpesa.IsSelected(i))
                {
                    res[found] = view[i].Row;
                    found++;
                }
            }
            return(res);
        }

        void ViewAutomatismi(DataSet DS)
        {
            string spesa = null;

            if (DS.Tables["expense"] != null)
            {
                DataTable Var = DS.Tables["expense"];
                spesa = QHS.FieldIn("idexp", Var.Select(), "idexp");
            }

            Form F = ShowAutomatismi.Show(Meta, spesa, null, null, null);

            F.ShowDialog(this);
        }