Exemplo n.º 1
0
 private void SetFontBinList(BinListClass blc)
 {
     this.lsvBin.Items.Clear();
     for (int i = 0; i < blc.Count; i++)
     {
         if (blc[i].Name != null)
         {
             this.lsvBin.Items.Add(blc[i].Name);
             if (string.IsNullOrEmpty(blc[i].Size) && string.IsNullOrEmpty(blc[i].Orientation))
             {
                 this.lsvBin.Items[i].Font = new Font(this.lsvBin.Items[i].Font, this.lsvBin.Items[i].Font.Style);
             }
             else
             {
                 this.lsvBin.Items[i].Font = new Font(this.lsvBin.Items[i].Font, this.lsvBin.Items[i].Font.Style | FontStyle.Bold);
             }
         }
     }
     this.lsvBin.Items[this.lsvBinIdx].Selected = true;
     this.lsvBin.Columns[0].AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent);
 }
Exemplo n.º 2
0
 private bool IsErrorBinNo(BinListClass blc, int binno)
 {
     foreach (BinClass class2 in blc)
     {
         if (class2.No == binno)
         {
             return true;
         }
     }
     return false;
 }