Exemplo n.º 1
0
        public MainForm()
        {
            InitializeComponent();

            if (AmiiboAPI.GetAllAmiibos())
            {
                toolStripStatusLabel1.Text = "Amiibo API was accessed. Amiibo list was loaded.";

                if (AmiiboAPI.AmiiboSeries.Any())
                {
                    foreach (string amiiboSerie in AmiiboAPI.AmiiboSeries)
                    {
                        comboBox1.Items.Add(amiiboSerie);
                    }

                    comboBox1.SelectedIndex = 0;
                }
            }
            else
            {
                toolStripStatusLabel1.Text  = "Unable to download amiibo list from amiibo API.";
                toolStripStatusLabel1.Image = Properties.Resources.cancel;

                groupBox1.Enabled = false;
                groupBox2.Enabled = false;
                groupBox3.Enabled = false;
            }
        }
Exemplo n.º 2
0
        public MainForm()
        {
            InitializeComponent();
            DialogCaption = "emutool v" + Assembly.GetExecutingAssembly().GetName().Version.ToString();
            Text          = DialogCaption + " - emuiibo's tool for virtual amiibo creation";
            Amiibos       = AmiiboAPI.GetAllAmiibos();

            if (HasAmiibos())
            {
                APIStatusLabel.Text = "AmiiboAPI was accessed - amiibo list was loaded.";
                AmiiboSeries        = Amiibos.GetAmiiboSeries();

                if (AmiiboSeries.Any())
                {
                    foreach (var series in AmiiboSeries)
                    {
                        SeriesComboBox.Items.Add(series);
                    }
                    SeriesComboBox.SelectedIndex = 0;
                }
            }
            else
            {
                APIStatusLabel.Text     = "Unable to download amiibo list from AmiiboAPI.";
                APIStatusLabel.Image    = Properties.Resources.ErrorIcon;
                AmiiboSelectBox.Enabled = false;
                SettingsBox.Enabled     = false;
                GenerationBox.Enabled   = false;
            }
        }
Exemplo n.º 3
0
        public MainForm()
        {
            InitializeComponent();
            Amiibos = AmiiboAPI.GetAllAmiibos();

            if (HasAmiibos())
            {
                toolStripStatusLabel1.Text = "AmiiboAPI was accessed - amiibo list was loaded.";
                AmiiboSeries = Amiibos.GetAmiiboSeries();

                if (AmiiboSeries.Any())
                {
                    foreach (var series in AmiiboSeries)
                    {
                        comboBox1.Items.Add(series);
                    }
                    comboBox1.SelectedIndex = 0;
                }
            }
            else
            {
                toolStripStatusLabel1.Text  = "Unable to download amiibo list from AmiiboAPI.";
                toolStripStatusLabel1.Image = Properties.Resources.ErrorIcon;
                groupBox1.Enabled           = false;
                groupBox2.Enabled           = false;
                groupBox3.Enabled           = false;
            }
        }
Exemplo n.º 4
0
        public MainForm()
        {
            InitializeComponent();
            DialogCaption = "emutool v" + Assembly.GetExecutingAssembly().GetName().Version;
            Text          = DialogCaption + " - emuiibo's tool for virtual amiibo creation";
            Amiibos       = AmiiboAPI.GetAllAmiibos();

            if (HasAmiibos())
            {
                toolStripStatusLabel1.Text = "AmiiboAPI was accessed - amiibo list was loaded.";
                AmiiboSeries = Amiibos.GetAmiiboSeries();

                if (AmiiboSeries.Any())
                {
                    foreach (var series in AmiiboSeries)
                    {
                        SeriesComboBox.Items.Add(series);
                    }
                }
            }
            else
            {
                toolStripStatusLabel1.Text  = "Unable to download amiibo list from AmiiboAPI.";
                toolStripStatusLabel1.Image = Properties.Resources.ErrorIcon;
                groupBox1.Enabled           = false;
                groupBox2.Enabled           = false;
                groupBox3.Enabled           = false;
            }
        }
Exemplo n.º 5
0
        public MainForm()
        {
            InitializeComponent();
            DialogCaption = "emutool v" + Assembly.GetExecutingAssembly().GetName().Version.ToString();
            Text          = DialogCaption + " - emuiibo的虚拟amiibo创建工具";
            Amiibos       = AmiiboAPI.GetAllAmiibos();

            if (HasAmiibos())
            {
                APIStatusLabel.Text = "Amiibo API已被访问 - amiibo列表已加载。";
                AmiiboSeries        = Amiibos.GetAmiiboSeries();

                if (AmiiboSeries.Any())
                {
                    foreach (var series in AmiiboSeries)
                    {
                        SeriesComboBox.Items.Add(series);
                    }
                    SeriesComboBox.SelectedIndex = 0;
                }
            }
            else
            {
                APIStatusLabel.Text     = "无法通过Amiibo API下载amiibo列表。";
                APIStatusLabel.Image    = Properties.Resources.ErrorIcon;
                AmiiboSelectBox.Enabled = false;
                SettingsBox.Enabled     = false;
                GenerationBox.Enabled   = false;
            }
        }