public ConnectionPane(IRemoteDesktop desktopSession, string username, string id) { InitializeComponent(); this.Session = desktopSession; ID = id; label3.Text = "" + username; // stopWatch = new System.Diagnostics.Stopwatch (); // stopWatch.Start (); }
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); }