private void LoadCharacterDatabase() { Enabled = false; LoadCharacterDialog loadCharacter = new LoadCharacterDialog(database) { StartPosition = FormStartPosition.CenterParent }; DialogResult result = loadCharacter.ShowDialog(this); if (result == DialogResult.OK) { tabControlInventory.TabPages.Clear(); tabControlEquipment.TabPages.Clear(); character = loadCharacter.SelectedCharacter; SyncCharacterDataToGui(); } Enabled = character != null; }
private void LoadCharacterDatabase() { Enabled = false; LoadCharacterDialog loadCharacter = new LoadCharacterDialog(database) { StartPosition = FormStartPosition.CenterParent }; DialogResult result = loadCharacter.ShowDialog(this); if (result == DialogResult.OK) { tabControlInventory.TabPages.Clear(); tabControlEquipment.TabPages.Clear(); character = loadCharacter.SelectedCharacter; SyncCharacterDataToGui(); } Enabled = character != null; }