Task entry for ITaskManager interface.
Inheritance: CrossDomainObject
 public GameControl() {
     InitializeComponent();
     UpdateTask = new TaskEntry(this);
     if (!System.ComponentModel.DesignerProperties.GetIsInDesignMode(new DependencyObject())) {
         UpdateManager = App.Kernel.Get<UpdateManager>();
         UpdateManager.FileSystemOpenError += UpdateManager_FileSystemOpenError;
         UpdateManager.StatusChanged += OnUpdateStatusChanged;
         ElementHolder.RemoveChild(StartButton);
         ElementHolder.RemoveChild(UpdateBlock);
         WrapElement.Content = StartButton;
         Application.Current.MainWindow.TaskbarItemInfo = TaskBar;
         LanguageManager.LanguageChanged += OnLanguageChanged;
         App.Kernel.Get<LoginManager>().LoginCompleted += OnGameStartCompleted;
         ProfileManager.ProfileChanged += OnProfileChanged;
         CheckWorker.DoWork += CheckWorker_DoWork;
         OnProfileChanged(this, BaseEventArgs.Empty);
     }
 }
Exemplo n.º 2
0
 public bool ReleaseLock(TaskEntry entry)
 {
     lock (_Tasks) {
         return _Tasks.Remove(entry);
     }
 }
        public DigiRotation()
        {
            EventProxy = new WebProviderEventAccessor(this);
            App.Kernel.Inject(this);
            InitializeComponent();
            LoadingTask = new TaskEntry(this);
            if (!System.ComponentModel.DesignerProperties.GetIsInDesignMode(new DependencyObject())) {
                LanguageManager.LanguageChanged += OnLanguageChanged;
                ProfileManager.ProfileChanged += OnProfileChanged;

                MainWorker.DoWork += MainWorkerFunc;
                MainWorker.RunWorkerAsync();
            }
        }
Exemplo n.º 4
0
 public void AquireLock(TaskEntry entry)
 {
     lock (_Tasks) {
         _Tasks.Add(entry);
     }
 }