Ejemplo n.º 1
0
        public VIEWManageForm(Form parent, DBRegistrationClass drc, TreeNode tnSelected)
        {
            InitializeComponent();
            this.MdiParent = parent;
            instance       = this;
            ViewClass viewObject = (ViewClass)tnSelected.Tag;

            _localNofity.NotifyType  = eNotifyType.ErrorWithoutMessage;
            _localNofity.AllowErrors = false;


            _localNofity.Notify.OnRaiseInfoHandler  += new NotifyInfos.RaiseNotifyHandler(MeldungRaised);
            _localNofity.Notify.OnRaiseErrorHandler += new NotifyInfos.RaiseNotifyHandler(ErrorRaised);
            //Notifies.AddNotify(localNofity,"VIEWManageForm");
            //Notifies.AddNotify(NotifiesClass.Instance(),"GLOBAL");
            TnSelected = tnSelected;
            ViewObject = (ViewClass)tnSelected.Tag;
            InitMessages();

            DBReg           = drc;
            txtMaxRows.Text = DBReg.MaxRowsForSelect.ToString();
            this.GetDataWorker.WorkerReportsProgress      = true;
            this.GetDataWorker.WorkerSupportsCancellation = true;
            this.GetDataWorker.DoWork             += new System.ComponentModel.DoWorkEventHandler(this.backgroundWorker1_DoWork);
            this.GetDataWorker.ProgressChanged    += new System.ComponentModel.ProgressChangedEventHandler(this.backgroundWorker1_ProgressChanged);
            this.GetDataWorker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.backgroundWorker1_RunWorkerCompleted);
        }
Ejemplo n.º 2
0
        public VIEWManageForm(Form parent, DBRegistrationClass drc, TreeNode tnSelected)
        {
            InitializeComponent();
            this.MdiParent = parent;
            instance       = this;
            ViewClass viewObject = (ViewClass)tnSelected.Tag;

            _localNofity.ErrorGranularity = eMessageGranularity.never;
            _localNofity.Register4Info(MeldungRaised);
            _localNofity.Register4Error(ErrorRaised);

            TnSelected = tnSelected;
            ViewObject = (ViewClass)tnSelected.Tag;

            DBReg           = drc;
            txtMaxRows.Text = AppSettingsClass.Instance.SQLVariables.MaxRowsForSelect.ToString();
            this.GetDataWorker.WorkerReportsProgress      = true;
            this.GetDataWorker.WorkerSupportsCancellation = true;
            this.GetDataWorker.DoWork             += new System.ComponentModel.DoWorkEventHandler(this.bwGetData_DoWork);
            this.GetDataWorker.ProgressChanged    += new System.ComponentModel.ProgressChangedEventHandler(this.bwGetData_ProgressChanged);
            this.GetDataWorker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.bwGetData_RunWorkerCompleted);

            gridStore = new GridStoreClass(dgvResults);
        }