public MainWindow()
 {
     InitializeComponent();
     MyAccount myAccount = new MyAccount();
     context = myAccount.context;
     Init();
     myAccount.Start();
 }
Example #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();
 }
Example #3
0
 public StatisticsView(Context context, InfoBox infoBox)
 {
     this.context = context;
     this.infoBox = infoBox;
     Init();
 }
Example #4
0
 public DataLoader(Context context) {
     this.context = context;
     DATA_FILE = context.basePath + "/" + DATA_FILE;
     Load();
 }
Example #5
0
 public ContentPanel(Context context)
 {
     this.context = context;
     Init();
     context.subject.registerObserver(this);
 }
Example #6
0
 public PlacesView(Context context, InfoBox infoBox)
 {
     this.context = context;
     this.infoBox = infoBox;
     Init();
 }
Example #7
0
 public EditPersonForm(Context context, Person person)
 {
     this.context = context;
     this.Person = person;
 }
Example #8
0
 public AddForm(Context context, string label) {
     this.context = context;
     this.label = label;
     //Init();
 }
Example #9
0
 public EditPlaceForm(Context context, Place place) {
     this.context = context;
     this.Place = place;
 }