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 }
/// <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); } }
/// <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); } } }
/// <summary>constructor</summary> public PropertyCollection(IExtensionContainer atomElement) : base(atomElement, AppsMigrationNameTable.AppsPropery, AppsMigrationNameTable.AppsNamespace) { }
/// <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()) { }
/// <summary>constructor</summary> public WhoCollection(IExtensionContainer atomElement) : base(atomElement, GDataParserNameTable.XmlWhoElement, BaseNameTable.gNamespace) { }
public AutoDialerWorkerFactory() { extensionContainer = SimpleIoc.Default.GetInstance <IExtensionContainer>(); }
/// <summary>constructor</summary> public ThumbnailCollection(IExtensionContainer atomElement) : base(atomElement, MediaRssNameTable.MediaRssThumbnail, MediaRssNameTable.NSMediaRss) { }