示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            bool transparancy, needed;

            transparancy = chbTransparancy.Checked;
            needed       = chbNeeded.Checked;
            object[] value = Form1.GetCommonData(txtName, txtCloth, txtPrice, txtLength, cmbColor);
            if (value != null)
            {
                Sleeves dress = new Sleeves(transparancy, needed, (string)value[0], (string)value[1], (int)value[2], (double)value[3], (CatalogItem.TColor)value[4]);
                Add_Display(dress, ObjectIndex);
                this.Close();
            }
        }
示例#2
0
 public Top(Sleeves sleeves, TNecklineType necklinetype, string name, string cloth, int length, double price, TColor color) : base(name, cloth, length, price, color)
 {
     this.sleeves      = sleeves;
     this.NecklineType = necklinetype;
     this.Category     = TCategorys.Top;
 }
示例#3
0
 public Outwear(bool isbelt, TFastenerType fastenertype, TCollarType collartype, Sleeves sleeves, TNecklineType necklinetype, string name, string cloth, int length, double price, TColor color) : base(sleeves, necklinetype, name, cloth, length, price, color)
 {
     this.isBelt       = isbelt;
     this.FastenerType = fastenertype;
     this.CollarType   = collartype;
     this.Category     = TCategorys.Outwear;
 }