Ejemplo n.º 1
0
        private void dataFileSelect_FileOk(object sender, CancelEventArgs e)
        {
            string fileName = this.dataFileSelect.FileName;

            _family.LoadFamilyFromFile(fileName);
            _stats = new FamilyStats(_family);

            this.InitFromData();
        }
Ejemplo n.º 2
0
        private void InitObjects()
        {
            Preferences.Init();
            _mapData = new Maps();
            _family  = new FamilyMembers(_mapData);
            _stats   = new FamilyStats(_family);

            this.currentMember = Preferences.RootUser;
        }
Ejemplo n.º 3
0
        private void lblRefresh_Click(object sender, EventArgs e)
        {
            Preferences.Init();
            _family.RefreshData();
            _stats = new FamilyStats(_family);

            this.currentMember = Preferences.RootUser;

            InitFromData();
        }
Ejemplo n.º 4
0
        private void lblSetAsRoot_Click(object sender, EventArgs e)
        {
            Preferences.SetRoot((string)((Label)sender).Tag);
            _family.RefreshData();
            _stats = new FamilyStats(_family);

            this.currentMember = Preferences.RootUser;

            InitFromData();

            this.tabControl1.SelectedIndex = 0;
            populateInfoPanel(_family.getMember(this.currentMember));
        }