public override bool CanConnectStart(IFigure figure) { if (figure is ActorFigure) { if (!figure.Includes(EndFigure)) { return true; } } return false; }
public override bool CanConnectEnd(IFigure figure) { if (figure is Entity) { if (!figure.Includes (StartFigure)) { return true; } } return false; }
protected override bool IsConnectionPossible (IFigure figure) { if (!figure.Includes (Connection) && figure.CanConnect && Connection.CanConnectStart (figure)) { return true; } return false; }
protected override bool IsConnectionPossible(IFigure figure) { if (!figure.Includes(Connection) && figure.CanConnect && Connection.CanConnectStart(figure)) { return(true); } return(false); }
public override bool CanConnectEnd(IFigure figure) { /* if(blockUntilRelease){ DisconnectEnd(); DisconnectStart(); return false; }*/ if((figure is TableFigure) && (StartFigure as TableFigure).SourceReadyToCreateFk() && (!figure.Includes (StartFigure))){ return true; } else if(figure != StartFigure){ Invalidate(); /*blockUntilRelease=true; MonoDevelop.Core.Gui.MessageService.ShowWarning("Is imposible to create a foreign key between this two tables because source table lacks from primary key");*/ } return false; }