/// <summary>
 /// Method is used to freeing the memory with clearing instances, events and objects
 /// </summary>
 public sealed override void Dispose()
 {
     ApplicationLanguages.PrimaryLanguageOverride = "en-US";
     if (Application.Current != null)
     {
         Application.Current.Suspending -= Current_Suspending;
     }
     base.Dispose();
     PivotGauge1.Dispose();
     DataContext = null;
 }
        /// <summary>
        /// Method is used to freeing the memory with clearing instances, events and objects
        /// </summary>

        public sealed override void Dispose()
        {
            base.Dispose();
            PivotGauge1.Dispose();
            DataContext = null;
        }