Ejemplo n.º 1
0
        Prog2Form currentForm; // This variable is the parent form of the AddLetterForm. It is set to whatever form called the AddLetterForm.

        // Pre-Condition: _currentForm must be a Prog2Form object
        // Post-Condition: A new AddLetterForm object will be created.
        public AddLetterForm(Prog2Form _currentForm)
        {
            currentForm = _currentForm;
            InitializeComponent();
        }
Ejemplo n.º 2
0
        Prog2Form initialForm; // This variable is the parent form of the AddAddressForm. It is set to whatever form called the AddAddressForm.

        // Pre-Condition: _initialForm must be a Prog2Form object
        // Post-Condition: A new AddAddressForm object will be created.
        public AddAddressForm(Prog2Form _initialForm)
        {
            initialForm = _initialForm;
            InitializeComponent();
        }