Пример #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            // Process Watcher
            List <ProcessItem> processItems = new List <ProcessItem>(new ProcessItem[] {
                new ProcessItem("gameClient", "League of Legends"),
                new ProcessItem("launcher", "LeagueClientUx")
            });
            var processDetection = new ProcessDetection(processItems);

            ClientTypeGame gameClient = new ClientTypeGame(previewImages, AppSettings);

            List <ClientMap> clientMapList = new List <ClientMap>(new ClientMap[] {
                new ClientMap("gameClient", gameClient),
                new ClientMap("launcher", new ClientTypeLauncher()),
            });

            mainApplication             = new MainApplication(processDetection, clientMapList, AppSettings);
            mainApplication.Dispatcher  = Dispatcher;
            mainApplication.RootElement = RootElement;


            // Cue Connection
            var cb = new ICueBridge();

            mainApplication.setiCueBridge(ref cb);
        }
Пример #2
0
 public void setiCueBridge(ref ICueBridge iCueBridge)
 {
     this.ICueBridge = iCueBridge;
 }
Пример #3
0
 public void SetICueBridge(ref ICueBridge value)
 {
     this.iCueBridge = value;
 }