Exemple #1
0
 private void BuildForm()
 {
     if (fsizes == null)
     {
         fsizes = new FSizes();
     }
     fsizes.FSizes_NeedToRefresh += VSizes_NeedToRefresh;
     Parent.Controls.Add(fsizes);
     fsizes.Dock = DockStyle.Fill;
     fsizes.Show();
     fsizes.BringToFront();
 }
Exemple #2
0
        void txt_sizes_NewEntryNeeded(object sender, string pValue)
        {
            if (fssizes == null)
            {
                fssizes = new FSizes();
            }
            Parent.Controls.Add(fssizes);
            fssizes.Dock = DockStyle.Fill;
            fssizes.Show();
            fssizes.BringToFront();
            fssizes.Focus();

            fssizes.SetAction(BtnEvent.New, null);
            fssizes.SetFocus();
        }
Exemple #3
0
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (fsizes == null)
            {
                fsizes = new FSizes();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

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