示例#1
0
 internal void Init(ISuggestItem i)
 {
     Name = i.Name;
     Description = i.Description;
 }
示例#2
0
 internal static SuggestItem Make(ISuggestItem rhs)
 {
     var rtn = new SuggestItem();
     rtn.Update(rhs);
     return rtn;
 }
示例#3
0
 internal static SimpleSuggestItem Make(ISuggestItem i)
 {
     var rtn = new SimpleSuggestItem();
     rtn.Init(i);
     return rtn;
 }
示例#4
0
 internal void Update(ISuggestItem rhs)
 {
     Name = rhs.Name;
     Description = rhs.Description;
     Icon = rhs.Icon;
     State = rhs.State;
     IconSource = IconReader.GetFileIcon(Description, AutoSuggest.Service.IconReader.IconSize.Large, false).ToImageSource();
 }