Exemplo n.º 1
0
 internal FileTypeCollection(FileType[] items)
 {
     this._Items = items;
 }
Exemplo n.º 2
0
        public bool Replace(FileType item)
        {
            if (item == null)
            {
                throw new ArgumentNullException();
            }

            for (int i = 0; i < this._Items.Length; i++)
            {
                if (this._Items[i].FormatId.Equals(item.FormatId))
                {
                    this._Items[i] = item.Clone();

                    return true;
                }
            }

            return false;
        }
Exemplo n.º 3
0
        public virtual void FromSettings(Settings source)
        {
            if (source == null)
            {
                throw new ArgumentNullException();
            }

            if (!ReferenceEquals(this, source))
            {
                this._FileType = source._FileType.Clone();
                this._ImageDestinations = source._ImageDestinations;
                this._WorkingDirectory = source._WorkingDirectory;
                this._AlwaysOnTop = source._AlwaysOnTop;
                this._AutoStartup = source._AutoStartup;
                this._UseExternalApp = source._UseExternalApp;
                this._ExternalApp = source._ExternalApp;
                this._UseFileOverwrite = source._UseFileOverwrite;
                this._IncludeCursor = source._IncludeCursor;
                this._FileNameFormat = source._FileNameFormat;
                this._FileNamePattern = source._FileNamePattern;
            }
        }