コード例 #1
1
 protected override CollectionEditor.CollectionForm CreateCollectionForm()
 {
   this.tmvwQYAsq = base.CreateCollectionForm();
   this.tmvwQYAsq.FormClosed += new FormClosedEventHandler(this.UWtSfYmpY);
   return this.tmvwQYAsq;
 }
コード例 #2
0
ファイル: Index.cs プロジェクト: herqueles3/Npgsql
    protected override CollectionEditor.CollectionForm CreateCollectionForm()
    {
      _form = base.CreateCollectionForm();
      _form.Text = "Index Editor";

      /* Doing this because I can't figure out how to get the Columns collection editor to notify this editor when a column of an index is updated.
         This forces the collection editor form to be "dirty" which calls SetItems() when you hit OK or cancel.  Otherwise, if you
         change a column around and hit OK, then hit OK on this editor, it won't be dirty and won't update. */
      try
      {
        _form.GetType().InvokeMember("dirty", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.SetField, null, _form, new object[] { true });
      }
      catch
      {
      }

      foreach (Control c in _form.Controls[0].Controls)
      {
        PropertyGrid grid = c as PropertyGrid;
        if (grid != null)
        {
          grid.HelpVisible = true;
          break;
        }
      }
      _form.Width = (int)(_form.Width * 1.25);
      _form.Height = (int)(_form.Height * 1.25);

      return _form;
    }
コード例 #3
0
ファイル: Check.cs プロジェクト: AugustoAngeletti/blockspaces
 protected override CollectionEditor.CollectionForm CreateCollectionForm()
 {
   _form = base.CreateCollectionForm();
   _form.Text = "CHECK Constraint Editor";
   _form.Width = (int)(_form.Width * 1.25);
   _form.Height = (int)(_form.Height * 1.25);
   return _form;
 }
コード例 #4
0
 protected override CollectionEditor.CollectionForm CreateCollectionForm()
 {
     this.form = base.CreateCollectionForm();
     this.form.Closed += (sender, e) => 
     {
         if (this.form.DialogResult != DialogResult.OK || BarFactoryItemListEditor.ListChanged == null)
             return;
         BarFactoryItemListEditor.ListChanged(this, EventArgs.Empty);
     };
     return this.form;
 }
コード例 #5
0
    protected override CollectionEditor.CollectionForm CreateCollectionForm()
    {
      _form = base.CreateCollectionForm();
      _form.Text = "Foreign Key Editor";
      foreach (Control c in _form.Controls[0].Controls)
      {
        PropertyGrid grid = c as PropertyGrid;
        if (grid != null)
        {
          grid.HelpVisible = true;
          break;
        }
      }
      _form.Width = (int)(_form.Width * 1.25);
      _form.Height = (int)(_form.Height * 1.25);

      return _form;
    }
コード例 #6
0
        /// <summary>
        /// CollectionEditor �� CreateCollectionForm ����
        /// </summary>
        /// <returns></returns>
        protected override CollectionEditor.CollectionForm CreateCollectionForm()
        {
            CollectionEditor.CollectionForm form = base.CreateCollectionForm();
             _collectionForm = form;
             Button downButton = null;

             foreach ( Control ctl in form.Controls )
             {
            if ( ctl is Button )
            {
               if ( ctl.Name == "downButton" )
               {
                  downButton = ctl as Button;
                  break;
               }
            }
             }

             if ( downButton != null )
             {
            Button button = new Button();
            button.Name = "copyFromDataTableButton";

            Assembly asm = Assembly.GetExecutingAssembly();
            Stream stm
               = asm.GetManifestResourceStream(RESOURCENAME_IMAGE_COPYFROMDATATABLE);
            if ( stm != null )
            {
               Bitmap bitmap = new Bitmap(stm);
               button.Image = bitmap;
            }
            button.Left = downButton.Left;
            button.Top = downButton.Bottom + 10;
            button.Size = downButton.Size;

            button.Click += new EventHandler(CopyFromDataTableButton_OnClick);

            form.Controls.Add(button);
             }

             return form;
        }
コード例 #7
0
 protected override CollectionEditor.CollectionForm CreateCollectionForm()
 {
     this.form = base.CreateCollectionForm();
       this.form.Closed += new EventHandler(this.ydDLvwReUA);
       return this.form;
 }