Пример #1
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;
            }
        }
Пример #2
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;
            }
        }
Пример #3
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;
            }
        }
Пример #4
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;
            }
        }