Example #1
0
            public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs)
            {
                System.Xml.Schema.XmlSchemaComplexType type     = new System.Xml.Schema.XmlSchemaComplexType();
                System.Xml.Schema.XmlSchemaSequence    sequence = new System.Xml.Schema.XmlSchemaSequence();
                vistaForm ds = new vistaForm();

                xs.Add(ds.GetSchemaSerializable());
                System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny();
                any1.Namespace       = "http://www.w3.org/2001/XMLSchema";
                any1.MinOccurs       = new decimal(0);
                any1.MaxOccurs       = decimal.MaxValue;
                any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
                sequence.Items.Add(any1);
                System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny();
                any2.Namespace       = "urn:schemas-microsoft-com:xml-diffgram-v1";
                any2.MinOccurs       = new decimal(1);
                any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
                sequence.Items.Add(any2);
                System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute();
                attribute1.Name       = "namespace";
                attribute1.FixedValue = ds.Namespace;
                type.Attributes.Add(attribute1);
                System.Xml.Schema.XmlSchemaAttribute attribute2 = new System.Xml.Schema.XmlSchemaAttribute();
                attribute2.Name       = "tableTypeName";
                attribute2.FixedValue = "languageDataTable";
                type.Attributes.Add(attribute2);
                type.Particle = sequence;
                return(type);
            }
Example #2
0
        public override System.Data.DataSet Clone()
        {
            vistaForm cln = ((vistaForm)(base.Clone()));

            cln.InitVars();
            cln.SchemaSerializationMode = this.SchemaSerializationMode;
            return(cln);
        }
Example #3
0
        public static System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(System.Xml.Schema.XmlSchemaSet xs)
        {
            vistaForm ds = new vistaForm();

            System.Xml.Schema.XmlSchemaComplexType type     = new System.Xml.Schema.XmlSchemaComplexType();
            System.Xml.Schema.XmlSchemaSequence    sequence = new System.Xml.Schema.XmlSchemaSequence();
            xs.Add(ds.GetSchemaSerializable());
            System.Xml.Schema.XmlSchemaAny any = new System.Xml.Schema.XmlSchemaAny();
            any.Namespace = ds.Namespace;
            sequence.Items.Add(any);
            type.Particle = sequence;
            return(type);
        }
Example #4
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Frm_language_lista));
     this.dataGrid1       = new System.Windows.Forms.DataGrid();
     this.label1          = new System.Windows.Forms.Label();
     this.label2          = new System.Windows.Forms.Label();
     this.textBox1        = new System.Windows.Forms.TextBox();
     this.textBox2        = new System.Windows.Forms.TextBox();
     this.DS              = new vistaForm();
     this.MetaDataDetail  = new System.Windows.Forms.GroupBox();
     this.pictureBox1     = new System.Windows.Forms.PictureBox();
     this.images          = new System.Windows.Forms.ImageList(this.components);
     this.MetaDataToolBar = new System.Windows.Forms.ToolBar();
     this.seleziona       = new System.Windows.Forms.ToolBarButton();
     this.impostaricerca  = new System.Windows.Forms.ToolBarButton();
     this.effettuaricerca = new System.Windows.Forms.ToolBarButton();
     this.modifica        = new System.Windows.Forms.ToolBarButton();
     this.inserisci       = new System.Windows.Forms.ToolBarButton();
     this.inseriscicopia  = new System.Windows.Forms.ToolBarButton();
     this.elimina         = new System.Windows.Forms.ToolBarButton();
     this.Salva           = new System.Windows.Forms.ToolBarButton();
     this.aggiorna        = new System.Windows.Forms.ToolBarButton();
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.DS)).BeginInit();
     this.MetaDataDetail.SuspendLayout();
     this.SuspendLayout();
     //
     // dataGrid1
     //
     this.dataGrid1.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.dataGrid1.DataMember      = "";
     this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dataGrid1.Location        = new System.Drawing.Point(16, 56);
     this.dataGrid1.Name            = "dataGrid1";
     this.dataGrid1.Size            = new System.Drawing.Size(256, 144);
     this.dataGrid1.TabIndex        = 19;
     this.dataGrid1.Tag             = "language.lista";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(16, 16);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(136, 16);
     this.label1.TabIndex = 20;
     this.label1.Text     = "Codice della Lingua:";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(16, 88);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(144, 16);
     this.label2.TabIndex = 21;
     this.label2.Text     = "Nome della Lingua:";
     //
     // textBox1
     //
     this.textBox1.Location = new System.Drawing.Point(16, 40);
     this.textBox1.Name     = "textBox1";
     this.textBox1.TabIndex = 1;
     this.textBox1.Tag      = "language.idlanguage";
     this.textBox1.Text     = "";
     //
     // textBox2
     //
     this.textBox2.Location = new System.Drawing.Point(16, 112);
     this.textBox2.Name     = "textBox2";
     this.textBox2.Size     = new System.Drawing.Size(208, 20);
     this.textBox2.TabIndex = 2;
     this.textBox2.Tag      = "language.description";
     this.textBox2.Text     = "";
     //
     // DS
     //
     this.DS.DataSetName = "vistaForm";
     this.DS.Locale      = new System.Globalization.CultureInfo("en-US");
     //
     // MetaDataDetail
     //
     this.MetaDataDetail.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.MetaDataDetail.Controls.Add(this.pictureBox1);
     this.MetaDataDetail.Controls.Add(this.textBox1);
     this.MetaDataDetail.Controls.Add(this.label2);
     this.MetaDataDetail.Controls.Add(this.textBox2);
     this.MetaDataDetail.Controls.Add(this.label1);
     this.MetaDataDetail.Location = new System.Drawing.Point(280, 56);
     this.MetaDataDetail.Name     = "MetaDataDetail";
     this.MetaDataDetail.Size     = new System.Drawing.Size(320, 144);
     this.MetaDataDetail.TabIndex = 32;
     this.MetaDataDetail.TabStop  = false;
     this.MetaDataDetail.Text     = "Dettaglio";
     //
     // pictureBox1
     //
     this.pictureBox1.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.pictureBox1.Image       = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
     this.pictureBox1.Location    = new System.Drawing.Point(240, 16);
     this.pictureBox1.Name        = "pictureBox1";
     this.pictureBox1.Size        = new System.Drawing.Size(72, 120);
     this.pictureBox1.TabIndex    = 24;
     this.pictureBox1.TabStop     = false;
     //
     // images
     //
     this.images.ImageSize        = new System.Drawing.Size(30, 30);
     this.images.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("images.ImageStream")));
     this.images.TransparentColor = System.Drawing.Color.Transparent;
     //
     // MetaDataToolBar
     //
     this.MetaDataToolBar.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
     this.MetaDataToolBar.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this.seleziona,
         this.impostaricerca,
         this.effettuaricerca,
         this.modifica,
         this.inserisci,
         this.inseriscicopia,
         this.elimina,
         this.Salva,
         this.aggiorna
     });
     this.MetaDataToolBar.ButtonSize     = new System.Drawing.Size(56, 56);
     this.MetaDataToolBar.DropDownArrows = true;
     this.MetaDataToolBar.ImageList      = this.images;
     this.MetaDataToolBar.Location       = new System.Drawing.Point(0, 0);
     this.MetaDataToolBar.Name           = "MetaDataToolBar";
     this.MetaDataToolBar.ShowToolTips   = true;
     this.MetaDataToolBar.Size           = new System.Drawing.Size(610, 106);
     this.MetaDataToolBar.TabIndex       = 33;
     this.MetaDataToolBar.Tag            = "";
     //
     // seleziona
     //
     this.seleziona.ImageIndex  = 1;
     this.seleziona.Tag         = "mainselect";
     this.seleziona.Text        = "Seleziona";
     this.seleziona.ToolTipText = "Seleziona l\'elemento desiderato";
     //
     // impostaricerca
     //
     this.impostaricerca.ImageIndex  = 10;
     this.impostaricerca.Tag         = "mainsetsearch";
     this.impostaricerca.Text        = "Imposta Ricerca";
     this.impostaricerca.ToolTipText = "Imposta una nuova ricerca";
     //
     // effettuaricerca
     //
     this.effettuaricerca.ImageIndex  = 12;
     this.effettuaricerca.Tag         = "maindosearch";
     this.effettuaricerca.Text        = "Effettua Ricerca";
     this.effettuaricerca.ToolTipText = "Cerca in base ai dati immessi";
     //
     // modifica
     //
     this.modifica.ImageIndex  = 6;
     this.modifica.Tag         = "mainedit";
     this.modifica.Text        = "Modifica";
     this.modifica.ToolTipText = "Modifica l\'elemento selezionato";
     //
     // inserisci
     //
     this.inserisci.ImageIndex  = 0;
     this.inserisci.Tag         = "maininsert";
     this.inserisci.Text        = "Inserisci";
     this.inserisci.ToolTipText = "Inserisci un nuovo elemento";
     //
     // inseriscicopia
     //
     this.inseriscicopia.ImageIndex  = 9;
     this.inseriscicopia.Tag         = "maininsertcopy";
     this.inseriscicopia.Text        = "Inserisci copia";
     this.inseriscicopia.ToolTipText = "Inserisci un nuovo elemento copiando i dati da quello attuale";
     //
     // elimina
     //
     this.elimina.ImageIndex  = 3;
     this.elimina.Tag         = "maindelete";
     this.elimina.Text        = "Elimina";
     this.elimina.ToolTipText = "Elimina l\'elemento selezionato";
     //
     // Salva
     //
     this.Salva.ImageIndex  = 2;
     this.Salva.Tag         = "mainsave";
     this.Salva.Text        = "Salva";
     this.Salva.ToolTipText = "Salva le modifiche effettuate";
     //
     // aggiorna
     //
     this.aggiorna.ImageIndex = 13;
     this.aggiorna.Tag        = "mainrefresh";
     this.aggiorna.Text       = "Aggiorna";
     //
     // frmlingualista
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(610, 208);
     this.Controls.Add(this.MetaDataDetail);
     this.Controls.Add(this.dataGrid1);
     this.Controls.Add(this.MetaDataToolBar);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Name            = "frmlingualista";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "frmlingualista";
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.DS)).EndInit();
     this.MetaDataDetail.ResumeLayout(false);
     this.ResumeLayout(false);
 }