Ejemplo n.º 1
0
 // CONSTRUCTOR
 // params:
 //  ISystem t_parent;   parent object to send signals to
 //  ref LoginSystem t_ls;   a reference to a login system
 public LoginDialogue(ISystem t_parent, ref LoginSystem t_ls)
 {   // initialize all data members
     ls_     = t_ls;
     parent_ = t_parent;
     InitializeComponent();
     Reload();
 }
Ejemplo n.º 2
0
        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
        }