void PropertyWindow_Load(object sender, EventArgs e) { // try to use same icon as main window // must be done in OnLoad, otherwise icon doesn't show on Mono GuiUtils.SetIcon(this); OnMapsChangedEvent.Register(HandleMapsChanged, Priority.Low); OnStateChangedEvent.Register(HandleStateChanged, Priority.Low); GuiPerms.UpdateRanks(); GuiPerms.SetRanks(blk_cmbMin); GuiPerms.SetRanks(cmd_cmbMin); //Load server stuff LoadProperties(); LoadRanks(); try { LoadCommands(); LoadBlocks(); } catch (Exception ex) { Logger.LogError("Error loading commands and blocks", ex); } LoadGameProps(); }