Adroit.Gui.PlanningView.UpdateAttachments C# (CSharp) Method

UpdateAttachments() private method

private UpdateAttachments ( ) : void
return void
        void UpdateAttachments()
        {
            var task = SelectedTask;
            var model = new ListStore (typeof (Gdk.Pixbuf),
                                       typeof (String),
                                       typeof (String));

            if (task != null && task.Attachments != null) {
                foreach (string item in task.Attachments) {
                    var iter = model.Append ();
                    var info = new System.IO.FileInfo (item);
                    model.SetValue (iter, 0, GetPixbuf (Stock.File));
                    model.SetValue (iter, 1, info.Name);
                    model.SetValue (iter, 2, item);
                }
            }

            m_tasksIconView.Model = model;
        }