Exemplo n.º 1
0
 public static ViewDoc newFax()
 {
     fax c = new fax();
     ViewDoc dv = new ViewDoc(c);
     new DAOs.FaxDAO(dv.db).insertOnSubmit(c);
     return dv;
 }
Exemplo n.º 2
0
 internal void deleteFax(fax cl)
 {
     db.faxes.DeleteOnSubmit(cl);
     try
     {
         db.SubmitChanges();
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
         //Provide for exceptions.
     }
 }
Exemplo n.º 3
0
        internal void addFax(fax fax)
        {
            // Add the new object to the Orders collection.
            db.faxes.InsertOnSubmit(fax);

            // Submit the change to the database.
            try
            {
                db.SubmitChanges();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);

            }
        }
Exemplo n.º 4
0
 internal void insertOnSubmit(fax ac)
 {
     db.faxes.InsertOnSubmit(ac);
 }
Exemplo n.º 5
0
 public ViewDoc(fax f)
 {
     InitializeComponent();
     cb.DataSource = (IEnumerable<Client>)new DAOs.ClientsDAO(db).selectAll();
     fb.Add(f);
 }