示例#1
0
 private void AddItem2ListViewForm(string ItemText)
 {
     if (!this.listViewForm.InvokeRequired)
     {
         string[]     strArray = ItemText.Split(new char[] { '^' });
         ListViewItem item     = new ListViewItem(strArray[0]);
         string       str      = "";
         for (int i = 1; i < strArray.Length; i++)
         {
             if (!string.IsNullOrEmpty(str))
             {
                 str = str + "^";
             }
             str = str + strArray[i];
         }
         item.SubItems.Add(str);
         this.listViewForm.Items.Add(item);
         this.listViewForm.Refresh();
     }
     else
     {
         dd method = new dd(this.AddItem2ListViewForm);
         base.Invoke(method, new object[] { ItemText });
     }
 }
示例#2
0
        public override global::System.Data.DataSet Clone()
        {
            dd cln = ((dd)(base.Clone()));

            cln.InitVars();
            cln.SchemaSerializationMode = this.SchemaSerializationMode;
            return(cln);
        }
示例#3
0
        static void Main(string[] args)
        {
            Program p = new Program();

            del d = new del(p.show);

            d();

            del dd = new del(showme);

            dd();

            List <Employee> ll = new List <Employee>()
            {
                new Employee()
                {
                    id = 1, name = "kjkjb", sal = 254
                },
                new Employee()
                {
                    id = 2, name = "aaaaa", sal = 256444
                },
                new Employee()
                {
                    id = 7, name = "bbbbb", sal = 2544
                }
            };


            verificaton v = new verificaton(p.doverify);

            Employee e = new Employee();

            e.verify(ll, v);

            multicast m = new multicast(aaa);

            m += bbb;

            string ss = m(" SI ");

            Console.WriteLine(ss);


            // anonymous

            dd ddd = (string a) =>
            {
                return(a);
            };

            string zz = ddd("ajshvassjhjhkvj");

            Console.WriteLine(zz);
        }
示例#4
0
        static void main()
        {
            dd d = delegate(string a)
            {
                return("a");
            };

            string aa = d("hckdjkjd");

            Console.WriteLine(aa);
        }
示例#5
0
 private void AddItem2listViewAdminEntrance(string ItemText)
 {
     if (!this.listViewAdminEntrance.InvokeRequired)
     {
         this.listViewAdminEntrance.Items.Add(ItemText);
     }
     else
     {
         dd method = new dd(this.AddItem2listViewAdminEntrance);
         base.Invoke(method, new object[] { ItemText });
     }
 }
示例#6
0
        public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs)
        {
            dd ds = new dd();

            global::System.Xml.Schema.XmlSchemaComplexType type     = new global::System.Xml.Schema.XmlSchemaComplexType();
            global::System.Xml.Schema.XmlSchemaSequence    sequence = new global::System.Xml.Schema.XmlSchemaSequence();
            global::System.Xml.Schema.XmlSchemaAny         any      = new global::System.Xml.Schema.XmlSchemaAny();
            any.Namespace = ds.Namespace;
            sequence.Items.Add(any);
            type.Particle = sequence;
            global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
            if (xs.Contains(dsSchema.TargetNamespace))
            {
                global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
                global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
                try {
                    global::System.Xml.Schema.XmlSchema schema = null;
                    dsSchema.Write(s1);
                    for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext();)
                    {
                        schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
                        s2.SetLength(0);
                        schema.Write(s2);
                        if ((s1.Length == s2.Length))
                        {
                            s1.Position = 0;
                            s2.Position = 0;
                            for (; ((s1.Position != s1.Length) &&
                                    (s1.ReadByte() == s2.ReadByte()));)
                            {
                                ;
                            }
                            if ((s1.Position == s1.Length))
                            {
                                return(type);
                            }
                        }
                    }
                }
                finally {
                    if ((s1 != null))
                    {
                        s1.Close();
                    }
                    if ((s2 != null))
                    {
                        s2.Close();
                    }
                }
            }
            xs.Add(dsSchema);
            return(type);
        }
示例#7
0
 : dsl is BankingFree <A> .DepositAccountDetails dd?GetDepositAccountDetails(dd, bank)
     : dsl is BankingFree <A> .BankTransactions bt?GetBankTransactions(bt, bank)
示例#8
0
        public void CanConstruct()
        {
            var instance = new dd();

            Assert.That(instance, Is.Not.Null);
        }
示例#9
0
 public void SetUp()
 {
     _testClass = new dd();
 }