本文整理汇总了C#中IFigure.Includes方法的典型用法代码示例。如果您正苦于以下问题:C# IFigure.Includes方法的具体用法?C# IFigure.Includes怎么用?C# IFigure.Includes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IFigure
的用法示例。
在下文中一共展示了IFigure.Includes方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CanConnectStart
public override bool CanConnectStart(IFigure figure)
{
if (figure is ActorFigure) {
if (!figure.Includes(EndFigure)) {
return true;
}
}
return false;
}
示例2: CanConnectEnd
public override bool CanConnectEnd(IFigure figure)
{
if (figure is Entity) {
if (!figure.Includes (StartFigure)) {
return true;
}
}
return false;
}
示例3: IsConnectionPossible
protected override bool IsConnectionPossible (IFigure figure) {
if (!figure.Includes (Connection) &&
figure.CanConnect &&
Connection.CanConnectStart (figure)) {
return true;
}
return false;
}
示例4: CanConnectEnd
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;
}