Exemplo n.º 1
0
        public void LoadInbox(ImmutableInbox inbox)
        {
            listBox1.BeginUpdate();
            try
            {
                foreach (var view in inbox.Stuff)
                {
                    var stuffInfo = new StuffInfo(view);
                    _stuffInInbox.Add(view.StuffId, stuffInfo);
                    listBox1.Items.Add(stuffInfo);
                }
                listBox1.Visible = listBox1.Items.Count > 0;

            }
            finally
            {
                listBox1.EndUpdate();
            }
        }
Exemplo n.º 2
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();
     }
 }
Exemplo n.º 3
0
 public ImmutableClientModel(ImmutableInbox inbox, IImmutableList <ImmutableProject> projects)
 {
     Inbox    = inbox;
     Projects = projects;
 }
Exemplo n.º 4
0
 public ImmutableClientModel(ImmutableInbox inbox, IImmutableList<ImmutableProject> projects)
 {
     Inbox = inbox;
     Projects = projects;
 }