public static void Label3_Click(object sender, EventArgs e)
        {
            Statiya     stat = Statiya.GetStatiyaFromArticleName(((Label)sender).Text);
            StatiyaForm form = new StatiyaForm(stat);

            form.ShowDialog();
        }
        private void label1_MouseEnter(object sender, EventArgs e)
        {
            Statiya stat = Statiya.GetStatiyaFromArticleName(((Label)sender).Text);

            pictureBox1.Visible = true;
            pictureBox1.Load(stat.PictureURL);
            pictureBox1.Size = new Size(100, 100);
        }
Ejemplo n.º 3
0
 private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     try
     {
         new StatiyaForm(Statiya.GetStatiyaFromArticleName(Article)).ShowDialog();
     }
     catch
     {
         MessageBox.Show("Такой статьи нет!");
     }
 }
        void Label_Click(object sender, EventArgs e)
        {
            /* foreach (newPage Label_ in ListOfPages)
             * {*/

            Statiya     stat = Statiya.GetStatiyaFromArticleName(((Label)sender).Text);
            StatiyaForm form = new StatiyaForm(stat);

            form.ShowDialog();

            // }
        }
Ejemplo n.º 5
0
        private static void label1_MouseEnter(object sender, EventArgs e)
        {
            pictureBox1.Location = new Point(((Label)sender).Location.X + 120, ((Label)sender).Location.Y);
            Statiya stat = Statiya.GetStatiyaFromArticleName(((Label)sender).Text);

            if (!String.IsNullOrEmpty(stat.PictureURL) && stat.PictureURL != null)
            {
                pictureBox1.Visible       = true;
                pictureBox1.ImageLocation = stat.PictureURL;
                pictureBox1.Load();
                pictureBox1.Size = new Size(90, 70);
            }
        }
Ejemplo n.º 6
0
 private void ArticleClick(object sender, EventArgs e)
 {
     foreach (LinkLabel lab in arts)
     {
         if (sender.Equals(lab))
         {
             Statiya     stat        = Statiya.GetStatiyaFromArticleName(((Label)sender).Text);
             StatiyaForm OknoStatiya = new StatiyaForm(stat);
             OknoStatiya.ShowDialog();
             LAST_SEARCH = textBox_search.Text;
             formloader(sender, e);
             break;
         }
     }
 }
Ejemplo n.º 7
0
 private void clik_na_pic(object sender, EventArgs e)
 {
     GC.Collect();
     GC.WaitForPendingFinalizers();
     foreach (PictureBox lab in piccc)
     {
         if (sender.Equals(lab))
         {
             Statiya stat = Statiya.GetStatiyaFromArticleName(lab.Tag.ToString());
             //StatiyaForm OknoStatiya = new StatiyaForm(stat);
             VipStatiy OknoStatiya = new VipStatiy(stat);
             OknoStatiya.ShowDialog();
             formloader(sender, e);
             break;
         }
     }
 }