示例#1
0
        private void textBox1_DoubleClick(object sender, EventArgs e)
        {
            textBox1.Focus();

            if (PanelUserKey == null)
            {
                PanelUserKey = new UserKey(textBox1);
                Point p = textBox1.PointToScreen(new Point(textBox1.Left, textBox1.Top));
                PanelUserKey.Top    = p.Y + textBox1.Height;
                PanelUserKey.Left   = textBox1.Left;
                PanelUserKey.Parent = this;
                PanelUserKey.BringToFront();
            }
            else
            {
                PanelUserKey.Visible = true;
            }
        }
示例#2
0
        private void FormRaschet_Shown(object sender, EventArgs e)
        {
            //MessageBox.Show(Sale.TypeSale.ToString());
            if (Sale.TypeSale == 1)
            {
                textBox1.Visible = false;
                label1.Visible   = false;
                label2.Visible   = false;
                label6.Text      = "Сумма возврата";
            }
            else
            {
                PanelUserKey = new UserKey(textBox1, false);

                //Point p = textBox1.PointToScreen(new Point(textBox1.Left, textBox1.Top));
                PanelUserKey.Top    = textBox1.Top + textBox1.Height;
                PanelUserKey.Left   = textBox1.Left;
                PanelUserKey.Parent = this;
                PanelUserKey.BringToFront();
            }
            SummDocument.Text = Summa.ToString("0.00");
        }