Ejemplo n.º 1
0
        public singleDB(string username, string Link, string a, string b, string c, string d, string e, int x)
        {
            InitializeComponent();
            this.Link     = Link;
            this.username = username;
            cn.smallfunny.web.WebService Movies = new cn.smallfunny.web.WebService();

            cn.smallfunny.web.model_detail messages = null;
            try
            {
                messages = Movies.MessageDetail(Link, x);
            }
            catch
            {
                MessageBox.Show("列表加载出错!");
            }
            if (x == 1)
            {
                labelName.Text     += a;
                labelRate.Text     += b;
                labelDuration.Text += c;
                labelPlace.Text    += d;
                labelActor.Text    += e;
                labelType.Text     += messages.Type;
                labelLanguage.Text += messages.Language;
                labelDate.Text     += messages.Date;
            }
            else
            {
                labelName.Text     += a;
                labelRate.Text     += "/";
                labelDate.Text     += b.Replace("\n", "");
                labelPlace.Text    += c.Replace("\n", "");
                labelType.Text     += d.Replace("\n", "");
                labelActor.Text    += messages.Actor;
                labelDuration.Text += messages.Duration;
                labelLanguage.Text += "/";
            }
            txtDescribe.Text += messages.Describe.Replace(" ", "");
            setpicture(messages.Image);

            if (e == "/")
            {
                btnAssess.Enabled = false;
            }
            else
            {
                btnAssess.Enabled = true;
            }
        }
Ejemplo n.º 2
0
        public Assess(string Link)
        {
            InitializeComponent();

            cn.smallfunny.web.WebService Movies = new cn.smallfunny.web.WebService();

            string[] assess = null;
            try
            {
                assess = Movies.MovieAssess(Link);
            }
            catch
            {
                MessageBox.Show("加载出错!");
            }

            textBox1.Text = "    " + assess[0];
            textBox2.Text = "    " + assess[1];
            textBox3.Text = "    " + assess[2];
        }