Example #1
0
 private void comboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (preloader != null)
     {
         preloader.StopAnimation();
     }
     if (this.comboSpeed.SelectedIndex != -1 && 
         this.comboStyle.SelectedIndex != -1 && this.comboPosition.SelectedIndex != -1)
     {
         preloader = new Preloader(this, 
             (Preloader.AnimationStyle)this.comboStyle.SelectedValue, 
             (Preloader.AnimationSpeed)this.comboSpeed.SelectedValue,
             (Preloader.Position)this.comboPosition.SelectedValue);
         preloader.StartAnimation();
     }
 }
Example #2
0
 private void btnStart_Click(object sender, EventArgs e)
 {
     preloader.StartAnimation();
 }