예제 #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();
 }
예제 #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();
        }
예제 #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);
        }
예제 #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);
            }
        }