예제 #1
0
 /// <summary>
 /// Unregister a panel
 /// </summary>
 /// <param name="flowChartBase"></param>
 public void UnregisterFlowPanel(SMFlowChartCtlBase flowChartBase)
 {
     lock (_listFlowPanels)
     {
         if (_listFlowPanels.Contains(flowChartBase))
         {
             _listFlowPanels.Remove(flowChartBase);
         }
     }
 }
예제 #2
0
 /// <summary>
 /// Register a panel to display this flow chart
 /// </summary>
 /// <param name="flowChartBase"></param>
 public void RegisterFlowPanel(SMFlowChartCtlBase flowChartBase)
 {
     lock (_listFlowPanels)
     {
         if (!_listFlowPanels.Contains(flowChartBase))
         {
             _listFlowPanels.Add(flowChartBase);
             flowChartBase.Rebuild();
         }
     }
 }