public SerializableImplantSetCollection()
 {
     API        = new SerializableSettingsImplantSet();
     OldAPI     = new SerializableSettingsImplantSet();
     CustomSets = new List <SerializableSettingsImplantSet>();
 }
 public SerializableImplantSetCollection()
 {
     ActiveClone  = new SerializableSettingsImplantSet();
     JumpClones   = new Collection <SerializableSettingsImplantSet>();
     m_customSets = new Collection <SerializableSettingsImplantSet>();
 }
 public SerializableImplantSetCollection()
 {
     API = new SerializableSettingsImplantSet();
     OldAPI = new SerializableSettingsImplantSet();
     CustomSets = new List<SerializableSettingsImplantSet>();
 }
 internal SerializableSettingsImplantSet ToSerializableImplantSet()
 {
     var ccpImplantSet = new SerializableSettingsImplantSet();
     return ccpImplantSet;
 }
Esempio n. 5
0
 /// <summary>
 /// Adds the row for the given set.
 /// </summary>
 /// <param name="set"></param>
 private void AddRow(SerializableSettingsImplantSet set)
 {
     var row = new DataGridViewRow();
     row.CreateCells(setsGrid, set.Name);
     row.Tag = set;
     setsGrid.Rows.Add(row);
 }
Esempio n. 6
0
        /// <summary>
        /// Sets the implant name for the given slot and the provided set.
        /// </summary>
        /// <param name="set"></param>
        /// <param name="slot"></param>
        /// <param name="implantName"></param>
        /// <returns></returns>
        private void SetImplant(SerializableSettingsImplantSet set, ImplantSlots slot, Implant implant)
        {
            // Set may be null when the user is editing the phantom line
            if (set == null) return;

            // Invoke the property setter with the matching name through reflection
            typeof(SerializableSettingsImplantSet).GetProperty(slot.ToString()).SetValue(set, implant.Name, null);
        }
Esempio n. 7
0
        /// <summary>
        /// Gets the implant name for the given slot and the provided set.
        /// </summary>
        /// <param name="set"></param>
        /// <param name="slot"></param>
        /// <returns></returns>
        private Implant GetImplant(SerializableSettingsImplantSet set, ImplantSlots slot)
        {
            // Invoke the property getter with the matching name through reflection
            var implantName = typeof(SerializableSettingsImplantSet).GetProperty(slot.ToString()).GetValue(set, null);

            return StaticItems.GetImplants(slot)[(string)implantName] as Implant;
        }
Esempio n. 8
0
        /// <summary>
        /// Adds the row for the given set.
        /// </summary>
        /// <param name="set"></param>
        private void AddRow(SerializableSettingsImplantSet set)
        {
            DataGridViewRow tempRow = null;
            try
            {
                tempRow = new DataGridViewRow();
                tempRow.CreateCells(setsGrid, set.Name);
                tempRow.Tag = set;

                DataGridViewRow row = tempRow;
                tempRow = null;

                setsGrid.Rows.Add(row);
            }
            finally
            {
                tempRow?.Dispose();
            }
        }
Esempio n. 9
0
 public SerializableImplantSetCollection()
 {
     ActiveClone = new SerializableSettingsImplantSet();
     JumpClones = new Collection<SerializableSettingsImplantSet>();
     m_customSets = new Collection<SerializableSettingsImplantSet>();
 }