Esempio n. 1
0
 protected virtual void Dispose(bool disposing)
 {
     if (!disposedValue)
     {
         if (disposing)
         {
             ConfigTab?.Dispose();
             GemsTab?.Dispose();
             PortalsTab?.Dispose();
             AdvertisementsTab?.Dispose();
             InventoryTab?.Dispose();
             EquipmentTab?.Dispose();
             View?.Dispose();
         }
         disposedValue = true;
     }
 }
Esempio n. 2
0
        public BotManagerView(Machine machine)
        {
            try
            {
                Machine = machine;
                VirindiViewService.XMLParsers.Decal3XMLParser parser = new VirindiViewService.XMLParsers.Decal3XMLParser();
                parser.ParseFromResource("ACManager.Views.botManagerView.xml", out ViewProperties Properties, out ControlGroup Controls);

                View = new HudView(Properties, Controls);

                ConfigTab         = new ConfigTab(this);
                PortalsTab        = new PortalsTab(this);
                GemsTab           = new GemsTab(this);
                AdvertisementsTab = new AdvertisementsTab(this);
                InventoryTab      = new InventoryTab(this);
                EquipmentTab      = new EquipmentTab(this);
            }
            catch (Exception ex) { Debug.LogException(ex); }
        }