using YG; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; using System.Text; using System.Threading.Tasks; using System.ComponentModel; using System.Net.NetworkInformation; using IMCS.CCS; namespace System.Text { public class Notify : System.ComponentModel.INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; public void NotifyProper(string name) { if (PropertyChanged != null) { PropertyChanged.Invoke(this, new PropertyChangedEventArgs(name)); } } } public static class CommonAtrr { public static bool FirstOrDefaultYG(this TSource source, Action action) { if (source != null) { try { action(source); return true; } catch { Log.Instance.WriteLogAdd("执行FirstOrDefaultYG函数时出现异常情况"); return false; } } return false; } } }