setMainForm() public method

Give the MainControl access to the MainForm
public setMainForm ( MainForm form ) : void
form MainForm The Main Form
return void
        private string _curServer, _curDatabase, _curPath; //Track current states

        #endregion Fields

        #region Constructors

        // Initialization
        public MainForm(MainControl main)
        {
            InitializeComponent();
            this.control = main;
            control.setMainForm(this);

            importing = false;
            isAdministrator = false;

            currentTreeSearch = "";
            currentSearchResults = new AFNamedCollectionList<AFElement>();
        }