public void rePresetFile() { if (AppName.Equals("Window") && !windowCheck) { Console.WriteLine("윈도우고 체크 활성아니니 실행"); windowCheck = true; } else if (!AppName.Equals("window")) { Console.WriteLine("윈도우아니니 체크 비활성"); windowCheck = false; } for (int i = 0; i < Payloads.Length; i++) { Payloads[i] = new DeviceData.Payload(); } render.initUI(); render.closeList(); render.listValueInit(); preset.getPresetFiles(); this.CurrentGroup = 0; render.updateUI(); render.resetImage(AppName); Console.WriteLine("변경된 그룹: " + this.CurrentGroup); this.groupChage = false; notice(this.AppName + " " + this.PresetName + " 프리셋으로 셋팅됨"); Console.WriteLine("-----스레드 끝-----"); }
/// <summary> /// See if this this <see cref="AppCastItem"/> version equals the version of another <see cref="AppCastItem"/>. /// Also checks to make sure the application names match. /// </summary> /// <param name="obj">the instance to compare to</param> /// <returns></returns> public override bool Equals(object obj) { if (!(obj is AppCastItem item)) { return(false); } if (ReferenceEquals(this, item)) { return(true); } return(AppName.Equals(item.AppName) && CompareTo(item) == 0); }