Exemple #1
0
 private void RcvMsg(Object obj)
 {
     if (msgBindingFlag)
     {
         if (obj.GetType().Equals(typeof(double)))
         {
             rcvDoubleMsg = (double)obj;
         }
         else if (obj.GetType().Equals(typeof(double[])))
         {
             rcvDoubleMsgArray = (double[])obj;
         }
         else if (obj.GetType().Equals(typeof(string)))
         {
             rcvStrMsg = (string)obj;
         }
         else if (obj.GetType().Equals(typeof(double[])))
         {
             rcvStrMsgArray = (string[])obj;
         }
     }
     eventAggregator.UnSbscribe(Token);
 }
 public void Dispose()
 {
     EventAggregator.UnSbscribe(this);
     isDisposed = true;
 }