Пример #1
0
        public ConnectionPane(IRemoteDesktop desktopSession, string username, string id)
        {
            InitializeComponent();
            this.Session = desktopSession;
            ID           = id;
            label3.Text  = "" + username;

            // stopWatch = new System.Diagnostics.Stopwatch ();
            //  stopWatch.Start ();
        }
Пример #2
0
        public static bool TryGetGetRemoteDesktopPlugin(this PanaceaServices core, out IRemoteDesktop plugin)
        {
            plugin = null;
            var rdc = core.PluginLoader.GetPlugins <IRemoteDesktop>().FirstOrDefault();

            if (rdc == null)
            {
                return(false);
            }
            plugin = rdc;
            return(true);
        }