Beispiel #1
0
        //Guid msgreceiverId = Guid.NewGuid(); 
        public AlertsIpc(string mainwindowId,AlertsCategory alertCategory,MainPage2   page)
        {
            pageMain = page;
            messageSender = new LocalMessageSender(mainwindowId.ToString(), LocalMessageSender.Global);
            messageSender.SendCompleted += new EventHandler<SendCompletedEventArgs>(messageSender_SendCompleted);

            string payload = IPCHelper.FormatMessage(
                                    alertCategory.ToString(), 
                                    IPCHelper.MSGHDR_DATAREQUEST);
            //MessageBox.Show("Before sending");
            messageSender.SendAsync(payload);
            //MessageBox.Show("After sending");
        }
Beispiel #2
0
 private void Application_Startup(object sender, StartupEventArgs e)
 {
     RootVisual = new MainPage2(); 
 }