Пример #1
0
 public AlarmForm(string title, string content, string tonepath)
 {
     InitializeComponent();
     this.Text        = title;
     this.label1.Text = content;
     label2.Text      = title;
     Control.CheckForIllegalCrossThreadCalls = false;
     this.tonepath = tonepath;
     TimerPage.AddEffect(pictureBox1);
 }
Пример #2
0
        void NewTab()
        {
            TimerPage page = new TimerPage();

            page.Location = new Point(0, 5);

            TabPage p = new TabPage();

            p.Text      = "Alarm" + (tabControl1.TabCount).ToString();
            p.BackColor = Color.White;
            p.Controls.Add(page);
            tabControl1.TabPages.Insert(tabControl1.TabCount - 1, p);
            tabControl1.SelectedIndex = tabControl1.TabCount - 2;
        }