Ejemplo n.º 1
0
 public TaskWindowBuy(int inId, int inAmount, Buy_Blank inParent, int key)
 {
     locId     = inId;
     locAmount = inAmount;
     locKey    = key;
     Parent    = inParent;
     InitializeComponent();
 }
Ejemplo n.º 2
0
        public PositionBlankBuy(int inId, string inNames, int inAmount, int inProductId, double inPrice, Buy_Blank inParent, int inIsLeft)
        {
            Id        = inId;
            Names     = inNames;
            Amount    = inAmount;
            ProductId = inProductId;
            LocParent = inParent;
            Price     = inPrice;
            IsLeft    = inIsLeft;

            InitializeComponent();
            AmountBlank.Text = Convert.ToString(Amount);
            NameBlank.Text   = Names;
        }
Ejemplo n.º 3
0
 private void Accept_MouseDown(object sender, MouseButtonEventArgs e)
 {
     if (locKey == 0)
     {
         if (Parent.IsSale == 0)
         {
             Buy_Blank BB = Parent;
             BB.Buff = new ChangeInfo
             {
                 Id     = locId,
                 Amount = Convert.ToInt32(DataField.Text)
             };
             this.Close();
         }
         if (Convert.ToInt32(DataField.Text) > 0)
         {
             Buy_Blank BB = Parent;
             BB.Buff = new ChangeInfo
             {
                 Id     = locId,
                 Amount = Convert.ToInt32(DataField.Text)
             };
             this.Close();
         }
         return;
     }
     if (locKey == 1)
     {
         if (Convert.ToInt32(DataField.Text) > 0 && locAmount >= Convert.ToInt32(DataField.Text))
         {
             Buy_Blank BB = Parent;
             BB.ChangeCourtAmount = Convert.ToInt32(DataField.Text);
             this.Close();
         }
         return;
     }
 }