Esempio n. 1
0
 public static void Execute(DataStateChangedDelegate del, object sender, Argument state)
 {
     if (del != null)
     {
         del(sender, state);
     }
 }
Esempio n. 2
0
 public void OnRaiseError(object sender, Argument state)
 {
 }
Esempio n. 3
0
        public void OnLoadStarted(object sender, Argument state)
        {
            if (!FreezeClick)
                FreezeClick = true;

            CurrentProgressVisibility = true;
        }
Esempio n. 4
0
 public void OnProgresChanged(object sender, Argument state)
 {
 }
Esempio n. 5
0
        public void OnLoadEnded(object sender, Argument state)
        {
            CurrentProgressVisibility = false;

            bool result = (bool)state.result;
            if (result)
            {
                State = SyncStates.IsSynced;
            }

            this.Checked = !((bool)state.result);
            this.IsLoadedToDisk = (bool)state.result;

            System.Threading.ThreadPool.QueueUserWorkItem( new WaitCallback(LoadTagsFromLast), Sound);
        }