コード例 #1
0
        public BuildStepTrackingOptions(BuildFrame frame, BuildModel model)
        {
            InitializeComponent();

            Frame = frame;
            Model = model;


            TrackFlowCheckBox.AttachToolTip("Calls between functions are tracked so call graphs can work");

            TrackFieldsCheckBox.AttachToolTip("Set and get operations to class members are tracked");

            TrackInstancesCheckBox.AttachToolTip("Creation and deletion of classes are tracked, and class introspection is enabled");

            StaticCheckBox.AttachToolTip("During run time dynamic analysis will still be active");
        }
コード例 #2
0
ファイル: TypeInfoForm.cs プロジェクト: DD31415/Type-Viewer
    private void InstalizeCheckBoxes()
    {
        Type SystemType = typeof(Type);
        Type BoolType   = typeof(Boolean);

        PropertyInfo[] props = SystemType.GetProperties(Form1.AllFlags);

        bool Second = false;

        foreach (PropertyInfo prop in props)
        {
            if (prop.PropertyType == BoolType)
            {
                StaticCheckBox box = new StaticCheckBox();
                box.AutoSize = true;
                box.Checked  = false;
                box.Text     = prop.Name;
                box.Name     = prop.Name;

                if (Boxes.Count == 0)
                {
                    box.Location = new Point(6, 12);
                }
                else
                {
                    if (Second == false)
                    {
                        box.Location = new Point(6, Boxes[Boxes.Count - 1].Location.Y + (Boxes[Boxes.Count - 1].Size.Height));
                    }
                    else
                    {
                        box.Location = new Point(Boxes[Boxes.Count - 1].Location.X + (Boxes[Boxes.Count - 1].ClientSize.Width + 60), Boxes[Boxes.Count - 1].Location.Y);
                    }
                }

                BoolProps.Add(prop);
                Boxes.Add(box);

                Second = !Second;
            }
        }
    }