示例#1
0
 protected virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             GetNewsTemp.Dispose();
             border1             = null;
             objdelFncFillCanvas = null;
         }
     }
     disposed = true;
 }
        public ctlOurNews(ModulePermissions[] MyPermissions)
        {
            try
            {
                InitializeComponent();

                lblNetStatus.Visibility = Visibility.Collapsed;
                border1.Visibility = Visibility.Collapsed;
                lblNetStatus.Content = "Loading...";
                lblNetStatus.Visibility = Visibility.Visible;

                //lblNewsProvider.Content = "IBN-Live";

                #region delegate

                cbxFeeds.SelectionChanged += new SelectionChangedEventHandler(cbxFeeds_SelectionChanged);
                objdelFncFillCanvas = new delFncFillCanvas(FncFillCanvas);
                objdelFncGetImage = new delFncGetImage(FncGetImage);
                objDelFunctionNetStatus = new delfncNetStatus(FncNetStatus);
                #endregion

                objDelFunctionNetStatus.BeginInvoke(new AsyncCallback(finished), null);

                #region logging
                StringBuilder sb = new StringBuilder();
                sb.AppendLine("News module: module is loaded by user ");
                sb.AppendLine(sb1.ToString());
                VMuktiAPI.ClsLogging.WriteToTresslog(sb);
                #endregion
            }
            catch (Exception exp)
            {
                exp.Data.Add("My Key", "ctlOurNews()--:--ctlOurNews.xaml.cs--:--" + exp.Message + " :--:--");
                ClsException.LogError(exp);
                ClsException.WriteToErrorLogFile(exp);
            }

        }
示例#3
0
        public ctlOurNews(ModulePermissions[] MyPermissions)
        {
            try
            {
                InitializeComponent();

                lblNetStatus.Visibility = Visibility.Collapsed;
                border1.Visibility      = Visibility.Collapsed;
                lblNetStatus.Content    = "Loading...";
                lblNetStatus.Visibility = Visibility.Visible;

                //lblNewsProvider.Content = "IBN-Live";

                #region delegate

                cbxFeeds.SelectionChanged += new SelectionChangedEventHandler(cbxFeeds_SelectionChanged);
                objdelFncFillCanvas        = new delFncFillCanvas(FncFillCanvas);
                objdelFncGetImage          = new delFncGetImage(FncGetImage);
                objDelFunctionNetStatus    = new delfncNetStatus(FncNetStatus);
                #endregion

                objDelFunctionNetStatus.BeginInvoke(new AsyncCallback(finished), null);

                #region logging
                StringBuilder sb = new StringBuilder();
                sb.AppendLine("News module: module is loaded by user ");
                sb.AppendLine(sb1.ToString());
                VMuktiAPI.ClsLogging.WriteToTresslog(sb);
                #endregion
            }
            catch (Exception exp)
            {
                exp.Data.Add("My Key", "ctlOurNews()--:--ctlOurNews.xaml.cs--:--" + exp.Message + " :--:--");
                ClsException.LogError(exp);
                ClsException.WriteToErrorLogFile(exp);
            }
        }
        protected virtual void Dispose(bool disposing)
        {
            if (!this.disposed)
            {
                if (disposing)
                {
                    GetNewsTemp.Dispose();
                    border1 = null;
                    objdelFncFillCanvas = null;
                }

            }
            disposed = true;
        }