Exemplo n.º 1
0
        public static void Init()
        {
            Version version = Assembly.GetEntryAssembly().GetName().Version;

            object[] objArray1 = new object[] { "v", version.Major, ".", version.Revision };
            VERSION   = string.Concat(objArray1);
            HddSerial = EveAIO.Helpers.GetHardDiskSerialNo();
            if (HddSerial.Length > 0x10)
            {
                HddSerial = HddSerial.Substring(0, 0x10);
            }
            while (HddSerial.Length < 0x10)
            {
                HddSerial = HddSerial + "A";
            }
            EncryptorAes.Key = HddSerial;
            Machine_name     = Environment.UserName;
            EveAIO.Helpers.LoadSettings();
            ViewDashboard     = new DashboardView();
            ViewProfiles      = new ProfilesView();
            ViewLog           = new LogView();
            ViewCaptcha       = new CaptchaView();
            ViewSuccess       = new SuccessView();
            ViewProxy         = new ProxyView();
            ViewNotifications = new NotificationsView();
            ViewSettings      = new SettingsView();
            ViewTools         = new ToolsView();
            CAPTCHA_QUEUE.CollectionChanged += new NotifyCollectionChangedEventHandler(Global.CAPTCHA_QUEUE_CollectionChanged);
            CLIENT = new Client(null, null, false);
            CLIENT.SetDesktopAgent();
            CLIENT.Session.DefaultRequestHeaders.TryAddWithoutValidation("Upgrade-Insecure-Requests", "1");
            CLIENT.Session.DefaultRequestHeaders.TryAddWithoutValidation("Accept-Language", "en-GB, en-US; q=0.9, en; q=0.8");
            CLIENT.Session.DefaultRequestHeaders.TryAddWithoutValidation("Connection", "keep-alive");
        }
Exemplo n.º 2
0
        protected override void Dispose(bool isManaged)
        {
            if (!isManaged)
            {
                hideDelay.Dispose();
                view.Close();
                view = null;
            }

            base.Dispose(isManaged);
        }
Exemplo n.º 3
0
        public void ShowNotifications()
        {
            if (ApplicationSettings.DisallowNotificationsWhenDnd &&
                chatState.ChatModel.CurrentCharacter.Status == StatusType.Dnd)
            {
                return;
            }

            if (!ApplicationSettings.ShowNotificationsGlobal)
            {
                return;
            }

            hideDelay.Stop();
            if (view == null)
            {
                Dispatcher.Invoke((Action)(() => view = new NotificationsView(this)));
            }

            Dispatcher.Invoke(() => view.OnShowCommand());
            hideDelay.Start();
            view.OnContentChanged();
        }
 public NotificationsViewModel(ObservableCollection <Notification> notif, NotificationsView wind)
 {
     Notifications = notif;
     this.wind     = wind;
 }
        protected override void Dispose(bool isManaged)
        {
            if (!isManaged)
            {
                hideDelay.Dispose();
                view.Close();
                view = null;
            }

            base.Dispose(isManaged);
        }
        public void ShowNotifications()
        {
            if (ApplicationSettings.DisallowNotificationsWhenDnd &&
                chatState.ChatModel.CurrentCharacter.Status == StatusType.Dnd)
                return;

            if (!ApplicationSettings.ShowNotificationsGlobal)
                return;

            hideDelay.Stop();
            if (view == null)
                Dispatcher.Invoke((Action) (() => view = new NotificationsView(this)));

            Dispatcher.Invoke(() => view.OnShowCommand());
            hideDelay.Start();
            view.OnContentChanged();
        }
Exemplo n.º 7
0
        public void ShowNotifications()
        {
            hideDelay.Stop();
            if (view == null)
                view = new NotificationsView(this);

            Dispatcher.Invoke((Action) (() => view.OnShowCommand()));
            hideDelay.Start();
        }