Exemplo n.º 1
0
     static public EveTypeInfo GetEveTypeInfo(EveType type)
     {
         if (!allTypes.ContainsKey(type))
         {
             allTypes[type] = new EveTypeInfo {
                 BaseType = type
             }
         }
         ;
         return(allTypes[type]);
     }
 }
Exemplo n.º 2
0
 internal void setPrice(EveTypeInfo info, double price)
 {
     _details.DataObject = info;
     info.Price = price;
     var group = info.BaseType.GroupID;
     if (_groupID == group)
         _list.RefreshAll();
     else
     {
         _groupID = group;
         Update();
     }
 }
Exemplo n.º 3
0
        private void eveTypeDataGridView_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }
            Selected = _list[e.RowIndex];
            var h = EveTypeSelected;

            if (h != null)
            {
                EveTypeSelected(sender, e);
            }
        }
Exemplo n.º 4
0
        internal void setPrice(EveTypeInfo info, double price)
        {
            _details.DataObject = info;
            info.Price          = price;
            var group = info.BaseType.GroupID;

            if (_groupID == group)
            {
                _list.RefreshAll();
            }
            else
            {
                _groupID = group;
                Update();
            }
        }