// CONSTRUCTOR public RegisterDialogue(ISystem t_parent, ref PersonsDatabase t_pd) { // initialize data members exitStatus_ = ExitStatus.canceled; pd_ = t_pd; parent_ = t_parent; InitializeComponent(); // setup the form ShowAuthSetup(); // show auth setup }
private object exitStatus_ = ExitStatus.logout; // set the default exit status // CONSTRUCTOR // params: // ISystem t_parent; the parent object ( HeadEssay object ) // ref PersonsDatabase t_pd; a reference to the current working person database public UserDialogue(ISystem t_parent, ref PersonsDatabase t_pd) { // setup all data members pd_ = t_pd; parent_ = t_parent; iid_ = new InvitationInspectorDialogue(this); fid_ = new FriendInspectorDialogue(this); is_ = new InvitationSystem(this, pd_); nid_ = new NewInvitationDialogue(this, is_, pd_); cid_ = new ChangeInterestsDialogue(this); InitializeComponent(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); PersonsDatabase pd = new PersonsDatabase(PD_DEBUGPATH, heRef); // create important objects LoginSystem ls = new LoginSystem(pd); HeadEssay headEssay = new HeadEssay(pd, ls); pdRef = pd; // setup references heRef = headEssay; pd.ChangeParent(heRef); pd.Initalize(PD_FILENAME); //Initalize the person database pd.FullRebuildInterestTable(); // rebuild tables headEssay.ShowLoginForm(); // show the login form Application.Run(); // run the application }
private PersonsDatabase pd_; // a reference to the person database // CONSTRUCTOR // params: // PersonsDatabase t_pd; a reference to the person database public LoginSystem(PersonsDatabase t_pd) { // initialize all data members pd_ = t_pd; }