Beispiel #1
0
        public void Add(OnVersionChangedArgs args)
        {
            var list = new List <HistoryItem>();

            foreach (HistoryItem control in flowLayoutPanel1.Controls)
            {
                list.Add(control);
            }
            flowLayoutPanel1.Controls.Clear();
            var item = new HistoryItem(args.Package, args.Version, args.Description, args.ReleaseNotes);

            item.Width = flowLayoutPanel1.Width - 15;
            flowLayoutPanel1.Controls.Add(item);
            foreach (HistoryItem control in list)
            {
                flowLayoutPanel1.Controls.Add(control);
            }
        }
Beispiel #2
0
 private void VersionChanged(OnVersionChangedArgs args)
 {
     OnVersionChanged?.Invoke(this, args);
 }