Ejemplo n.º 1
0
        public BroadcastMainViewModel()
        {
            #region Initialising

            InitBroadcastCommands();
            ApplicationInformation = SimpleIoc.Default.GetInstance <ApplicationInformation>();
            Customers          = new ObservableCollectionEx <T>();
            clipboardHelper    = new ClipboardHelper <T>();
            dialogService      = SimpleIoc.Default.GetInstance <IDialogService>();
            csvImporter        = SimpleIoc.Default.GetInstance <ICsvImporter <T> >();
            csvExporter        = SimpleIoc.Default.GetInstance <ICsvExporter <T> >();
            scheduler          = SimpleIoc.Default.GetInstance <IScheduler <T> >();
            extensionContainer = SimpleIoc.Default.GetInstance <IExtensionContainer>();
            client             = SimpleIoc.Default.GetInstance <IClient>();
            sync = new object();

            #endregion

            #region Subscribes
            clipboardHelper.ItemLoaded  += ClipboardHelperOnItemLoaded;
            csvExporter.AllItemSaved    += csvExporter_AllItemSaved;
            csvImporter.ItemLoaded      += csvLoader_ItemLoaded;
            csvImporter.AllItemLoaded   += csvImporter_AllItemLoaded;
            Customers.CollectionChanged += Customers_CollectionChanged;
            client.ErrorOccurred        += ClientOnErrorOccurred;

            scheduler.WorksCompleted   += SchedulerOnWorksCompleted;
            scheduler.OneWorkCompleted += SchedulerOneWorkCompleted;
            #endregion
        }
Ejemplo n.º 2
0
 /// <summary>
 /// takes the base object, and the localname/ns combo to look for
 /// will copy objects to an internal array for caching. Note that when the external 
 /// ExtensionList is modified, this will have no effect on this copy
 /// </summary>
 /// <param name="containerElement">the base element holding the extension list</param>
 /// <param name="localName">the local name of the extension</param>
 /// <param name="ns">the namespace</param>
 public ExtensionCollection(IExtensionContainer containerElement, string localName, string ns) : base()
 {
      this.container = containerElement;
      ArrayList arr = this.container.FindExtensions(localName, ns); 
      foreach (object o in arr )
      {
          List.Add(o);
      }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// takes the base object, and the localname/ns combo to look for
 /// will copy objects to an internal array for caching. Note that when the external
 /// ExtensionList is modified, this will have no effect on this copy
 /// </summary>
 /// <param name="containerElement">the base element holding the extension list</param>
 /// <param name="localName">the local name of the extension</param>
 /// <param name="ns">the namespace</param>
 public ExtensionCollection(IExtensionContainer containerElement, string localName, string ns)
     : base()
 {
     this.container = containerElement;
     if (this.container != null)
     {
         ExtensionList arr = this.container.FindExtensions(localName, ns);
         foreach (T o in arr)
         {
             _items.Add(o);
         }
     }
 }
Ejemplo n.º 4
0
 /// <summary>constructor</summary>
 public PropertyCollection(IExtensionContainer atomElement)
     : base(atomElement, AppsMigrationNameTable.AppsPropery, AppsMigrationNameTable.AppsNamespace)
 {
 }
Ejemplo n.º 5
0
 /// <summary>
 /// takes the base object, and the localname/ns combo to look for
 /// will copy objects to an internal array for caching. Note that when the external
 /// ExtensionList is modified, this will have no effect on this copy
 /// </summary>
 /// <param name="containerElement">the base element holding the extension list</param>
 public ExtensionCollection(IExtensionContainer containerElement)
     : this(containerElement, CtorXmlName(), CtorXmlNS())
 {
 }
Ejemplo n.º 6
0
 /// <summary>constructor</summary> 
 public WhoCollection(IExtensionContainer atomElement) 
     : base(atomElement, GDataParserNameTable.XmlWhoElement, BaseNameTable.gNamespace)
 {
 }
Ejemplo n.º 7
0
 public AutoDialerWorkerFactory()
 {
     extensionContainer = SimpleIoc.Default.GetInstance <IExtensionContainer>();
 }
Ejemplo n.º 8
0
 /// <summary>constructor</summary> 
 public ThumbnailCollection(IExtensionContainer atomElement) 
     : base(atomElement, MediaRssNameTable.MediaRssThumbnail, MediaRssNameTable.NSMediaRss)
 {
 }