/// <summary> /// Adds an <see cref="IFeedBack"/> to the list of feedback objects. The object /// shows in the appropriate view and the view reflects all changes of the object. /// Currently there are the GeoObjects and the <see cref="FeedBackPlane"/> object which support the IFeedBack interface. /// You could also implement your own IFeedBack objects. /// </summary> /// <param name="feedBackObject">the object to show</param> /// <returns>the index in the list, may be used for <see cref="Remove(int)"/></returns> public int Add(IFeedBack feedBackObject) { repaintObjects.Add(feedBackObject); feedBackObject.FeedBackChangedEvent += new FeedBackChangedDelegate(OnFeedBackChanged); OnFeedBackChanged(feedBackObject); return(repaintObjects.Count - 1); }
public Member() { Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); MyMember = MemberFactory.CreateMember(); Mygrade = MemberGradeFactory.CreateMemberGrade(); MyMemLog = MemberLogFactory.CreateMemberLog(); encrypt = EncryptFactory.CreateEncrypt(); MyConsumption = MemberConsumptionFactory.CreateMemberConsumption(); MyFavor = MemberFavoritesFactory.CreateMemberFavorites(); MyProduct = ProductFactory.CreateProduct(); MyPackage = PackageFactory.CreatePackage(); MyReview = ProductReviewFactory.CreateProductReview(); MyFeedback = FeedBackFactory.CreateFeedBack(); MyAddr = MemberAddressFactory.CreateMemberAddress(); MyCart = OrdersGoodsTmpFactory.CreateOrdersGoodsTmp(); MyCoupon = PromotionFavorCouponFactory.CreatePromotionFavorCoupon(); // MyEmail = U_EmailNotifyRequestFactory.CreateU_EmailNotifyRequest(); MyAccountLog = MemberAccountLogFactory.CreateMemberAccountLog(); MyShop = SupplierShopFactory.CreateSupplierShop(); pageurl = new PageURL(int.Parse(Application["Static_IsEnable"].ToString())); }
void OnFeedBackChanged(IFeedBack sender) { BoundingCube ext = BoundingCube.EmptyBoundingCube; for (int i = 0; i < repaintObjects.Count; i++) { ext.MinMax(repaintObjects[i].GetExtent()); } for (int i = 0; i < paintAsSelected.Count; i++) { ext.MinMax(paintAsSelected[i].GetExtent(0.0)); } for (int i = 0; i < paintAsTransparent.Count; i++) { ext.MinMax(paintAsTransparent[i].GetExtent(0.0)); } if (frame != null) { foreach (IView vw in frame.AllViews) { if (!ext.IsEmpty && vw is IActionInputView) { (vw as IActionInputView).SetAdditionalExtent(ext); (vw as IActionInputView).MakeEverythingTranparent(makeTransparent); } vw.InvalidateAll(); } } }
// GET: api/FeedBack public IEnumerable <IFeedBack> Get() { IFeedBack feedbacks = new IFeedBack(); var temp = feedbacks.consutlarFeedBack(); return(temp); }
public RelevantController(IGameMember gameMember, IInformMessage informMessage, IQuestionary questionary, IArticle article, IFeedBack feedBack) { EFInformMessage = informMessage; EFQuestionary = questionary; EFArticle = article; EFFeedBack = feedBack; EFGameMember = gameMember; }
/// <summary> /// Removes an <see cref="IFeedBack"/> object by its index from the list of the displayed objects. /// </summary> /// <param name="index">Index of the object to remove</param> public void Remove(int index) { IFeedBack fb = repaintObjects[index] as IFeedBack; repaintObjects.RemoveAt(index); fb.FeedBackChangedEvent -= new FeedBackChangedDelegate(OnFeedBackChanged); OnFeedBackChanged(fb); }
/// <summary> /// Removes the object (identified by its index) from the list of "display as selected" objects /// </summary> /// <param name="index">index of the object to remove</param> public void RemoveSelected(int index) { IFeedBack fb = paintAsSelected[index] as IFeedBack; paintAsSelected.RemoveAt(index); fb.FeedBackChangedEvent -= new FeedBackChangedDelegate(OnFeedBackChanged); OnFeedBackChanged(fb); }
public MagazineController(IMagazineManager magazineManager, ICacheManager cacheManager, IMapper mapper, IEmailManager emailManager, IFeedBack feedbak) { _mapper = mapper; _magazineManager = magazineManager; _cacheManager = cacheManager; _emailManager = emailManager; _feedBack = feedbak; _rnd = new Random(); }
internal void Repaint(Rectangle IsInvalid, IView View, IPaintTo3D paintTo3D) { if (Settings.GlobalSettings.GetBoolValue("ActionFeedBack.UseZBuffer", true)) { paintTo3D.UseZBuffer(true); } Color selectColor = frame.GetColorSetting("Select.SelectColor", Color.Yellow); // die Farbe für die selektierten Objekte Color focusColor = frame.GetColorSetting("Select.FocusColor", Color.LightBlue); // die Farbe für das Objekt mit dem Focus foreach (IView vw in frame.AllViews) { for (int i = 0; i < repaintObjects.Count; ++i) { IFeedBack go = repaintObjects[i] as IFeedBack; if (go != null) { go.PaintTo3D(paintTo3D); } } bool oldSelectMode = paintTo3D.SelectMode; paintTo3D.SelectMode = true; for (int i = 0; i < paintAsSelected.Count; ++i) { IGeoObjectImpl go = paintAsSelected[i] as IGeoObjectImpl; if (go != null) { paintTo3D.SelectColor = selectColor; paintTo3D.OpenList("feedback"); go.PaintTo3D(paintTo3D); IPaintTo3DList list = paintTo3D.CloseList(); if (list != null) { paintTo3D.SelectedList(list, selectWidth); } } } paintTo3D.SelectMode = oldSelectMode; } if (paintAsTransparent.Count > 0) { paintTo3D.OpenList("feedback-transparent"); foreach (IGeoObject go in paintAsTransparent) { go.PaintTo3D(paintTo3D); } IPaintTo3DList displayList = paintTo3D.CloseList(); paintTo3D.Blending(true); paintTo3D.List(displayList); paintTo3D.Blending(false); } }
/// <summary> /// Removes an previously added <see cref="IFeedBack"/> from the list of feedback objects. /// The object is no longer displayed. /// </summary> /// <param name="feedBackObject">Object to remove</param> public void Remove(IFeedBack feedBackObject) { if (repaintObjects.Contains(feedBackObject)) { repaintObjects.Remove(feedBackObject); feedBackObject.FeedBackChangedEvent -= new FeedBackChangedDelegate(OnFeedBackChanged); OnFeedBackChanged(feedBackObject); } }
public DataManager(IReviewRepository review, ITeamRepository team, IEmailRepository email, IFeedBack feed, IBlogRepository blog, IPostRepository post, ICommentRepository comment) { Review = review; Team = team; Email = email; FeedBack = feed; Blog = blog; Post = post; Comment = comment; }
public PersonRelevantController(HttpContext httpContext, IPerson person, IFeedBack feedBack, IQuestionary questionary) { if (httpContext.Session["UserID"] != null) { UserID = Convert.ToInt32(httpContext.Session["UserID"].ToString()); GameID = Convert.ToInt32(httpContext.Session["UserID"].ToString()); UserName = httpContext.Session["UserName"].ToString(); } EFPerson = person; EFFeedBack = feedBack; EFQuestionary = questionary; }
public Feedback() { //初始化ASP.NET内置对象 Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); MyBLL = MemberFactory.CreateMember(); MyFeedback = FeedBackFactory.CreateFeedBack(); MySupplier = SupplierFactory.CreateSupplier(); MyBidUpRequire = BidUpRequireQuickFactory.CreateBidUpRequireQuick(); }
/// <summary> /// Removes all feedback objects. /// </summary> public void ClearAll() { ClearSelected(); ClearTransparent(); for (int i = 0; i < repaintObjects.Count; ++i) { IFeedBack feedBackObject = repaintObjects[i]; if (feedBackObject != null) { feedBackObject.FeedBackChangedEvent -= new FeedBackChangedDelegate(OnFeedBackChanged); } } OnFeedBackChanged(null); repaintObjects.Clear(); }
// POST: api/FeedBack public void Post([FromBody] IFeedBack value) { IFeedBack feedback = new IFeedBack(); feedback.guardarFeedBack(value); }
public FeedBackController(IFeedBack feedBack) { _IFeedBack = feedBack; }
public FeedBackController(IFeedBack feedBack, IMapper mapper) { _feedBack = feedBack; _mapper = mapper; }
public FeedBackController(IFeedBack feedBack) { this.feedBack = feedBack; }