// クリップボードを再読み込みし、データであるか判定する public void Reload() { string clip = GetClipboard(); if (clip.Length < MIN_LENGTH || clip.Length > MAX_LENGTH) { mateText = null; isMateText = false; prevLength = 0; return; } // 負荷軽減のため、文字列チェック無し:長さが変わったときにのみチェック if (prevLength == clip.Length) { return; } //if (prevLength == clip.Length) { // // 前回とフラグ変更なし // if (clip == mateText) return; //} prevLength = clip.Length; mateText = clip; isMateText = MateHandler.IsParsable(clip); }
// Token: 0x06000217 RID: 535 RVA: 0x00013C38 File Offset: 0x00011E38 public void Reload() { string text = this.GetClipboard(); if (text.Length < 20 || text.Length > 3333) { this.mateText = null; this.isMateText = false; this.prevLength = 0; return; } if (this.prevLength == text.Length) { return; } this.prevLength = text.Length; this.mateText = text; this.isMateText = MateHandler.IsParsable(text); }