예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            string caturl;
            GetCat cat = new GetCat();
            caturl = cat.GetCatPic();

            OpenFileDialog dlg = new OpenFileDialog();

            pictureBox1.ImageLocation = caturl;

            label1.Text = cat.CreateLabel(caturl);
        }
예제 #2
0
        public Form1()
        {
            InitializeComponent();
            string caturl;
            GetCat cat = new GetCat();
            caturl = cat.GetCatPic();

            OpenFileDialog dlg = new OpenFileDialog();

            pictureBox1.ImageLocation = caturl;

            label1.Text = cat.CreateLabel(caturl);
        }