12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- 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<TSource>(this TSource source, Action<TSource> action)
- {
- if (source != null)
- {
- try
- {
- action(source);
- return true;
- }
- catch
- {
- Log.Instance.WriteLogAdd("执行FirstOrDefaultYG函数时出现异常情况");
- return false;
- }
- }
- return false;
- }
- }
- }
|