Exemplo n.º 1
0
 private void BuildForm()
 {
     if (fcolours == null)
     {
         fcolours = new FColours();
     }
     fcolours.FColours_NeedToRefresh += VColours_NeedToRefresh;
     Parent.Controls.Add(fcolours);
     fcolours.Dock = DockStyle.Fill;
     fcolours.Show();
     fcolours.BringToFront();
 }
Exemplo n.º 2
0
        void txt_colours_NewEntryNeeded(object sender, string pValue)
        {
            if (fscolours == null)
            {
                fscolours = new FColours();
            }
            Parent.Controls.Add(fscolours);
            fscolours.Dock = DockStyle.Fill;
            fscolours.Show();
            fscolours.BringToFront();
            fscolours.Focus();

            fscolours.SetAction(BtnEvent.New, null);
            fscolours.SetFocus();
        }
Exemplo n.º 3
0
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (fcolours == null)
            {
                fcolours = new FColours();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

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