Esempio n. 1
0
        public override void Initialize(ChartShadow chart, object reportersOwnDataSnapshotInOut)
        {
            base.Initialize(chart, reportersOwnDataSnapshotInOut);
            PositionsDataSnapshot snapCasted = reportersOwnDataSnapshotInOut as PositionsDataSnapshot;

            if (snapCasted == null)
            {
                string msg = "INVOKER_MUST_HAVE_CALLED_MY_CREATE_SNAPSHOT_AND_REGISTERED_IT_IN_SCRIPT_CONTEXT invokerAssumed=ReportersFormManager.ReporterActivateShowRegisterMniTick()<FindOrCreateReportersSnapshot()";
                Assembler.PopupException(msg);
                Debugger.Break();
                return;                 // this.snap already initialized in ctor();
            }
            this.snap = snapCasted;
            // this.olvPositions is empty, so excessive RebuildColumns() doens't harm
            this.propagatePositionsDataSnapshotToCtxMenuItemsAndHideColumns();
            this.objectListViewCustomize();
        }
		public override void Initialize(ChartShadow chart, object reportersOwnDataSnapshotInOut) {
			base.Initialize(chart, reportersOwnDataSnapshotInOut);
			PositionsDataSnapshot snapCasted = reportersOwnDataSnapshotInOut as PositionsDataSnapshot;
			if (snapCasted == null) {
				string msg = "INVOKER_MUST_HAVE_CALLED_MY_CREATE_SNAPSHOT_AND_REGISTERED_IT_IN_SCRIPT_CONTEXT invokerAssumed=ReportersFormManager.ReporterActivateShowRegisterMniTick()<FindOrCreateReportersSnapshot()";
				Assembler.PopupException(msg);
				Debugger.Break();
				return;	// this.snap already initialized in ctor();
			}
			this.snap = snapCasted;
			// this.olvPositions is empty, so excessive RebuildColumns() doens't harm
			this.propagatePositionsDataSnapshotToCtxMenuItemsAndHideColumns();
			this.objectListViewCustomize();
		}