public MainWindow()
 {
     InitializeComponent();
     MyAccount myAccount = new MyAccount();
     context = myAccount.context;
     Init();
     myAccount.Start();
 }
Exemple #2
0
 private void Init() {
     context = new Context();
     string assemblyPath = Assembly.GetExecutingAssembly().Location;
     context.basePath = System.IO.Path.GetDirectoryName(assemblyPath);
     context.myAccount = this;
     context.dataLoader = new DataLoader(context);
     context.dataLoader.Load();
 }
 public StatisticsView(Context context, InfoBox infoBox)
 {
     this.context = context;
     this.infoBox = infoBox;
     Init();
 }
Exemple #4
0
 public DataLoader(Context context) {
     this.context = context;
     DATA_FILE = context.basePath + "/" + DATA_FILE;
     Load();
 }
 public ContentPanel(Context context)
 {
     this.context = context;
     Init();
     context.subject.registerObserver(this);
 }
Exemple #6
0
 public PlacesView(Context context, InfoBox infoBox)
 {
     this.context = context;
     this.infoBox = infoBox;
     Init();
 }
 public EditPersonForm(Context context, Person person)
 {
     this.context = context;
     this.Person = person;
 }
Exemple #8
0
 public AddForm(Context context, string label) {
     this.context = context;
     this.label = label;
     //Init();
 }
 public EditPlaceForm(Context context, Place place) {
     this.context = context;
     this.Place = place;
 }