Example #1
0
        private void buttonConvert_Click(object sender, EventArgs e)
        {
            using (AD2DBInitialParams initParams = AD2DBInitialParams.GetParams())
            {
                textBoxLog.Text = string.Empty;

                ServiceLog log = new ServiceLog("ADToAccredit");

                log.AddTextBoxTraceListener(textBoxLog);

                initParams.Log = log;

                this._ProcessedObjectsCount = 0;

                OutputStatus();

                initParams.BeforeProcessADObject += new BeforeProcessADObjectDelegate(initParams_BeforeProcessADObject);

                AD2DBConvertion converter = new AD2DBConvertion(initParams);

                converter.DoConvert();

                OutputStatus();

                OguMechanismFactory.GetMechanism().RemoveAllCache();
                PermissionMechanismFactory.GetMechanism().RemoveAllCache();
            }
        }
Example #2
0
        private void initParams_BeforeProcessADObject(SearchResult sr, AD2DBInitialParams initParams, ref bool bContinue)
        {
            this._ProcessedObjectsCount++;

            if (this._ProcessedObjectsCount % 100 == 0)
            {
                OutputStatus();
            }

            Application.DoEvents();
        }
Example #3
0
        public override void OnThreadTaskStart()
        {
            using (AD2DBInitialParams initParams = AD2DBInitialParams.GetParams())
            {
                initParams.Log = this.Params.Log;

                AD2DBConvertion converter = new AD2DBConvertion(initParams);

                converter.DoConvert();

                OguMechanismFactory.GetMechanism().RemoveAllCache();
                PermissionMechanismFactory.GetMechanism().RemoveAllCache();
            }
        }
		private void initParams_BeforeProcessADObject(SearchResult sr, AD2DBInitialParams initParams, ref bool bContinue)
		{
			this._ProcessedObjectsCount++;

			if (this._ProcessedObjectsCount % 100 == 0)
				OutputStatus();

			Application.DoEvents();
		}
		public AD2DBTransferContext(AD2DBInitialParams initParams)
		{
			this.initialParams = initParams;
		}