-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInterface.java
More file actions
56 lines (46 loc) · 1.86 KB
/
Interface.java
File metadata and controls
56 lines (46 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import javafx.util.Pair;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.ObjectOutputStream;
import java.io.ObjectInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.time.LocalDate;
import java.util.ArrayList;
public class Interface
{
public static void main (String[] args)
{
try
{
GestaoFaturas gestorfaturas;
GestaoFichas gestorfichas;
try{
ObjectInputStream infaturas = new ObjectInputStream(new FileInputStream("gestorfaturas.txt"));
gestorfaturas = (GestaoFaturas) infaturas.readObject();
}
catch ( FileNotFoundException exception){
gestorfaturas = new GestaoFaturas();
}
try{
ObjectInputStream infichas = new ObjectInputStream(new FileInputStream("gestorfichas.txt"));
gestorfichas = (GestaoFichas) infichas.readObject();
}
catch ( FileNotFoundException exception){
gestorfichas = new GestaoFichas();
}
HallentradaGUI hall = new HallentradaGUI(gestorfichas,gestorfaturas);
GestaoAtividadeEconomica gestoratividade = new GestaoAtividadeEconomica();
//FichaCliente admin =new FichaCliente(0,"abilio4cunha@gmail.com","Abílio Cunha","Vila Verde","admin");
//admin.setfichaType(3);
//gestorfichas.addFicha(admin);
FichaCliente admin2 =new FichaCliente(1,"Filipe-Cunha1@hotmail.com","Filipe Cunha","Vila Verde","admin");
admin2.setfichaType(3);
gestorfichas.addFicha(admin2);
}
catch (Exception e)
{
e.printStackTrace ();
}
}
}