/*------------------------------------------------------------------------------------**/
 /// <summary>
 /// PipelineManagerDialog_FormClosed
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 /*--------------+---------------+---------------+---------------+---------------+------*/
 static void PipelineManagerDialog_FormClosed
 (
     object sender,
     FormClosedEventArgs e
 )
 {
     s_PipelineManagerDialog.FormClosed        -= new FormClosedEventHandler(PipelineManagerDialog_FormClosed);
     PipelineUtilities.IsPipelineManagerRunning = false;
     s_PipelineManagerDialog = null;
 }
            /*------------------------------------------------------------------------------------**/
            /// <summary>
            /// Maximize HVAC OR TRAY Manager
            /// </summary>
            /// <param name="unparsed"></param>
            /*--------------+---------------+---------------+---------------+---------------+------*/
            public static void MaximizeHvacORTrayManager
            (
                string unparsed
            )
            {
                if (s_PipelineManagerDialog == null)
                {
                    PipelineManagerMode.Mode = PipelineManagerAvailableModes.Piping;
                    if (unparsed == OPMCommon.ClassNames.TRAY_COMPONENT)
                    {
                        PipelineManagerMode.Mode = PipelineManagerAvailableModes.CableTray;
                    }
                    else if (unparsed == "HVAC_COMPONENT")
                    {
                        PipelineManagerMode.Mode = PipelineManagerAvailableModes.HVAC;
                    }

                    s_PipelineManagerDialog                    = new DlgPipelineManager();
                    s_PipelineManagerDialog.FormClosed        += new FormClosedEventHandler(PipelineManagerDialog_FormClosed);
                    PipelineUtilities.IsPipelineManagerRunning = true;
                }
                s_PipelineManagerDialog.Maximize();
                s_PipelineManagerDialog.Show();
            }