Ejemplo n.º 1
0
 internal State(AxHost ctl)
 {
     CreateStorage();
     manualUpdate = ctl.GetAxState(AxHost.manualUpdate);
     licenseKey   = ctl.GetLicenseKey();
     type         = STG_STORAGE;
 }
Ejemplo n.º 2
0
 // create on init new w/ storage...
 internal State(AxHost control)
 {
     CreateStorage();
     _manualUpdate = control.GetAxState(s_manualUpdate);
     _licenseKey   = control.GetLicenseKey();
     Type          = STG_STORAGE;
 }
Ejemplo n.º 3
0
 // create on save from ipersist stream
 internal State(MemoryStream memoryStream, int storageType, AxHost control, PropertyBagStream propertyBag)
 {
     Type         = storageType;
     _propertyBag = propertyBag;
     // dangerous?
     _length       = (int)memoryStream.Length;
     _memoryStream = memoryStream;
     _manualUpdate = control.GetAxState(s_manualUpdate);
     _licenseKey   = control.GetLicenseKey();
 }
Ejemplo n.º 4
0
 internal State(MemoryStream ms, int storageType, AxHost ctl, PropertyBagStream propBag)
 {
     type = storageType;
     PropertyBagBinary = propBag;
     // dangerous?
     length       = (int)ms.Length;
     this.ms      = ms;
     manualUpdate = ctl.GetAxState(AxHost.manualUpdate);
     licenseKey   = ctl.GetLicenseKey();
 }
 internal State(MemoryStream ms, int storageType, AxHost ctl, AxHost.PropertyBagStream propBag)
 {
     this.VERSION = 1;
     this.type = storageType;
     this.propBag = propBag;
     this.length = (int) ms.Length;
     this.ms = ms;
     this.manualUpdate = ctl.GetAxState(AxHost.manualUpdate);
     this.licenseKey = ctl.GetLicenseKey();
 }
 internal State(AxHost ctl)
 {
     this.VERSION = 1;
     this.CreateStorage();
     this.manualUpdate = ctl.GetAxState(AxHost.manualUpdate);
     this.licenseKey = ctl.GetLicenseKey();
     this.type = 2;
 }
Ejemplo n.º 7
0
 // create on init new w/ storage...
 /// <devdoc>
 ///    <para>[To be supplied.]</para>
 /// </devdoc>
 internal State(AxHost ctl) {
     CreateStorage();
     manualUpdate = ctl.GetAxState(AxHost.manualUpdate);
     licenseKey = ctl.GetLicenseKey();
     type = STG_STORAGE;
 }