public MainWindow() { InitializeComponent(); MyAccount myAccount = new MyAccount(); context = myAccount.context; Init(); myAccount.Start(); }
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(); }
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); }
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; }
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; }