Ejemplo n.º 1
0
 private void BuildForm()
 {
     if (fcity == null)
     {
         fcity = new FCity();
     }
     fcity.FCity_NeedToRefresh += VCity_NeedToRefresh;
     Parent.Controls.Add(fcity);
     fcity.Dock = DockStyle.Fill;
     fcity.Show();
     fcity.BringToFront();
 }
Ejemplo n.º 2
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();
        }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
0
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (fcity == null)
            {
                fcity = new FCity();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

            if (pkValue != null)
            {
                fcity.SetAction(BtnEvent.Open, pkValue);
            }
        }