Esempio n. 1
0
 private void BuildForm()
 {
     if (fmpath == null)
     {
         fmpath = new FSpath();
     }
     fmpath.FSpath_NeedToRefresh += VMpath_NeedToRefresh;
     Parent.Controls.Add(fmpath);
     fmpath.Dock = DockStyle.Fill;
     fmpath.Show();
     fmpath.BringToFront();
 }
Esempio n. 2
0
        void txt_mpath_NewEntryNeeded(object sender, string pValue)
        {
            if (fsmpath == null)
            {
                fsmpath = new FSpath();
            }
            Parent.Controls.Add(fsmpath);
            fsmpath.Dock = DockStyle.Fill;
            fsmpath.Show();
            fsmpath.BringToFront();
            fsmpath.Focus();

            fsmpath.SetAction(BtnEvent.New, null);
            fsmpath.SetFocus();
        }
Esempio n. 3
0
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (fmpath == null)
            {
                fmpath = new FSpath();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

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