コード例 #1
0
        void addService_paneClose(object sender, EventArgs e)
        {
            AddServices a     = sender as AddServices;
            int         index = 0;

            if (addServices.Contains(a))
            {
                index = addServices.IndexOf(a);
            }

            int   length           = addServices.Count;
            Point previousLocation = Point.Empty;

            for (int i = 0; i < length; i++)
            {
                if (i > index)
                {
                    addServices[i].NewLocation = new Point(addServices[i].Location.X, computeForY(i));
                }
            }

            addServices.RemoveAt(index);
            computeTotalAmountWithService();
            updateY();
        }
コード例 #2
0
        void addService_SubTotalCompute(object sender, EventArgs e)
        {
            AddServices addService = sender as AddServices;

            lblPOSmsg.Text = string.Format("{0} x{1} @{2}", addService.getServiceNameSize(),
                                           addService.Qty, addService.Subtotal);

            computeTotalAmountWithService();
        }