예제 #1
0
        public VarBitViewer()
        {
            Classifications           = new EditorClassifications();
            Classifications.Filenames = new string[] { "varbit.dat" };
            FileExtensions            = "";
            StaticFileExtensions      = "";

            Controls        = new Control[1];
            properties      = new PropertyGrid();
            properties.Dock = DockStyle.Fill;
            Controls[0]     = properties;

            ItemToolbox toolbox = new ItemToolbox();

            ToolControls = new Control[toolbox.Controls.Count];
            for (int i = 0; i < ToolControls.Length; i++)
            {
                ToolControls[i] = toolbox.Controls[i];
            }
            NumericUpDown n_item = (NumericUpDown)toolbox.Controls.Find("nItem", true)[0];

            n_item.ValueChanged += delegate(object sender, EventArgs e) { SelectVarBit((int)n_item.Value); };

            initialized = false;
            last_var    = 0;
        }
예제 #2
0
        public VarBitViewer()
        {
            Classifications = new EditorClassifications();
            Classifications.Filenames = new string[] { "varbit.dat" };
            FileExtensions = "";
            StaticFileExtensions = "";

            Controls = new Control[1];
            properties = new PropertyGrid();
            properties.Dock = DockStyle.Fill;
            Controls[0] = properties;

            ItemToolbox toolbox = new ItemToolbox();
            ToolControls = new Control[toolbox.Controls.Count];
            for (int i = 0; i < ToolControls.Length; i++)
                ToolControls[i] = toolbox.Controls[i];
            NumericUpDown n_item = (NumericUpDown)toolbox.Controls.Find("nItem", true)[0];

            n_item.ValueChanged += delegate(object sender, EventArgs e) { SelectVarBit((int)n_item.Value); };

            initialized = false;
            last_var = 0;
        }