Example #1
0
 private void TimeTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
 {
     info.ChangePosition((long)(Time * 100));
     if (Width == 0 && Height == 0)
     {
         string w  = GetProperty("width");
         int    wd = 0;
         if (!string.IsNullOrEmpty(w))
         {
             int.TryParse(w, out wd);
             if (wd == 0)
             {
                 return;
             }
         }
         else
         {
             return;
         }
         int    hg = 0;
         string h  = GetProperty("height");
         if (!string.IsNullOrEmpty(h))
         {
             int.TryParse(h, out hg);
             if (hg == 0)
             {
                 return;
             }
         }
         else
         {
             return;
         }
         Width  = wd;
         Height = hg;
         form?.Resize(wd, hg);
     }
 }