示例#1
0
 public void LoadInbox(ImmutableInbox inbox)
 {
     listBox1.BeginUpdate();
     try
     {
         listBox1.Items.Clear();
         foreach (var view in inbox.GetStuffOrdered())
         {
             var stuffInfo = new StuffInfo(view);
             _stuffInInbox[view.StuffId] = stuffInfo;
             listBox1.Items.Add(stuffInfo);
         }
         listBox1.Visible = listBox1.Items.Count > 0;
     }
     finally
     {
         listBox1.EndUpdate();
     }
 }
示例#2
0
 public void ShowInbox(ImmutableInbox inbox)
 {
     this.Sync(() => LoadInbox(inbox));
     _region.SwitchTo("inbox");
 }