public override int GetHashCode()
 {
     unchecked
     {
         return((MoveId * 397) ^ (LearnType != null ? LearnType.GetHashCode() : 0));
     }
 }
Esempio n. 2
0
        public List <LearnType> GetLearnTypes()
        {
            var _db    = new DBUtility();
            var result = new List <LearnType>();
            var _dt    = new DataTable();

            _cmd = new SqlCommand();

            _cmd.CommandType = CommandType.StoredProcedure;
            _cmd.CommandText = "GP_SP_GetLearnTypes";
            _dt = _db.FillDataTable(_cmd, _dt);
            if (_dt.Rows.Count > 0)
            {
                foreach (DataRow dr in _dt.Rows)
                {
                    var temp = new LearnType();
                    temp.ID   = Convert.ToInt32(dr["ID"]);
                    temp.Name = Convert.ToString(dr["Name"]);
                    result.Add(temp);
                }
            }
            return(result);
        }
Esempio n. 3
0
    public USBUIRTLearnForm(LearnType learnType)
    {
      InitializeComponent();

      MediaPortal.IR.USBUIRT.Instance.OnRemoteCommandFeedback +=
        new MediaPortal.IR.USBUIRT.RemoteCommandFeedbackHandler(Instance_OnRemoteCommandFeedback);

      if (learnType == LearnType.MediaPortalCommands)
      {
        CreateButtonNames();
        this.ActionsCheckList.Items.AddRange(buttonNames.ToArray());
        MPCommandsPnl.BringToFront();
        this.Text = "Media Portal Control Commands";
      }

      else
      {
        STBComandsPnl.BringToFront();
        this.Text = "Set Top Box Control Commands";
      }
    }
Esempio n. 4
0
 private void openLearningSystem(LearnType search)
 {
     //TODO OPEN LEARN NEW PROGRAM DIALOG
 }