コード例 #1
0
 private void inkcanvas_strokeCollected(object sender, StrokeAddedEventArgs e)
 {
     if (WaveManager.Wave.IsInWaveContainer())
     {
         var stringStroke = StrokeToString(e.stroke);
         Dictionary<string, string> dict = WaveManager.Wave.State.Get();
         foreach (KeyValuePair<string, string> kvp in dict.Where(pair => pair.Key.ToString().Equals("SLid")))
         {
             stringStroke += kvp.Value;
         }
         WaveManager.Wave.State.SubmitDelta("stroke", stringStroke);
     }
 }
コード例 #2
0
 protected virtual void OnStrokeCollected(StrokeAddedEventArgs e)
 {
     StrokeCollected(this, e);
 }