Exemplo n.º 1
0
        private async void changeMapleIdButton_Click(object sender, RoutedEventArgs e)
        {
            changeMapleIdButton.IsEnabled = false;
            await Maple.GetMapleIds();

            if (Maple.MapleIds.Count < 2)
            {
                MessageBox.Show("You only have 1 maple id...");
                return;
            }

            Maple.MapleIds.ForEach(x => mapleIdBox.Items.Add(x));
            mapleIdBox.Text      = Maple.MainCharName;
            mapleIdBox.IsEnabled = true;
        }
Exemplo n.º 2
0
        private async Task mapleIdSelection(bool inStart = false)
        {
            toggleUi(false);
            await Maple.GetMapleIds();

            otherIdsLoaded = true;

            if (!inStart && Maple.MapleIds.Count < 2)
            {
                MessageBox.Show("You only have 1 maple id...");
                return;
            }

            Maple.MapleIds.ForEach(x => mapleIdBox.Items.Add(x));
            mapleIdBox.IsEnabled = true;
            toggleUi(true);
        }