Пример #1
0
 private void Action(delAction action, eCmd cmd) //cmd note used?
 //if (P.F == null || AutoSync == null) return;
 {
     if (clsAudioSync.StaticMP3Playing)
     {
         return;
     }
     //int topindex = clbEla.TopIndex;
     if (cmd != eCmd.Undo && cmd != eCmd.Redo && cmd != eCmd.Merge)
     {
         AudioSync.UpdateUndo();
     }
     action(cmd);
     //AutoSync.indSave = true;
     ShowList();
     //clbEla.TopIndex = topindex;
     PlayableForms.CmdState_Stopped(); //possible Play.IsEmpty changed
     cmdSave.Enabled = (P.F.AudioSync != null && !P.F.AudioSync.IsEmpty());
     //P.frmSC.mnuSaveAutoSyncFile.Enabled = cmdSave.Enabled;
     //* update Elapsed.Play display in bars panes
     if (P.F?.frmTrackMap != null)
     {
         P.F.frmTrackMap.picBars.Refresh();
     }
     if (P.F?.frmChordMap != null)
     {
         P.F.frmChordMap.picBars.Refresh();
     }
     clsAudioSync.SetPlayAudioText(P.F?.AudioSync);
 }
Пример #2
0
 /// <summary>
 ///     Initializes a new instance of the System.Web.Mvc.UrlHelper class using the
 ///     specified request context
 /// </summary>
 /// <param name="action"></param>
 /// <param name="routeUrl"></param>
 public UrlManager(delAction action, delRouteUrl routeUrl)
 {
     this.Action   = action;
     this.RouteUrl = routeUrl;
 }