// Decompiled with JetBrains decompiler
// Type: SE0085.StCl.scLevels
// Assembly: SE0085StCl, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null
// MVID: 2F536775-F65D-4A2A-A94A-55B55F096E84
// Assembly location: C:\Users\Abishek\Downloads\SchneiderCode_Breaker_09292016\Breaker Schedule-20160930T014118Z\Breaker Schedule\Solution for gathering Breaker Data\DMS\bin\Debug\SE0085StCl.dll

namespace SE0085.StCl
{
  public class scLevels
  {
    private int _LevelId;
    private int _LevelParentId;
    private string _LevelAbbrv;
    private string _LevelName;
    private byte _LevelValue;
    private byte _LevelActive;

    public int LevelId
    {
      get
      {
        return this._LevelId;
      }
      set
      {
        this._LevelId = value;
      }
    }

    public int LevelParentId
    {
      get
      {
        return this._LevelParentId;
      }
      set
      {
        this._LevelParentId = value;
      }
    }

    public string LevelAbbrv
    {
      get
      {
        return this._LevelAbbrv;
      }
      set
      {
        this._LevelAbbrv = value;
      }
    }

    public string LevelName
    {
      get
      {
        return this._LevelName;
      }
      set
      {
        this._LevelName = value;
      }
    }

    public byte LevelValue
    {
      get
      {
        return this._LevelValue;
      }
      set
      {
        this._LevelValue = value;
      }
    }

    public byte LevelActive
    {
      get
      {
        return this._LevelActive;
      }
      set
      {
        this._LevelActive = value;
      }
    }

    public bool LevelActiveBool
    {
      get
      {
        return (int) this._LevelActive != 0;
      }
      set
      {
        if (value)
          this._LevelActive = (byte) 1;
        else
          this._LevelActive = (byte) 0;
      }
    }

    public scLevels()
    {
      this._LevelId = 0;
      this._LevelParentId = 0;
      this._LevelAbbrv = "";
      this._LevelName = "";
      this._LevelValue = (byte) 0;
      this._LevelActive = (byte) 0;
    }

    public override string ToString()
    {
      return this._LevelAbbrv + " - " + this._LevelName;
    }
  }
}
