void Initialize_Element(BooleanElement MyElement)
        {
            MyElement.Location           = new System.Drawing.Point(3, 10 + ((Elements.Count - 1) * 55));
            MyElement.Name               = "Element" + Elements.Count;
            MyElement.Size               = new System.Drawing.Size(457, 45);
            MyElement.ResizeStarted     += new BooleanElement.ResizeStartedHandler(Element_ResizeStarted);
            MyElement.ResizeEnded       += new BooleanElement.ResizeEndedHandler(Element_ResizeEnded);
            MyElement.HelpButtonPressed += new BooleanElement.HelpButtonHandler(Element_HelpButtonPressed);
            MyElement.HelpImage          = MyElement.DefaultImage;
            int myWidth = this.panelElementContainer.Width - MyElement.Left - 10;

            MyElement.Anchor            = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top)));
            MyElement.Size              = new System.Drawing.Size(myWidth, 45);
            MyElement.ResizeGripVisible = false;
            MyElement.Clicked          += new EventHandler(panelElementContainer_Click);
        }
        /// <summary>
        /// This overload of GetCrossSection launches a dialog to obtain the required parameters from the user.
        /// </summary>
        public static void GetCrossSection()
        {
            MapWinUtility.Logger.Dbg("GetCrossSection()");
            CrossSectionTypes CrossSectionType;

            Dialogs.GeoProcDialog  myDialog  = new MapWinGeoProc.Dialogs.GeoProcDialog();
            Dialogs.FileElement    grid      = myDialog.Add_FileElement(MapWinGeoProc.Dialogs.GeoProcDialog.ElementTypes.OpenGridFile);
            Dialogs.FileElement    shapefile = myDialog.Add_FileElement(MapWinGeoProc.Dialogs.GeoProcDialog.ElementTypes.OpenShapefile);
            Dialogs.FileElement    outfile   = myDialog.Add_FileElement(MapWinGeoProc.Dialogs.GeoProcDialog.ElementTypes.SaveShapefile);
            Dialogs.BooleanElement points    = myDialog.Add_BooleanElement();
            grid.Caption             = "Elevation Grid File name";
            shapefile.Caption        = "Cross-Section Input Polyline Shapefile";
            outfile.Caption          = "Cross-Section Output Shapefile name";
            points.Caption           = "Output cross sections as points";
            myDialog.DialogHelpText  = "This function will use a vector polyline shapefile to determine elevations as cross sections.";
            myDialog.DialogHelpTitle = "Get Cross Section";
            try
            {
                //ResourceManager rm = new ResourceManager("clsHydrology.CrossSection", Assembly.GetExecutingAssembly());
                //System.Drawing.Bitmap b = (System.Drawing.Bitmap)rm.GetObject("CrossSectionHelp");

                //myDialog.DialogHelpImage = (System.Drawing.Image)b;
                //myDialog.HelpImage = (System.Drawing.Image)b;
            }
            catch (Exception ex)
            {
                MapWinUtility.Logger.Message(ex.Message, "Exception Thrown", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error, System.Windows.Forms.DialogResult.OK);
                System.Windows.Forms.MessageBox.Show(ex.Message);
            }
            myDialog.ShowDialog();
            if (myDialog.DialogResult != System.Windows.Forms.DialogResult.OK)
            {
                return;
            }
            CrossSectionType = CrossSectionTypes.PolyLineWithZ;
            if (points.Value == true)
            {
                CrossSectionType = CrossSectionTypes.PointsWithZAndElevField;
            }
            GetCrossSection(grid.Filename, shapefile.Filename, outfile.Filename, CrossSectionType);
            MapWinUtility.Logger.Dbg("Finished GetCrossSection");
        }