public void SendTargettedStroke(Stroke stroke, string thisPrivacy) { if (!stroke.shouldPersist()) return; var privateRoom = string.Format("{0}{1}", currentSlide, stroke.tag().author); if(thisPrivacy.ToLower() == "private" && Globals.isAuthor && Globals.me != stroke.tag().author) Commands.SneakInto.Execute(privateRoom); Commands.SendStroke.Execute(new TargettedStroke(currentSlide,stroke.tag().author,target,stroke.tag().privacy,stroke, stroke.tag().startingSum)); if (thisPrivacy.ToLower() == "private" && Globals.isAuthor && Globals.me != stroke.tag().author) Commands.SneakOutOf.Execute(privateRoom); }
public void SendTargettedStroke(Stroke stroke, string thisPrivacy) { if (!stroke.shouldPersist()) return; Commands.ActualReportStrokeAttributes.ExecuteAsync(stroke.DrawingAttributes); Commands.SendStroke.Execute(new MeTLLib.DataTypes.TargettedStroke(Globals.location.currentSlide,Globals.me,target,stroke.tag().privacy,stroke, stroke.tag().startingSum)); }