Exemple #1
0
 private void BuildForm()
 {
     if (fmethod == null)
     {
         fmethod = new FMethod();
     }
     fmethod.FMethod_NeedToRefresh += VMethod_NeedToRefresh;
     Parent.Controls.Add(fmethod);
     fmethod.Dock = DockStyle.Fill;
     fmethod.Show();
     fmethod.BringToFront();
 }
Exemple #2
0
        void txt_method_NewEntryNeeded(object sender, string pValue)
        {
            if (fsmethod == null)
            {
                fsmethod = new FMethod();
            }
            Parent.Controls.Add(fsmethod);
            fsmethod.Dock = DockStyle.Fill;
            fsmethod.Show();
            fsmethod.BringToFront();
            fsmethod.Focus();

            fsmethod.SetAction(BtnEvent.New, null);
            fsmethod.SetFocus();
        }
Exemple #3
0
        void txt_method_NewEntryNeeded(object sender, string pValue)
        {
            if (xmethod == null)
            {
                xmethod = new FMethod();
                xmethod.FMethod_NeedToRefresh += Method_NeedToRefresh;
            }
            this.Parent.Controls.Add(xmethod);
            xmethod.Dock = DockStyle.Fill;
            xmethod.Show();
            xmethod.BringToFront();
            xmethod.Focus();

            xmethod.SetAction(BtnEvent.New, null);
            xmethod.SetFocus();
            xmethod.setname(pValue);
        }
Exemple #4
0
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (fmethod == null)
            {
                fmethod = new FMethod();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

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