コード例 #1
0
        // Override to allow access to main form and member pop-up form
        protected override void InitialiseForms()
        {
            // Assign pointer to main form
            m_mainForm = (Form1)Application.OpenForms["Form1"];

            // Assign pointer to member popup
            m_memberPopup = (MemberPopup)Application.OpenForms["MemberPopup"];
        }
コード例 #2
0
        /// Selecting member
        private void LV_Members_DoubleClick(object sender, EventArgs e)
        {
            // Set new focused member index
            selectedMemberIndex = LV_Members.SelectedIndices[0];

            // Attempt to load member pop-up form
            MemberPopup successfulPopup = formUtil.LoadPopup <MemberPopup>("MemberPopup");

            if (successfulPopup != null)
            {
                // Successfully loaded, populate form with member data and set to edit mode.
                successfulPopup.Populate(selectedClass.members[selectedMemberIndex], true);
            }
        }