Example #1
0
        internal async Task Connect(ConnectionInfo connectionInfo, Session session, ILogger logger)
        {
            var address = connectionInfo.Network == "unix"
                ? $"unix://{connectionInfo.Address}"
                : connectionInfo.Address;

            var channel = new Channel(address, ChannelCredentials.Insecure);
            await channel.ConnectAsync();

            var interceptedChannel = channel.Intercept(new ExceptionLoggingInterceptor(logger));

            Console.Error.WriteLine("[DEBUG] GRPC Channel Connected");
            Whisper    = new WhisperClient(interceptedChannel, session, logger);
            Clipboard  = new ClipboardClient(interceptedChannel, session, logger);
            Filesystem = new FilesystemClient(interceptedChannel, session, logger);
            Cursor     = new CursorClient(interceptedChannel, session, logger);
            Keyboard   = new KeyboardClient(interceptedChannel, session, logger);
            Network    = new NetworkClient(interceptedChannel, session, logger);
            Process    = new ProcessClient(interceptedChannel, session, logger);
            Browser    = new BrowserClient(interceptedChannel, session, logger);
            Hover      = new HoverClient(interceptedChannel, session, logger);
            Window     = new WindowClient(interceptedChannel, session, logger);
            Storage    = new StorageClient(interceptedChannel, session, logger);
            UI         = new UIClient(interceptedChannel, session, logger);
        }
Example #2
0
 public GuideManager(muUIClient m)
 {
     GuideManager.singleton = this;
     this._uiClient         = m;
     this._currGuides       = new Dictionary <string, GuideData>();
     this._currGuideByTp    = new Dictionary <string, Variant>();
     this._guideUIs         = new Dictionary <uint, IGuideUI>();
     this._finGuides        = new Variant();
     this.funProcess.update = new Action <float>(this.process);
 }
Example #3
0
        public AppManager(UIClient client)
        {
            _uiClient = client;

            LoginService = new LoginService();
            CardsService = new CardsService();
            CommunityService = new CommunityService();
            UserStore = new UserStore();
            Repository = new Repository();

            _current = this;
        }
Example #4
0
        public VMClient(VMMain VMMain, UIClient View)
        {
            this.View           = View;
            this.View.ViewModel = this;
            this.VMMain         = VMMain;

            // load clients and products in lists
            getDataFromDb();

            // load selected client detail to listView and textboxes
            loadClientDetail((Client)View.getLBoxClient().SelectedValue);
        }
Example #5
0
 public void switchToClient()
 {
     if (User != null)
     {
         if (UIClient == null)
         {
             UIClient = new UIClient();
             VMClient = new VMClient(this, UIClient);
         }
         UIMainForm.getPnUserControl().Controls.Clear();
         UIMainForm.getPnUserControl().Controls.Add(UIClient);
     }
     else
     {
         switchToLogin();
     }
 }
Example #6
0
 public ProdeTabBarDelegate(UIClient client)
 {
     _uiClient = client;
 }