Пример #1
0
        void Txt_salestype_NewEntryNeeded(object sender, string pValue)
        {
            if (fssalestype == null)
            {
                fssalestype = new FSalestype();
            }
            Parent.Controls.Add(fssalestype);
            fssalestype.Dock = DockStyle.Fill;
            fssalestype.Show();
            fssalestype.BringToFront();
            fssalestype.Focus();

            fssalestype.SetAction(BtnEvent.New, null);
            fssalestype.SetFocus();
        }
Пример #2
0
        void txt_salestype_NewEntryNeeded(object sender, string pValue)
        {
            if (xsalestype == null)
            {
                xsalestype = new FSalestype();
                xsalestype.FSalestype_NeedToRefresh += Salestype_NeedToRefresh;
            }
            this.Parent.Controls.Add(xsalestype);
            xsalestype.Dock = DockStyle.Fill;
            xsalestype.Show();
            xsalestype.BringToFront();
            xsalestype.Focus();

            xsalestype.SetAction(BtnEvent.New, null);
            xsalestype.SetFocus();
            xsalestype.setname(pValue);
        }