示例#1
0
 public void add_label(string text, Color?fc = null, fonts f = fonts.normale, int?ss = null)
 {
     if (_labels == null)
     {
         _labels = new List <footer_label>();
     }
     _labels.Add(new footer_label(text, fc, f, ss));
     if (_t == null)
     {
         _t = new Timer(); _t.Interval = 1000; _t.Tick += _t_Tick; refresh(); _t.Start();
     }
 }
示例#2
0
 public void set_label(string text, Color?fc = null, fonts f = fonts.normale)
 {
     set_labels(new footer_label[] { new footer_label(text, fc, f) });
 }
示例#3
0
 public footer_label(string text, Color?fc = null, fonts f = fonts.normale, int?ss = null, pos p = pos.right)
 {
     this.text = text; this.fc = fc.HasValue ? fc.Value : Color.DimGray;
     this.f    = f; this.ss = ss.HasValue ? ss.Value : 5; this.start = null; this.position = p;
 }