/*------------------------------------------------------------------------------------**/ /// <summary> /// ShowPipelineManager2 /// </summary> /// <param name="unparsed"></param> /*--------------+---------------+---------------+---------------+---------------+------*/ public static void ShowPipelineManager2 ( string unparsed ) { PipelineManagerMode.Mode = PipelineManagerAvailableModes.Piping; if (s_PipelineManager2 == null) { s_PipelineManager2 = new PipelineManager2(); s_PipelineManager2.FormClosed += new FormClosedEventHandler(PipelineManagerDialog2_FormClosed); PipelineUtilities.IsPipelineManagerRunning = true; } else { PipelineUtilities.IsPipelineManagerRunning = false; s_PipelineManager2.BringToFront(); s_PipelineManager2.CloseModeless(); s_PipelineManager2 = null; s_PipelineManager2 = new PipelineManager2(); s_PipelineManager2.FormClosed += new FormClosedEventHandler(PipelineManagerDialog2_FormClosed); PipelineUtilities.IsPipelineManagerRunning = true; } //this value is used with editting a value from the duplicate tag dialog s_PipelineManager2.SelectedInstanceId = unparsed; s_PipelineManager2.Show(); }
/*------------------------------------------------------------------------------------**/ /// <summary> /// PipelineManagerDialog2_FormClosed /// </summary> /// <param name="sender"></param> /// <param name="e"></param> /*--------------+---------------+---------------+---------------+---------------+------*/ static void PipelineManagerDialog2_FormClosed ( object sender, FormClosedEventArgs e ) { PipelineUtilities.IsPipelineManagerRunning = false; s_PipelineManager2.FormClosed -= new FormClosedEventHandler(PipelineManagerDialog2_FormClosed); s_PipelineManager2 = null; }
/*------------------------------------------------------------------------------------**/ /// <summary> /// Maximize PipeLine Manager 2 /// </summary> /// <param name="unparsed"></param> /*--------------+---------------+---------------+---------------+---------------+------*/ public static void MaximizeManager ( string unparsed ) { PipelineManagerMode.Mode = PipelineManagerAvailableModes.Piping; if (s_PipelineManager2 == null) { s_PipelineManager2 = new PipelineManager2(); s_PipelineManager2.FormClosed += new FormClosedEventHandler(PipelineManagerDialog2_FormClosed); PipelineUtilities.IsPipelineManagerRunning = true; } s_PipelineManager2.Maximize(); s_PipelineManager2.Show(); }