Пример #1
0
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (fservers == null)
            {
                fservers = new FServers();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

            if (pkValue != null)
            {
                fservers.SetAction(BtnEvent.Open, pkValue);
            }
        }
Пример #2
0
        void txt_servers_NewEntryNeeded(object sender, string pValue)
        {
            if (fsservers == null)
            {
                fsservers = new FServers();
            }
            Parent.Controls.Add(fsservers);
            fsservers.Dock = DockStyle.Fill;
            fsservers.Show();
            fsservers.BringToFront();
            fsservers.Focus();

            fsservers.SetAction(BtnEvent.New, null);
            fsservers.SetFocus();
        }