public bool IsRegionOverlap(RegionInfo other) { return(BinaryComparer.Equals(Namespace, other.Namespace) && BinaryComparer.Equals(Table, other.Table) && (other.StopKey?.Any() != true || BinaryComparer.Compare(StartKey, other.StopKey) < 0) && (StopKey?.Any() != true || BinaryComparer.Compare(StopKey, other.StartKey) > 0)); }
public override string ToString() { return($"RegionInfo->Name: {Name.ToUtf8String()}, ID: {ID}, Namespace: {Namespace.ToUtf8String()}, Table: {Table.ToUtf8String()}, StartKey:{StartKey.ToUtf8String()}, StopKey: {StopKey.ToUtf8String()}"); }
private void StopKey_GotFocus(object sender, RoutedEventArgs e) { StopKey.SelectAll(); clicking = false; }