Example #1
0
 public MSSQLCE(EasySocial.FrameWork.Intelligence.BaseIntelligence intelligence)
     : base(intelligence)
 {
     EasySocial.FrameWork.Intelligence.CoreIntelligence coreIntelligence = (EasySocial.FrameWork.Intelligence.CoreIntelligence)intelligence;
     _connection = new SqlCeConnection("Data Source =" + coreIntelligence.EnvironmentIntelligence.StartUpPath + "\\Data" + "\\easysocial.sdf;");
     RequiresLogin = false;
 }
Example #2
0
 public Welcome(EasySocial.FrameWork.Intelligence.BaseIntelligence intelligence)
     : base(intelligence)
 {
     RequiresLogin = false;
     IsWelcomeScreen = true;
     PageTitle = "Welcome";
 }
 public XfireNetworkProvider(EasySocial.FrameWork.Intelligence.CoreIntelligence intelligence)
     : base(intelligence)
 {
     _encodingInstance = Encoding.ASCII;
     Contacts = new AsyncObservableCollection<EasySocial.FrameWork.Networking.NetworkProviders.ContactProvider>();
     Intelligence = intelligence;
     Name = "XfireProtocolProviderES";
 }
Example #4
0
        public void ShowConfigPage(EasySocial.FrameWork.Intelligence.CoreIntelligence intelligence)
        {
            EasySocial.FrameWork.Plugins.PagePlugins.BasePagePlugin configPagePlugin = new FrameWork.Plugins.PagePlugins.BasePagePlugin(intelligence);
            configPagePlugin.Control = new Views.ConfigurationView();
            configPagePlugin.Control.DataContext = new ViewModels.ConfigurationViewModel(intelligence);

            setPage(configPagePlugin.Control);
        }
Example #5
0
 public Weather(EasySocial.FrameWork.Intelligence.BaseIntelligence intelligence)
     : base(intelligence)
 {
     _view = new PlgWeather.Views.WeatherView();
     ((PlgWeather.ViewModels.WeatherViewModel)_view.DataContext).BaseIntelligence = intelligence;
     PageTitle = "Weather";
     MenuItems = new EasySocial.FrameWork.Collections.AsyncObservableCollection<EasySocial.FrameWork.Models.SubMenuItem>();
     NotifyPropertyChanged("MenuItems");
 }
        public XfireContactProvider(EasySocial.FrameWork.Intelligence.CoreIntelligence coreIntelligence, object[] contactData, EasySocial.FrameWork.Networking.NetworkProviders.NetworkProvider networkProvider)
            : base(coreIntelligence, contactData, networkProvider)
        {
            // TODO: Complete member initialization
            this._coreIntelligence = coreIntelligence;
            this._contactData = contactData;
            this._networkProvider = (Networking.NetworkProviders.XfireNetworkProvider)networkProvider;
            //Name = (String)(contactData[1]); TODO
            Identifier = (String)contactData[0];
            //if (Name == string.Empty) Name = (String)(contactData[0]); TODO

            StatusColor = coreIntelligence.SocialIntelligence.StatusColors["Offline"];

            System.Net.WebClient wc = new System.Net.WebClient();
            string user = (string)contactData[0];
            this.ImageAsBytes = wc.DownloadData(new Uri("http://screenshot.xfire.com/avatar/160/" + user + ".jpg"));
            if (this.ImageAsBytes.Count() == 0) this.ImageAsBytes = wc.DownloadData(new Uri("http://yammer.ucdavis.edu/lib/exe/fetch.php?w=150&h=&cache=cache&media=shared:no-avatar.jpg"));
        }
 public FeedReaderIntelligence(EasySocial.FrameWork.Intelligence.BaseIntelligence intelligence)
     : base((EasySocial.FrameWork.Intelligence.CoreIntelligence)intelligence)
 {
     PropertyChanged += new PropertyChangedEventHandler(FeedReaderIntelligence_PropertyChanged);
     intelligence.CoreIntelligence.ThreadingIntelligence.StartThread(GetFeeds);
 }
Example #8
0
 public Messaging(EasySocial.FrameWork.Intelligence.BaseIntelligence intelligence)
     : base(intelligence)
 {
     PageTitle = "Messaging";
 }
Example #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NetworkProvider"/> class.
 /// </summary>
 /// <param name="intelligence">The intelligence.</param>
 public NetworkProvider(EasySocial.FrameWork.Intelligence.CoreIntelligence intelligence)
 {
     Contacts = new AsyncObservableCollection<ContactProvider>();
 }
Example #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContactProvider"/> class.
 /// </summary>
 /// <param name="coreIntelligence">The core intelligence.</param>
 /// <param name="contactData">The contact data.</param>
 /// <param name="networkProvider">The network provider.</param>
 public ContactProvider(EasySocial.FrameWork.Intelligence.CoreIntelligence coreIntelligence, object[] contactData, NetworkProvider networkProvider)
 {
     _coreIntelligence = coreIntelligence;
 }
Example #11
0
 public Xfire(EasySocial.FrameWork.Intelligence.BaseIntelligence intelligence)
     : base((CoreIntelligence)intelligence)
 {
     Intelligence = (CoreIntelligence)intelligence;
     Name = "XfireProtocolES";
 }