Пример #1
0
        public static void openArticle(object sender, EventArgs e)
        {
            Label       lbl = (Label)sender;
            ArticleForm af  = new ArticleForm(lbl.Text, lbl.AccessibleDescription);

            af.Show();
        }
Пример #2
0
        /// <summary>
        /// Открываем статью в новом окне
        /// </summary>
        public static void OpenArticle(object sender, EventArgs e)
        {
            Label       lbl = (Label)sender;
            ArticleForm af  = new ArticleForm(lbl.AccessibleDescription);

            af.Dock = DockStyle.Fill;
            MainForm.mainPanel.Controls.Clear();
            MainForm.mainPanel.Controls.Add(af);
        }