Наследование: VisualSimpleBase, IContentValues
Пример #1
0
 private void InitializeComponent()
 {
     this.components       = new System.ComponentModel.Container();
     this.klblPaletteStyle = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.kbtnApplyTheme   = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kryptonManager1  = new ComponentFactory.Krypton.Toolkit.KryptonManager(this.components);
     this.kcmbSelection    = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
     ((System.ComponentModel.ISupportInitialize)(this.kcmbSelection)).BeginInit();
     this.SuspendLayout();
     //
     // klblPaletteStyle
     //
     this.klblPaletteStyle.Location = new System.Drawing.Point(16, 13);
     this.klblPaletteStyle.Name     = "klblPaletteStyle";
     this.klblPaletteStyle.Size     = new System.Drawing.Size(154, 24);
     this.klblPaletteStyle.StateCommon.LongText.Font  = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblPaletteStyle.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblPaletteStyle.TabIndex    = 0;
     this.klblPaletteStyle.Values.Text = "Select Palette Style:";
     //
     // kbtnApplyTheme
     //
     this.kbtnApplyTheme.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnApplyTheme.Enabled  = false;
     this.kbtnApplyTheme.Location = new System.Drawing.Point(383, 13);
     this.kbtnApplyTheme.Name     = "kbtnApplyTheme";
     this.kbtnApplyTheme.Size     = new System.Drawing.Size(90, 25);
     this.kbtnApplyTheme.StateCommon.Content.LongText.Font  = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnApplyTheme.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnApplyTheme.TabIndex    = 2;
     this.kbtnApplyTheme.Values.Text = "&Apply";
     this.kbtnApplyTheme.Click      += new System.EventHandler(this.kbtnApplyTheme_Click);
     //
     // kcmbSelection
     //
     this.kcmbSelection.Anchor        = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.kcmbSelection.DropDownWidth = 255;
     this.kcmbSelection.Location      = new System.Drawing.Point(166, 13);
     this.kcmbSelection.Name          = "kcmbSelection";
     this.kcmbSelection.Size          = new System.Drawing.Size(211, 25);
     this.kcmbSelection.StateCommon.ComboBox.Content.Font       = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kcmbSelection.StateCommon.Item.Content.LongText.Font  = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kcmbSelection.StateCommon.Item.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kcmbSelection.TabIndex              = 3;
     this.kcmbSelection.SelectedIndexChanged += new System.EventHandler(this.kcmbSelection_SelectedIndexChanged);
     //
     // KryptonPaletteSelector
     //
     this.BackColor = System.Drawing.Color.Transparent;
     this.Controls.Add(this.kcmbSelection);
     this.Controls.Add(this.kbtnApplyTheme);
     this.Controls.Add(this.klblPaletteStyle);
     this.Font  = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Name  = "KryptonPaletteSelector";
     this.Size  = new System.Drawing.Size(492, 54);
     this.Load += new System.EventHandler(this.KryptonPaletteSelector_Load);
     ((System.ComponentModel.ISupportInitialize)(this.kcmbSelection)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
        /// <summary>
        /// Initialize a new instance of the KryptonLabelActionList class.
        /// </summary>
        /// <param name="owner">Designer that owns this action list instance.</param>
        public KryptonLabelActionList(KryptonLabelDesigner owner)
            : base(owner.Component)
        {
            // Remember the label instance
            _label = owner.Component as KryptonLabel;

            // Cache service used to notify when a property has changed
            _service = (IComponentChangeService)GetService(typeof(IComponentChangeService));
        }
 private void InitializeComponent()
 {
     this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.klblContent   = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.klblHeader    = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.pbxIcon       = new System.Windows.Forms.PictureBox();
     this.kryptonPanel2 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kbtnAction    = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kbtnDismiss   = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.panel1        = new System.Windows.Forms.Panel();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
     this.kryptonPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pbxIcon)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
     this.kryptonPanel2.SuspendLayout();
     this.SuspendLayout();
     //
     // kryptonPanel1
     //
     this.kryptonPanel1.Controls.Add(this.klblContent);
     this.kryptonPanel1.Controls.Add(this.klblHeader);
     this.kryptonPanel1.Controls.Add(this.pbxIcon);
     this.kryptonPanel1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
     this.kryptonPanel1.Name     = "kryptonPanel1";
     this.kryptonPanel1.Size     = new System.Drawing.Size(646, 249);
     this.kryptonPanel1.TabIndex = 0;
     //
     // klblContent
     //
     this.klblContent.AutoSize = false;
     this.klblContent.Location = new System.Drawing.Point(146, 77);
     this.klblContent.Name     = "klblContent";
     this.klblContent.Size     = new System.Drawing.Size(488, 153);
     this.klblContent.StateCommon.LongText.Font  = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblContent.StateCommon.LongText.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Near;
     this.klblContent.StateCommon.LongText.TextV = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Near;
     this.klblContent.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblContent.TabIndex    = 3;
     this.klblContent.Values.Text = "kryptonLabel1";
     //
     // klblHeader
     //
     this.klblHeader.AutoSize = false;
     this.klblHeader.Location = new System.Drawing.Point(146, 12);
     this.klblHeader.Name     = "klblHeader";
     this.klblHeader.Size     = new System.Drawing.Size(488, 58);
     this.klblHeader.StateCommon.LongText.Font   = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblHeader.StateCommon.LongText.TextH  = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Center;
     this.klblHeader.StateCommon.LongText.TextV  = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Center;
     this.klblHeader.StateCommon.ShortText.Font  = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblHeader.StateCommon.ShortText.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Center;
     this.klblHeader.StateCommon.ShortText.TextV = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Center;
     this.klblHeader.TabIndex    = 2;
     this.klblHeader.Values.Text = "kryptonLabel1";
     //
     // pbxIcon
     //
     this.pbxIcon.BackColor = System.Drawing.Color.Transparent;
     this.pbxIcon.Location  = new System.Drawing.Point(12, 12);
     this.pbxIcon.Name      = "pbxIcon";
     this.pbxIcon.Size      = new System.Drawing.Size(128, 128);
     this.pbxIcon.TabIndex  = 1;
     this.pbxIcon.TabStop   = false;
     //
     // kryptonPanel2
     //
     this.kryptonPanel2.Controls.Add(this.kbtnAction);
     this.kryptonPanel2.Controls.Add(this.kbtnDismiss);
     this.kryptonPanel2.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.kryptonPanel2.Location = new System.Drawing.Point(0, 251);
     this.kryptonPanel2.Name     = "kryptonPanel2";
     this.kryptonPanel2.Size     = new System.Drawing.Size(646, 49);
     this.kryptonPanel2.TabIndex = 1;
     //
     // kbtnAction
     //
     this.kbtnAction.AutoSize     = true;
     this.kbtnAction.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this.kbtnAction.Enabled      = false;
     this.kbtnAction.Location     = new System.Drawing.Point(12, 6);
     this.kbtnAction.Name         = "kbtnAction";
     this.kbtnAction.Size         = new System.Drawing.Size(31, 30);
     this.kbtnAction.StateCommon.Content.LongText.Font  = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnAction.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnAction.TabIndex    = 1;
     this.kbtnAction.Values.Text = "{0}";
     this.kbtnAction.Visible     = false;
     this.kbtnAction.Click      += new System.EventHandler(this.kbtnAction_Click);
     //
     // kbtnDismiss
     //
     this.kbtnDismiss.Location = new System.Drawing.Point(480, 6);
     this.kbtnDismiss.Name     = "kbtnDismiss";
     this.kbtnDismiss.Size     = new System.Drawing.Size(154, 31);
     this.kbtnDismiss.StateCommon.Content.LongText.Font  = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnDismiss.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnDismiss.TabIndex    = 0;
     this.kbtnDismiss.Values.Text = "Dismiss ({0})";
     this.kbtnDismiss.Click      += new System.EventHandler(this.kbtnDismiss_Click);
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.SystemColors.ControlDarkDark;
     this.panel1.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Location  = new System.Drawing.Point(0, 249);
     this.panel1.Name      = "panel1";
     this.panel1.Size      = new System.Drawing.Size(646, 2);
     this.panel1.TabIndex  = 2;
     //
     // KryptonToastNotification
     //
     this.ClientSize = new System.Drawing.Size(646, 300);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.kryptonPanel2);
     this.Controls.Add(this.kryptonPanel1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "KryptonToastNotification";
     this.ShowIcon        = false;
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.Manual;
     this.Load           += new System.EventHandler(this.KryptonToastNotification_Load);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
     this.kryptonPanel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.pbxIcon)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
     this.kryptonPanel2.ResumeLayout(false);
     this.kryptonPanel2.PerformLayout();
     this.ResumeLayout(false);
 }
Пример #4
0
 private void InitializeComponent()
 {
     this.kryptonPanel1    = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kbtnOk           = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kbtnCancel       = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kbtnAbort        = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kbtnYes          = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kbtnNo           = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.panel1           = new System.Windows.Forms.Panel();
     this.kryptonPanel2    = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.ktxtUserResponse = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
     this.kcmbUserChoice   = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
     this.klblMessage      = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.pbxIcon          = new System.Windows.Forms.PictureBox();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
     this.kryptonPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
     this.kryptonPanel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kcmbUserChoice)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pbxIcon)).BeginInit();
     this.SuspendLayout();
     //
     // kryptonPanel1
     //
     this.kryptonPanel1.Controls.Add(this.kbtnOk);
     this.kryptonPanel1.Controls.Add(this.kbtnCancel);
     this.kryptonPanel1.Controls.Add(this.kbtnAbort);
     this.kryptonPanel1.Controls.Add(this.kbtnYes);
     this.kryptonPanel1.Controls.Add(this.kbtnNo);
     this.kryptonPanel1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.kryptonPanel1.Location = new System.Drawing.Point(0, 212);
     this.kryptonPanel1.Name     = "kryptonPanel1";
     this.kryptonPanel1.Size     = new System.Drawing.Size(578, 51);
     this.kryptonPanel1.TabIndex = 1;
     //
     // kbtnOk
     //
     this.kbtnOk.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnOk.Location = new System.Drawing.Point(380, 8);
     this.kbtnOk.Name     = "kbtnOk";
     this.kbtnOk.Size     = new System.Drawing.Size(90, 31);
     this.kbtnOk.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnOk.TabIndex    = 4;
     this.kbtnOk.Values.Text = "&OK";
     this.kbtnOk.Click      += new System.EventHandler(this.kbtnOk_Click);
     //
     // kbtnCancel
     //
     this.kbtnCancel.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnCancel.Location = new System.Drawing.Point(476, 8);
     this.kbtnCancel.Name     = "kbtnCancel";
     this.kbtnCancel.Size     = new System.Drawing.Size(90, 31);
     this.kbtnCancel.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnCancel.TabIndex    = 3;
     this.kbtnCancel.Values.Text = "&Cancel";
     this.kbtnCancel.Click      += new System.EventHandler(this.kbtnCancel_Click);
     //
     // kbtnAbort
     //
     this.kbtnAbort.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnAbort.Location = new System.Drawing.Point(476, 8);
     this.kbtnAbort.Name     = "kbtnAbort";
     this.kbtnAbort.Size     = new System.Drawing.Size(90, 31);
     this.kbtnAbort.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnAbort.TabIndex    = 2;
     this.kbtnAbort.Values.Text = "&Abort";
     this.kbtnAbort.Click      += new System.EventHandler(this.kbtnAbort_Click);
     //
     // kbtnYes
     //
     this.kbtnYes.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnYes.Location = new System.Drawing.Point(380, 8);
     this.kbtnYes.Name     = "kbtnYes";
     this.kbtnYes.Size     = new System.Drawing.Size(90, 31);
     this.kbtnYes.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnYes.TabIndex    = 1;
     this.kbtnYes.Values.Text = "&Yes";
     this.kbtnYes.Click      += new System.EventHandler(this.kbtnYes_Click);
     //
     // kbtnNo
     //
     this.kbtnNo.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnNo.Location = new System.Drawing.Point(476, 8);
     this.kbtnNo.Name     = "kbtnNo";
     this.kbtnNo.Size     = new System.Drawing.Size(90, 31);
     this.kbtnNo.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnNo.TabIndex    = 0;
     this.kbtnNo.Values.Text = "&No";
     this.kbtnNo.Click      += new System.EventHandler(this.kbtnNo_Click);
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.SystemColors.ControlDarkDark;
     this.panel1.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this.panel1.Location  = new System.Drawing.Point(0, 209);
     this.panel1.Name      = "panel1";
     this.panel1.Size      = new System.Drawing.Size(578, 3);
     this.panel1.TabIndex  = 9;
     //
     // kryptonPanel2
     //
     this.kryptonPanel2.Controls.Add(this.ktxtUserResponse);
     this.kryptonPanel2.Controls.Add(this.kcmbUserChoice);
     this.kryptonPanel2.Controls.Add(this.klblMessage);
     this.kryptonPanel2.Controls.Add(this.pbxIcon);
     this.kryptonPanel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel2.Location = new System.Drawing.Point(0, 0);
     this.kryptonPanel2.Name     = "kryptonPanel2";
     this.kryptonPanel2.Size     = new System.Drawing.Size(578, 209);
     this.kryptonPanel2.TabIndex = 10;
     //
     // ktxtUserResponse
     //
     this.ktxtUserResponse.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                           | System.Windows.Forms.AnchorStyles.Left)
                                                                          | System.Windows.Forms.AnchorStyles.Right)));
     this.ktxtUserResponse.Location = new System.Drawing.Point(180, 150);
     this.ktxtUserResponse.Name     = "ktxtUserResponse";
     this.ktxtUserResponse.Size     = new System.Drawing.Size(269, 25);
     this.ktxtUserResponse.StateCommon.Content.Font  = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.ktxtUserResponse.StateCommon.Content.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Inherit;
     this.ktxtUserResponse.TabIndex = 12;
     this.ktxtUserResponse.ToolTipValues.Description    = "Type your response here...";
     this.ktxtUserResponse.ToolTipValues.EnableToolTips = true;
     this.ktxtUserResponse.ToolTipValues.Heading        = "User Response";
     //
     // kcmbUserChoice
     //
     this.kcmbUserChoice.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                         | System.Windows.Forms.AnchorStyles.Left)
                                                                        | System.Windows.Forms.AnchorStyles.Right)));
     this.kcmbUserChoice.DropDownStyle  = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.kcmbUserChoice.DropDownWidth  = 269;
     this.kcmbUserChoice.IntegralHeight = false;
     this.kcmbUserChoice.Location       = new System.Drawing.Point(180, 150);
     this.kcmbUserChoice.Name           = "kcmbUserChoice";
     this.kcmbUserChoice.Size           = new System.Drawing.Size(269, 23);
     this.kcmbUserChoice.StateCommon.ComboBox.Content.Font       = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kcmbUserChoice.StateCommon.ComboBox.Content.TextH      = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Near;
     this.kcmbUserChoice.StateCommon.Item.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kcmbUserChoice.TabIndex = 11;
     //
     // klblMessage
     //
     this.klblMessage.AutoSize = false;
     this.klblMessage.Location = new System.Drawing.Point(82, 12);
     this.klblMessage.Name     = "klblMessage";
     this.klblMessage.Size     = new System.Drawing.Size(482, 132);
     this.klblMessage.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblMessage.TabIndex    = 10;
     this.klblMessage.Values.Text = "{0}";
     //
     // pbxIcon
     //
     this.pbxIcon.BackColor = System.Drawing.Color.Transparent;
     this.pbxIcon.Location  = new System.Drawing.Point(12, 12);
     this.pbxIcon.Name      = "pbxIcon";
     this.pbxIcon.Size      = new System.Drawing.Size(64, 64);
     this.pbxIcon.SizeMode  = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
     this.pbxIcon.TabIndex  = 4;
     this.pbxIcon.TabStop   = false;
     //
     // KryptonInputBoxExtended
     //
     this.BackColor = System.Drawing.Color.Transparent;
     this.Controls.Add(this.kryptonPanel2);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.kryptonPanel1);
     this.Name = "KryptonInputBoxExtended";
     this.Size = new System.Drawing.Size(578, 263);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
     this.kryptonPanel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
     this.kryptonPanel2.ResumeLayout(false);
     this.kryptonPanel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kcmbUserChoice)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pbxIcon)).EndInit();
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LicenseInstallForm));
     this._keyText = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
     this._keyLabel = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.kryptonPanelTop = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.labelTopHeader = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.pictureBoxRight = new System.Windows.Forms.PictureBox();
     this.kryptonPanelBottom = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kryptonButtonHelp = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kryptonButtonOK = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kryptonButtonIgnore = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kryptonPanelBottomBorder = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kryptonPanelTopBorder = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this._msgError = new System.Windows.Forms.Label();
     this._msgLabel = new System.Windows.Forms.Label();
     this.label1 = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanelTop)).BeginInit();
     this.kryptonPanelTop.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxRight)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanelBottom)).BeginInit();
     this.kryptonPanelBottom.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanelBottomBorder)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanelTopBorder)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
     this.kryptonPanel1.SuspendLayout();
     this.SuspendLayout();
     //
     // _keyText
     //
     this._keyText.InputControlStyle = ComponentFactory.Krypton.Toolkit.InputControlStyle.Standalone;
     this._keyText.Location = new System.Drawing.Point(89, 98);
     this._keyText.Multiline = true;
     this._keyText.Name = "_keyText";
     this._keyText.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
     this._keyText.Size = new System.Drawing.Size(320, 35);
     this._keyText.TabIndex = 0;
     this._keyText.TextChanged += new System.EventHandler(this.OnLicenceTextChanged);
     //
     // _keyLabel
     //
     this._keyLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this._keyLabel.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl;
     this._keyLabel.Location = new System.Drawing.Point(17, 101);
     this._keyLabel.Name = "_keyLabel";
     this._keyLabel.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
     this._keyLabel.Size = new System.Drawing.Size(69, 19);
     this._keyLabel.TabIndex = 3;
     this._keyLabel.Values.Text = "Licence Key";
     //
     // kryptonPanelTop
     //
     this.kryptonPanelTop.Controls.Add(this.labelTopHeader);
     this.kryptonPanelTop.Controls.Add(this.pictureBoxRight);
     this.kryptonPanelTop.Dock = System.Windows.Forms.DockStyle.Top;
     this.kryptonPanelTop.Location = new System.Drawing.Point(0, 0);
     this.kryptonPanelTop.Name = "kryptonPanelTop";
     this.kryptonPanelTop.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
     this.kryptonPanelTop.PanelBackStyle = ComponentFactory.Krypton.Toolkit.PaletteBackStyle.ControlClient;
     this.kryptonPanelTop.Size = new System.Drawing.Size(437, 90);
     this.kryptonPanelTop.TabIndex = 0;
     //
     // labelTopHeader
     //
     this.labelTopHeader.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl;
     this.labelTopHeader.Location = new System.Drawing.Point(12, 30);
     this.labelTopHeader.Name = "labelTopHeader";
     this.labelTopHeader.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
     this.labelTopHeader.Size = new System.Drawing.Size(215, 53);
     this.labelTopHeader.StateCommon.ShortText.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.labelTopHeader.StateCommon.ShortText.Hint = ComponentFactory.Krypton.Toolkit.PaletteTextHint.AntiAlias;
     this.labelTopHeader.StateCommon.ShortText.ImageStyle = ComponentFactory.Krypton.Toolkit.PaletteImageStyle.Inherit;
     this.labelTopHeader.StateCommon.ShortText.Trim = ComponentFactory.Krypton.Toolkit.PaletteTextTrim.Inherit;
     this.labelTopHeader.TabIndex = 1;
     this.labelTopHeader.Values.Text = "Krypton Suite\r\nInstall Licence";
     //
     // pictureBoxRight
     //
     this.pictureBoxRight.BackColor = System.Drawing.SystemColors.Window;
     this.pictureBoxRight.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.pictureBoxRight.Dock = System.Windows.Forms.DockStyle.Right;
     this.pictureBoxRight.Image = global::ComponentFactory.Krypton.Workspace.Properties.Resources.CF_Logo;
     this.pictureBoxRight.Location = new System.Drawing.Point(231, 0);
     this.pictureBoxRight.Name = "pictureBoxRight";
     this.pictureBoxRight.Size = new System.Drawing.Size(206, 90);
     this.pictureBoxRight.TabIndex = 0;
     this.pictureBoxRight.TabStop = false;
     //
     // kryptonPanelBottom
     //
     this.kryptonPanelBottom.Controls.Add(this.kryptonButtonHelp);
     this.kryptonPanelBottom.Controls.Add(this.kryptonButtonOK);
     this.kryptonPanelBottom.Controls.Add(this.kryptonButtonIgnore);
     this.kryptonPanelBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.kryptonPanelBottom.Location = new System.Drawing.Point(0, 330);
     this.kryptonPanelBottom.Name = "kryptonPanelBottom";
     this.kryptonPanelBottom.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
     this.kryptonPanelBottom.PanelBackStyle = ComponentFactory.Krypton.Toolkit.PaletteBackStyle.PanelClient;
     this.kryptonPanelBottom.Size = new System.Drawing.Size(437, 45);
     this.kryptonPanelBottom.StateNormal.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.Solid;
     this.kryptonPanelBottom.StateNormal.ImageStyle = ComponentFactory.Krypton.Toolkit.PaletteImageStyle.Inherit;
     this.kryptonPanelBottom.TabIndex = 1;
     //
     // kryptonButtonHelp
     //
     this.kryptonButtonHelp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kryptonButtonHelp.ButtonStyle = ComponentFactory.Krypton.Toolkit.ButtonStyle.Standalone;
     this.kryptonButtonHelp.Location = new System.Drawing.Point(10, 10);
     this.kryptonButtonHelp.Name = "kryptonButtonHelp";
     this.kryptonButtonHelp.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
     this.kryptonButtonHelp.Size = new System.Drawing.Size(74, 25);
     this.kryptonButtonHelp.TabIndex = 0;
     this.kryptonButtonHelp.Values.Image = global::ComponentFactory.Krypton.Workspace.Properties.Resources.help2;
     this.kryptonButtonHelp.Values.Text = "Help";
     this.kryptonButtonHelp.Click += new System.EventHandler(this.OnHelpButtonClick);
     //
     // kryptonButtonOK
     //
     this.kryptonButtonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kryptonButtonOK.ButtonStyle = ComponentFactory.Krypton.Toolkit.ButtonStyle.Standalone;
     this.kryptonButtonOK.Enabled = false;
     this.kryptonButtonOK.Location = new System.Drawing.Point(273, 10);
     this.kryptonButtonOK.Name = "kryptonButtonOK";
     this.kryptonButtonOK.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
     this.kryptonButtonOK.Size = new System.Drawing.Size(74, 25);
     this.kryptonButtonOK.TabIndex = 1;
     this.kryptonButtonOK.Values.Image = global::ComponentFactory.Krypton.Workspace.Properties.Resources.check2;
     this.kryptonButtonOK.Values.Text = "OK";
     this.kryptonButtonOK.Click += new System.EventHandler(this.OnOkButtonClick);
     //
     // kryptonButtonIgnore
     //
     this.kryptonButtonIgnore.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kryptonButtonIgnore.ButtonStyle = ComponentFactory.Krypton.Toolkit.ButtonStyle.Standalone;
     this.kryptonButtonIgnore.Location = new System.Drawing.Point(353, 10);
     this.kryptonButtonIgnore.Name = "kryptonButtonIgnore";
     this.kryptonButtonIgnore.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
     this.kryptonButtonIgnore.Size = new System.Drawing.Size(74, 25);
     this.kryptonButtonIgnore.TabIndex = 2;
     this.kryptonButtonIgnore.Values.Image = global::ComponentFactory.Krypton.Workspace.Properties.Resources.delete2;
     this.kryptonButtonIgnore.Values.Text = "Ignore";
     this.kryptonButtonIgnore.Click += new System.EventHandler(this.OnIgnoreButtonClick);
     //
     // kryptonPanelBottomBorder
     //
     this.kryptonPanelBottomBorder.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.kryptonPanelBottomBorder.Location = new System.Drawing.Point(0, 327);
     this.kryptonPanelBottomBorder.Name = "kryptonPanelBottomBorder";
     this.kryptonPanelBottomBorder.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
     this.kryptonPanelBottomBorder.PanelBackStyle = ComponentFactory.Krypton.Toolkit.PaletteBackStyle.HeaderPrimary;
     this.kryptonPanelBottomBorder.Size = new System.Drawing.Size(437, 3);
     this.kryptonPanelBottomBorder.TabIndex = 13;
     //
     // kryptonPanelTopBorder
     //
     this.kryptonPanelTopBorder.Dock = System.Windows.Forms.DockStyle.Top;
     this.kryptonPanelTopBorder.Location = new System.Drawing.Point(0, 90);
     this.kryptonPanelTopBorder.Name = "kryptonPanelTopBorder";
     this.kryptonPanelTopBorder.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
     this.kryptonPanelTopBorder.PanelBackStyle = ComponentFactory.Krypton.Toolkit.PaletteBackStyle.HeaderPrimary;
     this.kryptonPanelTopBorder.Size = new System.Drawing.Size(437, 3);
     this.kryptonPanelTopBorder.TabIndex = 14;
     //
     // kryptonPanel1
     //
     this.kryptonPanel1.Controls.Add(this.label1);
     this.kryptonPanel1.Controls.Add(this._msgError);
     this.kryptonPanel1.Controls.Add(this._msgLabel);
     this.kryptonPanel1.Controls.Add(this._keyText);
     this.kryptonPanel1.Controls.Add(this._keyLabel);
     this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel1.Location = new System.Drawing.Point(0, 93);
     this.kryptonPanel1.Name = "kryptonPanel1";
     this.kryptonPanel1.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
     this.kryptonPanel1.PanelBackStyle = ComponentFactory.Krypton.Toolkit.PaletteBackStyle.PanelAlternate;
     this.kryptonPanel1.Size = new System.Drawing.Size(437, 234);
     this.kryptonPanel1.TabIndex = 0;
     //
     // _msgError
     //
     this._msgError.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this._msgError.BackColor = System.Drawing.Color.Transparent;
     this._msgError.ForeColor = System.Drawing.Color.Red;
     this._msgError.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this._msgError.Location = new System.Drawing.Point(88, 138);
     this._msgError.Name = "_msgError";
     this._msgError.Size = new System.Drawing.Size(333, 83);
     this._msgError.TabIndex = 5;
     //
     // _msgLabel
     //
     this._msgLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this._msgLabel.BackColor = System.Drawing.Color.Transparent;
     this._msgLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this._msgLabel.Location = new System.Drawing.Point(10, 10);
     this._msgLabel.Name = "_msgLabel";
     this._msgLabel.Size = new System.Drawing.Size(417, 63);
     this._msgLabel.TabIndex = 4;
     this._msgLabel.Text = "Krypton Suite is not currently licenced. Install your licence by entering the" +
         " serial key and clicking OK.";
     //
     // label1
     //
     this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.BackColor = System.Drawing.Color.Transparent;
     this.label1.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.label1.Location = new System.Drawing.Point(10, 44);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(417, 51);
     this.label1.TabIndex = 6;
     this.label1.Text = "Click Ignore to start a 30 day evaluation period. Once your 30 day evaluation per" +
         "iod expires you will receive this message at design time and a warning message a" +
         "t runtime.";
     //
     // LicenseInstallForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
     this.ClientSize = new System.Drawing.Size(437, 375);
     this.ControlBox = false;
     this.Controls.Add(this.kryptonPanel1);
     this.Controls.Add(this.kryptonPanelTopBorder);
     this.Controls.Add(this.kryptonPanelBottomBorder);
     this.Controls.Add(this.kryptonPanelBottom);
     this.Controls.Add(this.kryptonPanelTop);
     this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "LicenseInstallForm";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Install Krypton Suite Licence";
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanelTop)).EndInit();
     this.kryptonPanelTop.ResumeLayout(false);
     this.kryptonPanelTop.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxRight)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanelBottom)).EndInit();
     this.kryptonPanelBottom.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanelBottomBorder)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanelTopBorder)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
     this.kryptonPanel1.ResumeLayout(false);
     this.kryptonPanel1.PerformLayout();
     this.ResumeLayout(false);
 }
Пример #6
0
 public KryptonLabelProxy(KryptonLabel label)
 {
     _label = label;
 }
Пример #7
0
        public string BuscaRetorno(tcIdentificacaoPrestador Prestador, KryptonLabel lblStatus, ProgressBar ProgresStatus)
        {

            bool parar = false;
            Globais glob = new Globais();
            string sMensagemErro = "";
            int iCountBuscaRet = 0;

            ProgresStatus.Step = 1;
            ProgresStatus.Minimum = 0;
            ProgresStatus.Maximum = 20;
            ProgresStatus.MarqueeAnimationSpeed = 20;
            ProgresStatus.Value = 0;

            try
            {
                for (; ; )
                {
                    ProgresStatus.PerformStep();
                    ProgresStatus.Refresh();
                    lblStatus.Text = "Sistema tentando buscar retorno!!" + Environment.NewLine + "Tentativas: " + iCountBuscaRet.ToString() + " de 21";
                    lblStatus.Refresh();
                    string sRetConsulta = BuscaRetornoWebService(Prestador);
                    XmlDocument xmlRet = new XmlDocument();
                    xmlRet.LoadXml(sRetConsulta);

                    XmlNodeList xNodeList = xmlRet.GetElementsByTagName("ns4:MensagemRetorno");

                    if (xNodeList.Count > 0)
                    {
                        sMensagemErro = "{3}Lote: " + NumeroLote + "{3}{3}Código: {0}{3}{3}Mensagem: {1}{3}{3}Correção: {2}{3}{3}Protocolo: " + Protocolo;

                        foreach (XmlNode node in xNodeList)
                        {
                            sCodigoRetorno = node["ns4:Codigo"].InnerText;

                            if (sCodigoRetorno.Equals("E4") && iCountBuscaRet <= 20)
                            {
                                iCountBuscaRet++;
                            }
                            else
                            {
                                sMensagemErro = string.Format(sMensagemErro, node["ns4:Codigo"].InnerText,
                                                      "Esse RPS ainda não se encontra em nossa base de dados.",
                                                      node["ns4:Correcao"].InnerText, Environment.NewLine);
                                parar = true;
                            }
                        }
                    }
                    else if (xmlRet.GetElementsByTagName("ns3:CompNfse").Count > 0)
                    {
                        this.sCodigoRetorno = "";
                        sMensagemErro = "";
                        Globais objGlobais = new Globais();
                        bool bAlteraDupl = Convert.ToBoolean(objGlobais.LeRegConfig("GravaNumNFseDupl"));


                        for (int i = 0; i < xmlRet.GetElementsByTagName("ns3:CompNfse").Count; i++)
                        {
                            #region Salva Arquivo por arquivo
                            string sPasta = Convert.ToDateTime(xmlRet.GetElementsByTagName("ns4:InfNfse")[i]["ns4:DataEmissao"].InnerText).ToString("MM/yy").Replace("/", "");
                            //Numero da nota no sefaz + numero da sequencia no sistema
                            string sNomeArquivo = sPasta + (xmlRet.GetElementsByTagName("ns4:InfNfse")[i]["ns4:Numero"].InnerText.PadLeft(6, '0'))
                                                 + (xmlRet.GetElementsByTagName("ns4:IdentificacaoRps")[i]["ns4:Numero"].InnerText.PadLeft(6, '0'));

                            XmlDocument xmlSaveNfes = new XmlDocument();
                            xmlSaveNfes.LoadXml(xmlRet.GetElementsByTagName("ns4:Nfse")[i].InnerXml);
                            DirectoryInfo dPastaData = new DirectoryInfo(belStaticPastas.ENVIADOS + "\\Servicos\\" + sPasta);
                            if (!dPastaData.Exists) { dPastaData.Create(); }
                            xmlSaveNfes.Save(belStaticPastas.ENVIADOS + "\\Servicos\\" + sPasta + "\\" + sNomeArquivo + "-nfes.xml");
                            #endregion

                            objNfseRetorno = new TcInfNfse();
                            objNfseRetorno.Numero = xmlRet.GetElementsByTagName("ns4:InfNfse")[i]["ns4:Numero"].InnerText;
                            objNfseRetorno.CodigoVerificacao = xmlRet.GetElementsByTagName("ns4:InfNfse")[i]["ns4:CodigoVerificacao"].InnerText;

                            tcIdentificacaoRps objIdentRps = BuscatcIdentificacaoRps(xmlRet.GetElementsByTagName("ns4:IdentificacaoRps")[i]["ns4:Numero"].InnerText.PadLeft(6, '0'));
                            belGerarXML objBelGeraXml = new belGerarXML();


                            if (belStatic.sNomeEmpresa == "LORENZON")
                            {
                                AlteraDuplicataNumNFse(objIdentRps, xmlRet.GetElementsByTagName("ns4:InfNfse")[i]["ns4:Numero"].InnerText);
                            }

                            if (xmlRet.GetElementsByTagName("ns4:SubstituicaoNfse")[i] != null)
                            {
                                objNfseRetorno.NfseSubstituida = xmlRet.GetElementsByTagName("ns4:SubstituicaoNfse")[i]["ns4:NfseSubstituidora"].InnerText;
                            }
                            objNfseRetorno.IdentificacaoRps = objIdentRps;
                            objListaNfseRetorno.Add(objNfseRetorno);

                        }
                        parar = true;
                    }

                    if (parar) break;
                }
                return sMensagemErro;

            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Пример #8
0
        /****************************************************** MULTI MODE *******************************************************/
        private void InstanciateBatchMultiGraphical(Batch batch)
        {
            TutoLabelMulti.Visible = false;

            // Set navigator page
            Navigator.SelectedIndex = 1;

            // Open creation section
            if (SplitContainer.Panel2Collapsed)
            {
                Form form = (Form)this.Parent;
                form.Size = new System.Drawing.Size(form.Width + 300, form.Height);
                SplitContainer.Panel2Collapsed = false;
                SplitContainer.Panel2.Show();
            }
            else
            {
                BatchNameTextBox.Text = "";
                BatchNameTextBoxMulti.Text = "";
                foreach (BatchElement element in _BatchElements)
                    element.Dispose();
                _BatchElements.Clear();
                foreach (BatchElementMulti element2 in _BatchElementsMulti)
                    element2.Dispose();
                _BatchElementsMulti.Clear();
            }

            // Add graphical elements
            if (batch.Get_Type().Equals("Multi"))
            {
                BatchNameTextBoxMulti.Text = batch.Get_Name();

                foreach (KeyValuePair<Tuple<string, string>, List<Tuple<string, string>>> element in batch.Get_BatchElementsMulti())
                {
                    BatchElementMulti batchElement = new BatchElementMulti(_RegionsList);
                    batchElement.Set_TargetPathTooltip(element.Key.Item1);
                    batchElement.Set_TargetPath(element.Key.Item1);
                    batchElement.Set_FtpRegion(element.Key.Item2);
                    batchElement.FTPComboBox.Text = element.Key.Item2;

                    for (int i = 0; i < element.Value.Count; i++)
                    {
                        if (i == 0)
                        {
                            batchElement.Config.Text = element.Value[0].Item1;
                            batchElement.Get_ConfigsInfo().Add(element.Value[i].Item1, element.Value[i].Item2);
                        }
                        else
                        {
                            batchElement.TutoLabel.Visible = false;
                            batchElement.Set_IdControls(batchElement.Get_IdControls() + 1);

                            batchElement.SuppressButton.Click += SuppressButton_Click;

                            ////////////////
                            // Add graphics
                            // Label "Config"

                            KryptonLabel configLabel = new KryptonLabel();
                            configLabel.Text = "Config : ";
                            configLabel.Tag = batchElement.Get_IdControls();
                            configLabel.Location = new System.Drawing.Point(35, 86 + (batchElement.Get_AdditionalConfigsLabel().Count + 1) * 20);
                            batchElement.GroupBox.Panel.Controls.Add(configLabel);

                            // Label config name
                            Label configNameLabel = new Label();
                            configNameLabel.AutoSize = true;
                            configNameLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));
                            configNameLabel.Text = element.Value[i].Item1;
                            configNameLabel.BackColor = System.Drawing.Color.Transparent;
                            configNameLabel.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
                            configNameLabel.Tag = batchElement.Get_IdControls(); ;
                            configNameLabel.Location = new System.Drawing.Point(94, 86 + (batchElement.Get_AdditionalConfigs().Count + 1) * 20);
                            batchElement.GroupBox.Panel.Controls.Add(configNameLabel);

                            // mini suppress button
                            KryptonButton button = new KryptonButton();
                            button.Tag = batchElement.Get_IdControls();
                            button.ButtonStyle = ComponentFactory.Krypton.Toolkit.ButtonStyle.LowProfile;
                            button.Location = new System.Drawing.Point(10, 88 + (batchElement.Get_AdditionalConfigs().Count + 1) * 20);
                            button.Size = new System.Drawing.Size(16, 16);
                            button.Values.Image = global::Analytics_V2.Properties.Resources.Delete2;
                            button.Click += batchElement.SuppressConfigElement;
                            batchElement.GroupBox.Panel.Controls.Add(button);

                            batchElement.Get_AdditionalConfigsLabel().Add(configLabel);
                            batchElement.Get_AdditionalConfigs().Add(configNameLabel);
                            batchElement.Get_SuppressButtons().Add(button);

                            // Add config to dictionnary
                            batchElement.Get_ConfigsInfo().Add(element.Value[i].Item1, element.Value[i].Item2);

                            batchElement.Height += 20;
                        }
                    }

                    // Add new element to the UC
                    BatchElementsGroupBoxMulti.Panel.Controls.Add(batchElement);
                    batchElement.Dock = DockStyle.Top;
                    batchElement.BringToFront();

                    _BatchElementsMulti.Add(batchElement);
                }
            }
        }
Пример #9
0
        void CreateControls()
        {
            Controls.Clear();
            controls.Clear();
            int[,] widths = CaculateWidth();
            int height = 0;
            int width = 0;
            int x = Padding.Left;
            int y = 5 + Padding.Top;
            int index = 0;
            int headerHeight = (int)DrawHelper.GetFontSize("A", Font).Height;
            foreach (FilterColumn c in Columns)
            {
                if (index >= ColumnCount)
                {
                    y += ControlPadding.Bottom + height;
                    x = Padding.Left;
                    index = 0;
                    height = 0;
                }
                Control ctl = c.CreateControl();
                controls.Add(c, ctl);
                if (c.HeaderText.IsNotEmpty())
                {
                    KryptonLabel header = new KryptonLabel();
                    header.LabelStyle = LabelStyle.NormalPanel;
                    header.Text = c.HeaderText;
                    header.AutoSize = true;
                    header.Location = new Point(x, y);
                    Controls.Add(header);
                    x += (int)widths[0, index] + ControlPadding.Left;
                    ctl.Location = new Point(x + 5, Math.Max(y + (headerHeight - ctl.Height) / 2, y - ControlPadding.Bottom));
                }
                else
                {
                    ctl.Location = new Point(x + 5, y);
                }

                Controls.Add(ctl);
                height = Math.Max(height, ctl.Height);
                x += c.Width + ControlPadding.Right;
                width = Math.Max(x, width);
                index++;
            }
            if (AutoSize)
            {
                Height = height + y + Padding.Bottom - ControlPadding.Bottom + 2;
                AutoScrollMinSize = new Size(width, Height);
            }
            else
                AutoScrollMinSize = Size.Empty;
        }
Пример #10
0
        private void GroupBox_Panel_DragDrop(object sender, DragEventArgs e)
        {
            TreeNode node = (TreeNode)e.Data.GetData(typeof(TreeNode));

            if (node.ImageIndex == 2 && node.Text.Contains(".xml"))
            {
                // If config doesn't exist in the dictionary, add config graphically/in the dictionary
                if (!_ConfigsInfo.ContainsKey(node.Text.Replace(".xml", "")))
                {
                    TutoLabel.Visible = false;
                    _IdControls++;

                    ////////////////
                    // Add graphics
                    // Label "Config"
                    KryptonLabel configLabel = new KryptonLabel();
                    configLabel.Text = "Config : ";
                    configLabel.Tag = _IdControls;
                    configLabel.Location = new System.Drawing.Point(35, 86 + (_AdditionalConfigsLabel.Count + 1) * 20);
                    GroupBox.Panel.Controls.Add(configLabel);

                    // Label config name
                    Label configNameLabel = new Label();
                    configNameLabel.AutoSize = true;
                    configNameLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));
                    configNameLabel.Text = node.Text.Replace(".xml", "");
                    configNameLabel.BackColor = System.Drawing.Color.Transparent;
                    configNameLabel.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
                    configNameLabel.Tag = _IdControls;
                    configNameLabel.Location = new System.Drawing.Point(94, 86 + (_AdditionalConfigs.Count + 1) * 20);
                    GroupBox.Panel.Controls.Add(configNameLabel);

                    // mini suppress button
                    KryptonButton button = new KryptonButton();
                    button.Tag = _IdControls;
                    button.ButtonStyle = ComponentFactory.Krypton.Toolkit.ButtonStyle.LowProfile;
                    button.Location = new System.Drawing.Point(10, 88 + (_AdditionalConfigs.Count + 1) * 20);
                    button.Size = new System.Drawing.Size(16, 16);
                    button.Values.Image = global::Analytics_V2.Properties.Resources.Delete2;
                    button.Click += SuppressConfigElement;
                    GroupBox.Panel.Controls.Add(button);

                    _AdditionalConfigsLabel.Add(configLabel);
                    _AdditionalConfigs.Add(configNameLabel);
                    _SuppressButtons.Add(button);

                    // Add config to dictionnary
                    _ConfigsInfo.Add(node.Text.Replace(".xml", ""), node.FullPath);

                    this.Height += 20;
                }

                else
                {
                    var result = KryptonMessageBox.Show("Config already exists", "Error while adding config",
                             MessageBoxButtons.OK,
                             MessageBoxIcon.Exclamation);
                }
            }
        }
Пример #11
0
 protected override Control InitialControl()
 {
     if (IsScoped)
     {
         Panel ctl = new Panel();
         ctl.BackColor = Color.Transparent;
         KryptonDateTimePicker begin = new KryptonDateTimePicker();
         KryptonDateTimePicker end = new KryptonDateTimePicker();
         KryptonLabel lbl = new KryptonLabel();
         begin.Width = Width / 2 - 7;
         begin.Dock = DockStyle.Left;
         begin.Format = DateTimePickerFormat.Custom;
         begin.CustomFormat = DateTimeFormat;
         end.Width = Width / 2 - 7;
         end.Dock = DockStyle.Right;
         end.Format = DateTimePickerFormat.Custom;
         end.CustomFormat = DateTimeFormat;
         lbl.Text = "-";
         lbl.Dock = DockStyle.Fill;
         lbl.LabelStyle = LabelStyle.NormalPanel;
         ctl.Controls.Add(lbl);
         ctl.Controls.Add(begin);
         ctl.Controls.Add(end);
         ctl.Height = begin.Height;
         return ctl;
     }
     else
     {
         KryptonDateTimePicker ctl = new KryptonDateTimePicker();
         ctl.Format = DateTimePickerFormat.Custom;
         ctl.CustomFormat = DateTimeFormat;
         return ctl;
     }
 }
Пример #12
0
 protected override Control InitialControl()
 {
     if (IsScoped)
     {
         Panel ctl = new Panel();
         ctl.BackColor = Color.Transparent;
         KryptonTextBox begin = new KryptonTextBox();
         KryptonTextBox end = new KryptonTextBox();
         KryptonLabel lbl = new KryptonLabel();
         begin.Width = Width / 2 - 7;
         begin.Dock = DockStyle.Left;
         end.Width = Width / 2 - 7;
         end.Dock = DockStyle.Right;
         lbl.Text = "-";
         lbl.Dock = DockStyle.Fill;
         lbl.LabelStyle = LabelStyle.NormalPanel;
         ctl.Controls.Add(lbl);
         ctl.Controls.Add(begin);
         ctl.Controls.Add(end);
         ctl.Height = begin.Height + 2;
         return ctl;
     }
     else
     {
         KryptonTextBox ctl = new KryptonTextBox();
         return ctl;
     }
 }
Пример #13
0
 private void InitializeComponent()
 {
     this.kpnlButtons            = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.panel1                 = new System.Windows.Forms.Panel();
     this.kryptonPanel1          = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kryptonSplitContainer1 = new ComponentFactory.Krypton.Toolkit.KryptonSplitContainer();
     this.kpgControlProperties   = new KryptonToolkitSuiteExtendedCore.KryptonPropertyGrid();
     this.kryptonPanel2          = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kpnlInstructions       = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.klblInstructions       = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.kbtnClose              = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     ((System.ComponentModel.ISupportInitialize)(this.kpnlButtons)).BeginInit();
     this.kpnlButtons.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
     this.kryptonPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1.Panel1)).BeginInit();
     this.kryptonSplitContainer1.Panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1.Panel2)).BeginInit();
     this.kryptonSplitContainer1.Panel2.SuspendLayout();
     this.kryptonSplitContainer1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.kpnlInstructions)).BeginInit();
     this.kpnlInstructions.SuspendLayout();
     this.SuspendLayout();
     //
     // kpnlButtons
     //
     this.kpnlButtons.Controls.Add(this.kbtnClose);
     this.kpnlButtons.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.kpnlButtons.Location = new System.Drawing.Point(0, 725);
     this.kpnlButtons.Name     = "kpnlButtons";
     this.kpnlButtons.Size     = new System.Drawing.Size(1196, 50);
     this.kpnlButtons.TabIndex = 0;
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.SystemColors.ControlDarkDark;
     this.panel1.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this.panel1.Location  = new System.Drawing.Point(0, 722);
     this.panel1.Name      = "panel1";
     this.panel1.Size      = new System.Drawing.Size(1196, 3);
     this.panel1.TabIndex  = 1;
     //
     // kryptonPanel1
     //
     this.kryptonPanel1.Controls.Add(this.kryptonSplitContainer1);
     this.kryptonPanel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
     this.kryptonPanel1.Name     = "kryptonPanel1";
     this.kryptonPanel1.Size     = new System.Drawing.Size(1196, 722);
     this.kryptonPanel1.TabIndex = 2;
     //
     // kryptonSplitContainer1
     //
     this.kryptonSplitContainer1.Cursor   = System.Windows.Forms.Cursors.Default;
     this.kryptonSplitContainer1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonSplitContainer1.Location = new System.Drawing.Point(0, 0);
     this.kryptonSplitContainer1.Name     = "kryptonSplitContainer1";
     //
     // kryptonSplitContainer1.Panel1
     //
     this.kryptonSplitContainer1.Panel1.Controls.Add(this.kpgControlProperties);
     //
     // kryptonSplitContainer1.Panel2
     //
     this.kryptonSplitContainer1.Panel2.Controls.Add(this.kryptonPanel2);
     this.kryptonSplitContainer1.Panel2.Controls.Add(this.kpnlInstructions);
     this.kryptonSplitContainer1.Size             = new System.Drawing.Size(1196, 722);
     this.kryptonSplitContainer1.SplitterDistance = 398;
     this.kryptonSplitContainer1.TabIndex         = 1;
     //
     // kpgControlProperties
     //
     this.kpgControlProperties.BackColor         = System.Drawing.SystemColors.ActiveCaption;
     this.kpgControlProperties.CategoryForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(57)))), ((int)(((byte)(91)))));
     this.kpgControlProperties.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.kpgControlProperties.HelpBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(187)))), ((int)(((byte)(206)))), ((int)(((byte)(230)))));
     this.kpgControlProperties.HelpForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(57)))), ((int)(((byte)(91)))));
     this.kpgControlProperties.LineColor     = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(196)))), ((int)(((byte)(216)))));
     this.kpgControlProperties.Location      = new System.Drawing.Point(0, 0);
     this.kpgControlProperties.Name          = "kpgControlProperties";
     this.kpgControlProperties.Size          = new System.Drawing.Size(398, 722);
     this.kpgControlProperties.TabIndex      = 0;
     this.kpgControlProperties.ViewBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(187)))), ((int)(((byte)(206)))), ((int)(((byte)(230)))));
     //
     // kryptonPanel2
     //
     this.kryptonPanel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel2.Location = new System.Drawing.Point(0, 113);
     this.kryptonPanel2.Name     = "kryptonPanel2";
     this.kryptonPanel2.Size     = new System.Drawing.Size(793, 609);
     this.kryptonPanel2.TabIndex = 2;
     //
     // kpnlInstructions
     //
     this.kpnlInstructions.Controls.Add(this.klblInstructions);
     this.kpnlInstructions.Dock     = System.Windows.Forms.DockStyle.Top;
     this.kpnlInstructions.Location = new System.Drawing.Point(0, 0);
     this.kpnlInstructions.Name     = "kpnlInstructions";
     this.kpnlInstructions.Size     = new System.Drawing.Size(793, 113);
     this.kpnlInstructions.TabIndex = 1;
     //
     // klblInstructions
     //
     this.klblInstructions.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.klblInstructions.Location = new System.Drawing.Point(0, 0);
     this.klblInstructions.Name     = "klblInstructions";
     this.klblInstructions.Size     = new System.Drawing.Size(793, 113);
     this.klblInstructions.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblInstructions.TabIndex    = 0;
     this.klblInstructions.Values.Text = "kryptonLabel1";
     //
     // kbtnClose
     //
     this.kbtnClose.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnClose.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.kbtnClose.Location     = new System.Drawing.Point(1091, 11);
     this.kbtnClose.Name         = "kbtnClose";
     this.kbtnClose.Size         = new System.Drawing.Size(90, 25);
     this.kbtnClose.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnClose.TabIndex    = 0;
     this.kbtnClose.Values.Text = "&Close";
     this.kbtnClose.Click      += new System.EventHandler(this.kbtnClose_Click);
     //
     // ControlContainer
     //
     this.Controls.Add(this.kryptonPanel1);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.kpnlButtons);
     this.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Name = "ControlContainer";
     this.Size = new System.Drawing.Size(1196, 775);
     ((System.ComponentModel.ISupportInitialize)(this.kpnlButtons)).EndInit();
     this.kpnlButtons.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
     this.kryptonPanel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1.Panel1)).EndInit();
     this.kryptonSplitContainer1.Panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1.Panel2)).EndInit();
     this.kryptonSplitContainer1.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1)).EndInit();
     this.kryptonSplitContainer1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.kpnlInstructions)).EndInit();
     this.kpnlInstructions.ResumeLayout(false);
     this.kpnlInstructions.PerformLayout();
     this.ResumeLayout(false);
 }
Пример #14
0
        public string BuscaRetorno(tcIdentificacaoPrestador Prestador, KryptonLabel lblStatus, ProgressBar ProgresStatus)
        {

            bool parar = false;
            string sMensagemErro = "";
            int iCountBuscaRet = 1;

            ProgresStatus.Step = 1;
            ProgresStatus.Minimum = 0;
            ProgresStatus.Maximum = 20;
            ProgresStatus.MarqueeAnimationSpeed = 20;
            ProgresStatus.Value = 0;

            try
            {
                for (; ; )
                {
                    ProgresStatus.PerformStep();
                    ProgresStatus.Refresh();
                    lblStatus.Text = "O Sistema está tentando buscar Retorno..." + Environment.NewLine + "Tentativa " + iCountBuscaRet.ToString() + " de 21";
                    lblStatus.Refresh();
                    string sRetConsulta = BuscaRetornoWebService(Prestador);
                    XmlDocument xmlRet = new XmlDocument();
                    xmlRet.LoadXml(sRetConsulta);

                    XmlNodeList xNodeList = xmlRet.GetElementsByTagName((Acesso.tipoWsNfse == Acesso.TP_WS_NFSE.GINFES ? "ns4:" : "") + "MensagemRetorno");

                    if (xNodeList.Count > 0)
                    {
                        sMensagemErro = "{3}Lote: " + NumeroLote + "{3}{3}Código: {0}{3}{3}Mensagem: {1}{3}{3}Correção: {2}{3}{3}Protocolo: " + Protocolo;

                        foreach (XmlNode node in xNodeList)
                        {
                            sCodigoRetorno = node[(Acesso.tipoWsNfse == Acesso.TP_WS_NFSE.GINFES ? "ns4:" : "") + "Codigo"].InnerText;

                            if (sCodigoRetorno.Equals("E4") && iCountBuscaRet <= 20)
                            {
                                iCountBuscaRet++;
                            }
                            else
                            {
                                sMensagemErro = string.Format(sMensagemErro, node[(Acesso.tipoWsNfse == Acesso.TP_WS_NFSE.GINFES ? "ns4:" : "") + "Codigo"].InnerText,
                                                      "Esse RPS ainda não se encontra em nossa base de dados.",
                                                      node[(Acesso.tipoWsNfse == Acesso.TP_WS_NFSE.GINFES ? "ns4:" : "") + "Correcao"].InnerText, Environment.NewLine);
                                parar = true;
                            }
                        }
                    }
                    else if (xmlRet.GetElementsByTagName((Acesso.tipoWsNfse == Acesso.TP_WS_NFSE.GINFES ? "ns3:" : "") + "CompNfse").Count > 0)
                    {
                        this.sCodigoRetorno = "";
                        sMensagemErro = "";
                        bool bAlteraDupl = Convert.ToBoolean(Acesso.GRAVA_NUM_NF_DUPL);


                        for (int i = 0; i < xmlRet.GetElementsByTagName((Acesso.tipoWsNfse == Acesso.TP_WS_NFSE.GINFES ? "ns3:" : "") + "CompNfse").Count; i++)
                        {
                            #region Salva Arquivo por arquivo
                            string sPasta = Convert.ToDateTime(xmlRet.GetElementsByTagName((Acesso.tipoWsNfse == Acesso.TP_WS_NFSE.GINFES ? "ns4:" : "") + "InfNfse")[i][(Acesso.tipoWsNfse == Acesso.TP_WS_NFSE.GINFES ? "ns4:" : "") + "DataEmissao"].InnerText).ToString("MM/yy").Replace("/", "");
                            //Numero da nota no sefaz + numero da sequencia no sistema
                            string sNomeArquivo = sPasta + (xmlRet.GetElementsByTagName((Acesso.tipoWsNfse == Acesso.TP_WS_NFSE.GINFES ? "ns4:" : "") + "InfNfse")[i][(Acesso.tipoWsNfse == Acesso.TP_WS_NFSE.GINFES ? "ns4:" : "") + "Numero"].InnerText.PadLeft(6, '0'))
                                                 + (xmlRet.GetElementsByTagName((Acesso.tipoWsNfse == Acesso.TP_WS_NFSE.GINFES ? "ns4:" : "") + "IdentificacaoRps")[i][(Acesso.tipoWsNfse == Acesso.TP_WS_NFSE.GINFES ? "ns4:" : "") + "Numero"].InnerText.PadLeft(6, '0'));

                            XmlDocument xmlSaveNfes = new XmlDocument();
                            xmlSaveNfes.LoadXml(xmlRet.GetElementsByTagName((Acesso.tipoWsNfse == Acesso.TP_WS_NFSE.GINFES ? "ns4:" : "") + "Nfse")[i].InnerXml);
                            DirectoryInfo dPastaData = new DirectoryInfo(Pastas.ENVIADOS + "\\Servicos\\" + sPasta);
                            if (!dPastaData.Exists) { dPastaData.Create(); }
                            xmlSaveNfes.Save(Pastas.ENVIADOS + "\\Servicos\\" + sPasta + "\\" + sNomeArquivo + "-nfes.xml");
                            #endregion

                            objNfseRetorno = new TcInfNfse();
                            objNfseRetorno.Numero = xmlRet.GetElementsByTagName((Acesso.tipoWsNfse == Acesso.TP_WS_NFSE.GINFES ? "ns4:" : "") + "InfNfse")[i][(Acesso.tipoWsNfse == Acesso.TP_WS_NFSE.GINFES ? "ns4:" : "") + "Numero"].InnerText;
                            objNfseRetorno.CodigoVerificacao = xmlRet.GetElementsByTagName((Acesso.tipoWsNfse == Acesso.TP_WS_NFSE.GINFES ? "ns4:" : "") + "InfNfse")[i][(Acesso.tipoWsNfse == Acesso.TP_WS_NFSE.GINFES ? "ns4:" : "") + "CodigoVerificacao"].InnerText;

                            tcIdentificacaoRps objIdentRps = BuscatcIdentificacaoRps(xmlRet.GetElementsByTagName((Acesso.tipoWsNfse == Acesso.TP_WS_NFSE.GINFES ? "ns4:" : "") + "IdentificacaoRps")[i][(Acesso.tipoWsNfse == Acesso.TP_WS_NFSE.GINFES ? "ns4:" : "") + "Numero"].InnerText.PadLeft(6, '0'));

                            string sNotaFis = xmlRet.GetElementsByTagName((Acesso.tipoWsNfse == Acesso.TP_WS_NFSE.GINFES ? "ns4:" : "") + "InfNfse")[i][(Acesso.tipoWsNfse == Acesso.TP_WS_NFSE.GINFES ? "ns4:" : "") + "Numero"].InnerText;
                            if (Acesso.NM_EMPRESA.Equals("LORENZON"))
                            {
                                AlteraDuplicataNumNFse(objIdentRps, sNotaFis);
                            }

                            if (Acesso.NM_EMPRESA.Equals("FORMINGP"))
                            {
                                daoDuplicata objdaodup = new daoDuplicata();
                                objdaodup.BuscaVencto(objIdentRps.Nfseq, sNotaFis, objIdentRps.Numero);
                            }

                            if (xmlRet.GetElementsByTagName((Acesso.tipoWsNfse == Acesso.TP_WS_NFSE.GINFES ? "ns4:" : "") + "SubstituicaoNfse")[i] != null)
                            {
                                objNfseRetorno.NfseSubstituida = xmlRet.GetElementsByTagName((Acesso.tipoWsNfse == Acesso.TP_WS_NFSE.GINFES ? "ns4:" : "") + "SubstituicaoNfse")[i][(Acesso.tipoWsNfse == Acesso.TP_WS_NFSE.GINFES ? "ns4:" : "") + "NfseSubstituidora"].InnerText;
                            }
                            objNfseRetorno.IdentificacaoRps = objIdentRps;
                            objListaNfseRetorno.Add(objNfseRetorno);

                        }
                        parar = true;
                    }

                    if (parar) break;
                }
                return sMensagemErro;

            }
            catch (Exception ex)
            {
                throw ex;
            }
        }