예제 #1
0
 public override Task SelectLabelAsync(LabelInfo label)
 {
     activeLabel = label;
     return Task.FromResult(0);
 }
예제 #2
0
 public virtual Task SelectLabelAsync(LabelInfo label)
 {
     if (ActiveLabel == null || !label.Name.Equals(ActiveLabel.Info.Name))
     {
         ActiveLabel = new Label() { Info = label };
         // TODO: Put in command queue and run later.
         return GmailImap.SelectLabelAsync(label.Name);
     }
     return Task.FromResult(0);
 }