コード例 #1
0
 private void btnStop_Click(object sender, EventArgs e)
 {
     if (m_changer != null)
     {
         m_changer.Stop();
         m_changer = null;
     }
 }
コード例 #2
0
 private void btnStart_Click(object sender, EventArgs e)
 {
     m_changer = new Wallpaper_Changer((cbInterval.SelectedItem as Interval).Value,
                                       new Wallpaper_Changer.Options {
         ChangeOnStart       = cbChangeWithStart.Checked,
         ChangeOnStop        = cbChangeWithStop.Checked,
         ChangeOnNewInterval = cbChangeWithNewInterval.Checked,
         RememberSeen        = cbRememberSeenImg.Checked
     });
     m_changer.Start();
 }