Exemple #1
0
        public Tools(GUI parent)
        {
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
            InitializeComponent();

            /* Example to add buttons to toolbox */

            IEnumerator enumerator = this.toolImageList.Images.GetEnumerator();
            enumerator.MoveNext();
            AddToolCommands((Image)enumerator.Current,"Cursor",new RunToolFunction(parent.ToolCursor));
            enumerator.MoveNext();
            AddToolCommands((Image)enumerator.Current,"Zoom",new RunToolFunction(parent.ToolZoom));
            parentGUI = parent;
        }
Exemple #2
0
        public Log(GUI gui)
        {
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
            InitializeComponent();

            //
            // TODO: Add constructor code after the InitializeComponent() call.
            //
            this.gui = gui;
            this.Location = new System.Drawing.Point((gui.Location.X + gui.Width -this.Width-5)/2, gui.Location.Y-25+gui.Height-this.Height);
            this.lstv.Click +=new EventHandler(lstv_Click);
            this.lstv.DoubleClick += new EventHandler(lstv_DoubleClick);
            this.Move += new EventHandler(DialogMove);
        }