Form mainForm; //To store the current instance of mainForm

        #endregion Fields

        #region Constructors

        //Class constructor performing initial actions
        public Modifications(Form mainForm_temp)
        {
            allInputs0 = new AllInputs();
            curPopUp = null;
            mainForm = mainForm_temp;
        }
 //Displaying the popup allowing the user to input the type for the given non-numerical column
 private void showPopupNonNumerical(AllInputs allInputs, int curCol)
 {
     curPopUp = new popUp(allInputs, curCol);
     curPopUp.Tag = this;
     curPopUp.Show();
     int newX = mainForm.Location.X + mainForm.Width / 2 - curPopUp.Width / 2;
     int newY = mainForm.Location.Y + mainForm.Height / 2 - curPopUp.Height / 2;
     curPopUp.Location = new Point(newX, newY);
 }