Beispiel #1
0
        public AESFile()
        {
            InitializeComponent();
            usageCheck = new DataUsageCheck();
            config     = new VConfig();

            usage = usageCheck.initData();

            DataContextChanged            += AESFile_DataContextChanged;
            SaltTitle.MouseLeftButtonDown += new MouseButtonEventHandler(SaltTitle_MouseLeftButtonDown);
        }
Beispiel #2
0
        private void addNotification()
        {
            var u        = new DataUsageCheck();
            var dataBlog = u.BlogNotification();

            foreach (var item in dataBlog.data)
            {
                var notification = new Notification(NotificationsType.Info, NotificationsGroup.VisUpdate, item.title, item.content);
                notification.Actions.Add(new NotificationAction
                {
                    Info   = "Chi tiết",
                    Action = () => { Process.Start(item.blogUri); }
                });
                NotificationsManager.Instance.AddNotificationToList(notification);
            }
        }