Exemple #1
0
        void txt_city_NewEntryNeeded(object sender, string pValue)
        {
            if (fscity == null)
            {
                fscity = new FCity();
            }
            Parent.Controls.Add(fscity);
            fscity.Dock = DockStyle.Fill;
            fscity.Show();
            fscity.BringToFront();
            fscity.Focus();

            fscity.SetAction(BtnEvent.New, null);
            fscity.SetFocus();
        }
Exemple #2
0
        void txt_city_NewEntryNeeded(object sender, string pValue)
        {
            if (xcity == null)
            {
                xcity = new FCity();
                xcity.FCity_NeedToRefresh += City_NeedToRefresh;
            }
            this.Parent.Controls.Add(xcity);
            xcity.Dock = DockStyle.Fill;
            xcity.Show();
            xcity.BringToFront();
            xcity.Focus();

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