public NotificationHandler()
 {
     if (DetectDevice.DeviceType == DeviceType.Professional)
     {
         MessagesBubbler = new christec.windowsce.forms.NotificationWithSoftKeys();
         MessagesBubbler.Icon = Properties.Resources.MyIco;
         MessagesBubbler.Caption = "PockeTwit";
         MessagesBubbler.RightSoftKey = new christec.windowsce.forms.NotificationSoftKey(christec.windowsce.forms.SoftKeyType.Dismiss, "Dismiss");
         MessagesBubbler.LeftSoftKey = new christec.windowsce.forms.NotificationSoftKey(christec.windowsce.forms.SoftKeyType.StayOpen, "Show");
         MessagesBubbler.LeftSoftKeyClick += new EventHandler(MessagesBubbler_LeftSoftKeyClick);
         MessagesBubbler.Silent = true;
         MessagesBubbler.SpinnerClick += new christec.windowsce.forms.SpinnerClickEventHandler(MessagesBubbler_SpinnerClick);
     }
     LoadAll();
 }
예제 #2
0
 public NotificationHandler()
 {
     if (DetectDevice.DeviceType == DeviceType.Professional)
     {
         _messagesBubbler = new christec.windowsce.forms.NotificationWithSoftKeys
                                {
                                    Icon = Properties.Resources.MyIco,
                                    Caption = "PockeTwit",
                                    RightSoftKey =
                                        new christec.windowsce.forms.NotificationSoftKey(
                                        christec.windowsce.forms.SoftKeyType.Dismiss, "Dismiss"),
                                    LeftSoftKey =
                                        new christec.windowsce.forms.NotificationSoftKey(
                                        christec.windowsce.forms.SoftKeyType.StayOpen, "Show")
                                };
         _messagesBubbler.LeftSoftKeyClick += MessagesBubblerLeftSoftKeyClick;
         _messagesBubbler.Silent = true;
         _messagesBubbler.SpinnerClick += MessagesBubblerSpinnerClick;
     }
     LoadAll();
 }