Esempio n. 1
0
        private void but_Install_Click(object sender, EventArgs e)
        {
            if (Model_name.Text == "")
            {
                MessageBox.Show("请输入模块名!");
                return;
            }
            ModelDownloadForm dform = new ModelDownloadForm(Model_name.Text)
            {
                Owner = this
            };

            dform.ShowDialog();
        }
Esempio n. 2
0
        private void download_but_Click(object sender, EventArgs e)
        {
            if (listBox1.SelectedIndex == -1)
            {
                MessageBox.Show("请选择一个模块");
                return;
            }
            ModelDownloadForm modelDownloadForm = new ModelDownloadForm((string)listBox1.SelectedItem)
            {
                Owner = this
            };

            modelDownloadForm.ShowDialog();
        }