void makeConnectorsUnspecifiedDirectionToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var port = new PortServices(Repository);
     port.SetConnectionDirectionUnspecifiedGui();
 }
 /// <summary>
 /// Connect ports with the same name in a component / class
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void connectPortsInsideComponentsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var port = new PortServices(Repository);
     port.ConnectPortsInsideGui();
 }
 void deletePortsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var port = new PortServices(Repository);
     port.DeletePortsGui();
 }
 void movePortLableMinusPositionToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var port = new PortServices(Repository);
     port.ChangeLabelGui(PortServices.LabelStyle.PositionMinus);
 }
 void viewPortLabelToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var port = new PortServices(Repository);
     port.ChangeLabelGui(PortServices.LabelStyle.IsShown);
 }
 void showReceivingPortsLeftSendingPortsRightToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var port = new PortServices(Repository);
     port.ShowPortsInDiagram(true);
 }
        void showPortsInDiagramObjectsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var port = new PortServices(Repository);
            port.ShowPortsInDiagram(isOptimizePortLayout:false);


        }
        /// <summary>
        /// Remove ports from elements by:
        /// - Selected Elements
        /// - Selected Ports
        /// 
        /// Note: Selection isn't restored because selected objects might be deleted
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        #region removePortsInDiagramToolStripMenuItem_Click
        void removePortsInDiagramToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var port = new PortServices(Repository);
            port.RemovePortFromDiagramGui();

        }