System.Windows.Forms.Design.ControlDesigner.InitializeNewComponent(System.Collections.IDictionary)

Here are the examples of the csharp api class System.Windows.Forms.Design.ControlDesigner.InitializeNewComponent(System.Collections.IDictionary) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

5 Examples 7

1. Example

View license
public override void InitializeNewComponent(IDictionary defaultValues) {
            // Debug.WriteLine("ObjectListViewDesigner.InitializeNewComponent");
            base.InitializeNewComponent(defaultValues);
            this.listViewDesigner.InitializeNewComponent(defaultValues);
        }

2. Example

View license
public override void InitializeNewComponent(IDictionary defaultValues) {
            // Debug.WriteLine("ObjectListViewDesigner.InitializeNewComponent");
            base.InitializeNewComponent(defaultValues);
            this.listViewDesigner.InitializeNewComponent(defaultValues);
        }

3. Example

View license
public override void InitializeNewComponent(IDictionary defaultValues) {
            // Debug.WriteLine("ObjectListViewDesigner.InitializeNewComponent");
            base.InitializeNewComponent(defaultValues);
            this.listViewDesigner.InitializeNewComponent(defaultValues);
        }

4. Example

View license
public override void InitializeNewComponent(IDictionary defaultValues) {
            // Debug.WriteLine("ObjectListViewDesigner.InitializeNewComponent");
            base.InitializeNewComponent(defaultValues);
            this.listViewDesigner.InitializeNewComponent(defaultValues);
        }

5. Example

Project: MapleShark
Source File: SyntaxBoxDesigner.cs
View license
public override void InitializeNewComponent(System.Collections.IDictionary defaultValues)
        {
            base.InitializeNewComponent(defaultValues);
            if (DesignerHost != null)
            {
                DesignerTransaction trans = DesignerHost.CreateTransaction(
                    "Adding Syntaxdocument");
                var sd = DesignerHost.CreateComponent
                             (typeof(SyntaxDocument)) as
                         SyntaxDocument;
                
                var sb = Control as SyntaxBoxControl;

                if (sb == null)
                {
                    trans.Cancel();
                }
                else
                {
                    sb.Document = sd;
                    trans.Commit();
                }
            }
        }