예제 #1
0
 private void BuildForm()
 {
     if (fmtables == null)
     {
         fmtables = new FMtables();
     }
     fmtables.FMtables_NeedToRefresh += VMtables_NeedToRefresh;
     Parent.Controls.Add(fmtables);
     fmtables.Dock = DockStyle.Fill;
     fmtables.Show();
     fmtables.BringToFront();
 }
예제 #2
0
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (fmtables == null)
            {
                fmtables = new FMtables();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

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