Exemplo n.º 1
0
        private void SecondActivity_FireEraseEvent(object sender, MyEventArgsOS e)
        {
            Console.WriteLine("Reach the method of subscriber, Attached Value is :" + e.Erase);
            MySpecialClassToDealWithEvent mscd = new MySpecialClassToDealWithEvent();

            mscd.ReceivetheEvent(this, e);
            pref   = PreferenceManager.GetDefaultSharedPreferences(this);
            editor = pref.Edit();
            editor.PutBoolean("EraseStatus", e.Erase);
            editor.Apply();
        }
Exemplo n.º 2
0
 public void ReceivetheEvent(object source, MyEventArgsOS myEventArgs)
 {
     Console.WriteLine("Inside the ReceivetheEvent class and status is:" + myEventArgs.Erase);
 }