Esempio n. 1
0
 private void InitializeComponent()
 {
     components = new System.ComponentModel.Container();
     tDuration  = new System.Windows.Forms.Timer(components);
     tOpacity   = new System.Windows.Forms.Timer(components);
     SuspendLayout();
     //
     // tDuration
     //
     tDuration.Tick += new System.EventHandler(tDuration_Tick);
     //
     // tOpacity
     //
     tOpacity.Tick += new System.EventHandler(tOpacity_Tick);
     //
     // NotificationForm
     //
     AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     ClientSize          = new System.Drawing.Size(400, 300);
     Cursor          = System.Windows.Forms.Cursors.Hand;
     FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     Name            = "NotificationForm";
     ShowInTaskbar   = false;
     StartPosition   = System.Windows.Forms.FormStartPosition.Manual;
     Text            = "NotificationForm";
     MouseClick     += new System.Windows.Forms.MouseEventHandler(NotificationForm_MouseClick);
     MouseEnter     += new System.EventHandler(NotificationForm_MouseEnter);
     MouseLeave     += new System.EventHandler(NotificationForm_MouseLeave);
     ResumeLayout(false);
 }
 public Element()
 {
     MouseDown += new System.Windows.Forms.MouseEventHandler(this.img_MouseDown);
     MouseUp   += new System.Windows.Forms.MouseEventHandler(this.img_MouseUp);
     MouseMove += new System.Windows.Forms.MouseEventHandler(this.img_MouseMove);
     SizeMode   = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
 }
Esempio n. 3
0
        /// <summary>
        /// Contructor
        /// </summary>
        /// <param name="flowChartCtlBasic"></param>
        /// <param name="flowContainer"></param>
        /// <param name="offsetY"></param>
        public SMContainerPanel(SMFlowChartCtlBasic flowChartCtlBasic, SMFlowContainer flowContainer, int offsetY)
            : base()
        {
            InitializeComponent();

            DoubleBuffered     = true;
            _flowChartCtlBasic = flowChartCtlBasic;
            _flowContainer     = flowContainer;
            Name        = flowContainer.Nickname;
            TabIndex    = 0;
            MouseMove  += new System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
            MouseClick += new System.Windows.Forms.MouseEventHandler(this.OnLeftClick);
            MouseDown  += new System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
            MouseUp    += new System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
            Paint      += new PaintEventHandler(OnPaint);


            _flowItemCursor = CustomCursor.Create(global::MCore.Comp.SMLib.SMFlowChart.Properties.Resources.FlowItemCursor);
            BackgroundImage = global::MCore.Comp.SMLib.SMFlowChart.Properties.Resources.NoGridBackground;

            GridSize = BackgroundImage.Size;

            // Set the size of the panel
            Size = GridToPixel(_flowContainer.GridSize);

            // Set the location of the panel
            Point ptLoc = GridToPixel(_flowContainer.GridCorner);

            ptLoc.Offset(0, offsetY);
            Location = ptLoc;
            Rebuild();
        }
Esempio n. 4
0
        // ------------------ carga del formulario -----------------------------
        private void Form1_Load(object sender, EventArgs e)
        {
            // hacer ventana borderless movible
            MouseDown += new System.Windows.Forms.MouseEventHandler(TopPanel_MouseMove);
            MouseDown += new System.Windows.Forms.MouseEventHandler(TopPanelLeft_MouseMove);
            MouseDown += new System.Windows.Forms.MouseEventHandler(LabelTitulo_MouseMove);

            // cargar los tres archivos escenciales y validar IDs
            CargarDatosComercio();
            CargarStockInicial();
            CargarCantidadesAReponer();
            RevisarIDs();

            // iniciar interfaz en la bienvenida
            botonBotonera = 0;
            ActualizarPantalla();

            // borrar la salida de la ejecución anterior y recrear el directorio de salida si no existe
            // Intento nuevamente por si el usuario tenía la carpeta abierta en el explorador impidiendo su creación
            // y un fallo posterior al no tener carpeta de salida
            if (Directory.Exists(@"C:\Grupo2"))
            {
                Directory.Delete(@"C:\Grupo2", true);
                Directory.CreateDirectory(@"C:\Grupo2");
            }
            else
            {
                Directory.CreateDirectory(@"C:\Grupo2");
            }
        }
Esempio n. 5
0
        // Initialize
        protected override void Initialize()
        {
            if (!IsDesignerHosted)
            {
                _spriteBatch    = new SpriteBatch(GraphicsDevice);
                _contentManager = new ContentManager(Services, "Content");

                System.Diagnostics.Debug.Assert(Parent.Parent.Parent is CircuitsView);
                _view       = Parent.Parent.Parent as CircuitsView;
                _controller = _view.controller;

                // Resources
                _pixel = new Texture2D(GraphicsDevice, 1, 1);
                _pixel.SetData <Color>(new[] { Color.White });
                _and    = _contentManager.Load <Texture2D>("logic_gate_icons\\and");
                _or     = _contentManager.Load <Texture2D>("logic_gate_icons\\or");
                _not    = _contentManager.Load <Texture2D>("logic_gate_icons\\not");
                _input  = _contentManager.Load <Texture2D>("logic_gate_icons\\input");
                _output = _contentManager.Load <Texture2D>("logic_gate_icons\\output");
                _circle = _contentManager.Load <Texture2D>("circle");
                _font   = _contentManager.Load <SpriteFont>("gate_font");

                // Events
                Application.Idle   += delegate { Invalidate(); };
                MouseMove          += new System.Windows.Forms.MouseEventHandler(CircuitsView_MouseMove);
                MouseDown          += new MouseEventHandler(CircuitDisplay_MouseDown);
                FindForm().KeyDown += new KeyEventHandler(Parent_KeyDown);
                FindForm().KeyUp   += new KeyEventHandler(Parent_KeyUp);
            }
        }
 public override void InitEventListener()
 {
     Logger.logBegin("InitEventListener");
     Delegate objDlgt = new System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
     base.AddHandler(MarsTigerServerConst.CNST_EVNT_MOUSEDOWN, objDlgt);
     Logger.logEnd("InitEventListener");
 }
Esempio n. 7
0
 private void InitializeEvents()
 {
     MouseEnter += new System.EventHandler(this.base_MouseEnter);
     MouseLeave += new System.EventHandler(this.base_MouseLeave);
     MouseDown  += new System.Windows.Forms.MouseEventHandler(this.base_MouseDown);
     MouseUp    += new System.Windows.Forms.MouseEventHandler(this.base_MouseUp);
 }
Esempio n. 8
0
        //*************************************************************************************************************
        public LocalList()
        {
            FullRowSelect = true;
            Columns.Add("Name", 205);
            Columns.Add("Size", 100, HorizontalAlignment.Right);
            Columns.Add("Last Update", 125);

            DoubleClick    += new System.EventHandler(this_DoubleClick);
            ItemDrag       += new System.Windows.Forms.ItemDragEventHandler(this_ItemDrag);
            DragDrop       += new System.Windows.Forms.DragEventHandler(this_DragDrop);
            DragEnter      += new System.Windows.Forms.DragEventHandler(this_DragEnter);
            KeyDown        += new System.Windows.Forms.KeyEventHandler(this_KeyDown);
            MouseUp        += new System.Windows.Forms.MouseEventHandler(this_MouseUp);
            AfterLabelEdit += new System.Windows.Forms.LabelEditEventHandler(this_AfterLabelEdit);

            fileSystemWatcher.IncludeSubdirectories = false;
            fileSystemWatcher.NotifyFilter          = NotifyFilters.Attributes
                                                      | NotifyFilters.CreationTime
                                                      | NotifyFilters.DirectoryName
                                                      | NotifyFilters.FileName
                                                      | NotifyFilters.LastWrite
                                                      | NotifyFilters.Size;

            fileSystemWatcher.SynchronizingObject = this;
            fileSystemWatcher.Changed            += new System.IO.FileSystemEventHandler(this.fileSystemWatcher_Changed);
            fileSystemWatcher.Created            += new System.IO.FileSystemEventHandler(this.fileSystemWatcher_Changed);
            fileSystemWatcher.Deleted            += new System.IO.FileSystemEventHandler(this.fileSystemWatcher_Changed);
            fileSystemWatcher.Renamed            += new System.IO.RenamedEventHandler(this.fileSystemWatcher_Renamed);
            ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.List_ColumnClick);
        }
Esempio n. 9
0
    public Simple()
    {
        Text = "Viewer";
        Size = new Size(250, 200);
        BackColor = System.Drawing.Color.Black;
        DoubleBuffered = true;
        //texture = new Bitmap(Image.FromFile("NeHe.bmp"));
        rx = 0;
        ry = 0;
        rz = 0;
        butdown = false;
        zoom = 0;
        trans = 0;

        oldx = 0;
        oldy = 0;

        MouseMove += new System.Windows.Forms.MouseEventHandler(OnMouseMove);
        MouseDown += new System.Windows.Forms.MouseEventHandler(OnMouseDown);
        MouseUp += new System.Windows.Forms.MouseEventHandler(OnMouseUp);

        Paint += new PaintEventHandler(OnPaint);
        ResizeEnd += new EventHandler(OnResize);
        SizeChanged += new EventHandler(OnResize);
        CenterToScreen();
    }
Esempio n. 10
0
        public LinkScrollbar()
        {
            _handle = new List <IntPtr>();

            InitializeComponent();


            MouseDown  += new System.Windows.Forms.MouseEventHandler(AdvancedScrollbar_MouseDown);
            MouseMove  += new System.Windows.Forms.MouseEventHandler(AdvancedScrollbar_MouseMove);
            MouseUp    += new System.Windows.Forms.MouseEventHandler(AdvancedScrollbar_MouseUp);
            MouseWheel += new System.Windows.Forms.MouseEventHandler(AdvancedScrollbar_MouseWheel);
            MouseClick += new System.Windows.Forms.MouseEventHandler(AdvancedScrollbar_MouseClick);

            SetStyle(ControlStyles.ResizeRedraw, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.DoubleBuffer, true);


            UpArrow   = ImageResource.uparrowblue;
            DownArrow = ImageResource.downarrowblue;


            //_clickUpDistance = (int)(point.Y - _thumbTopPos - UpArrow.Height);
            //_clickDownDistance = (int)(_thumbTopPos + _thumbHeight + UpArrow.Height - point.Y);
        }
Esempio n. 11
0
        public void init()
        {
            MouseDown +=
            new System.Windows.Forms.MouseEventHandler(OnMouseDown);

            SetStyle(ControlStyles.ResizeRedraw, true);
        }
Esempio n. 12
0
        public Display(Game game)
        {
            this.game = game;

            //Init display
            InitializeComponent();

            //Init framebuffer
            DoubleBuffered = true;

            //Change cur

            //Cursor.Hide();

            //Init events
            KeyDown += new System.Windows.Forms.KeyEventHandler(game.keyManager.KeyDown);
            KeyUp   += new System.Windows.Forms.KeyEventHandler(game.keyManager.KeyUp);

            MouseDown  += new System.Windows.Forms.MouseEventHandler(game.mouseManager.mouseDown);
            MouseMove  += new System.Windows.Forms.MouseEventHandler(game.mouseManager.mouseMove);
            MouseUp    += new System.Windows.Forms.MouseEventHandler(game.mouseManager.mouseUp);
            MouseWheel += new MouseEventHandler(game.mouseManager.mouseWheel);

            this.MouseEnter += new System.EventHandler(game.mouseManager.mouseEnter);
            this.MouseLeave += new System.EventHandler(game.mouseManager.mouseLeave);
            this.MouseHover += new System.EventHandler(game.mouseManager.mouseHover);

            Paint      += new System.Windows.Forms.PaintEventHandler(game.render);
            FormClosed += new System.Windows.Forms.FormClosedEventHandler(game.displayClosed);
        }
Esempio n. 13
0
        public override void InitEventListener()
        {
            Logger.logBegin("InitEventListener");
            Delegate objDlgt = new System.Windows.Forms.MouseEventHandler(this.OnMouseDown);

            base.AddHandler(MarsTigerServerConst.CNST_EVNT_MOUSEDOWN, objDlgt);
            Logger.logEnd("InitEventListener");
        }
Esempio n. 14
0
        protected virtual void AddEvent()
        {
            Logger.logBegin("AddEvent");
#if _tigerDebugMouseDown
            Delegate eMouseDown = new System.Windows.Forms.MouseEventHandler(this.tigerMouseDown);
            base.AddHandler(MarsTigerServerConst.CNST_EVNT_MOUSEDOWN, eMouseDown);
#endif
            Logger.logEnd("AddEvent");
        }
        MainForm()
        {
            groupBox1 = new System.Windows.Forms.GroupBox();
            button1   = new System.Windows.Forms.Button();
            textBox1  = new System.Windows.Forms.TextBox();
            label1    = new System.Windows.Forms.Label();
            textBox2  = new System.Windows.Forms.TextBox();
            label2    = new System.Windows.Forms.Label();

            // button1
            button1.Name     = "Button1";
            button1.Location = new System.Drawing.Point(101, 90);
            button1.Size     = new System.Drawing.Size(75, 24);
            button1.Text     = "button1";

            // textBox1
            textBox1.Name     = "TextBox1";
            textBox1.Location = new System.Drawing.Point(76, 25);
            textBox1.Size     = new System.Drawing.Size(100, 20);

            // label1
            label1.Name      = "Label1";
            label1.Bounds    = new Rectangle(35, 22, 146, 28);
            label1.BackColor = System.Drawing.Color.Yellow;
            label1.Text      = "label1";

            // textBox2
            textBox2.Name     = "TextBox2";
            textBox2.Location = new System.Drawing.Point(76, 55);
            textBox2.Size     = new System.Drawing.Size(100, 20);

            // label2
            label2.Name      = "Label2";
            label2.Bounds    = new Rectangle(35, 52, 146, 28);
            label2.BackColor = System.Drawing.Color.Yellow;
            label2.Text      = "label2";

            groupBox1.Name = "GroupBox1";
            groupBox1.Controls.Add(button1);
            groupBox1.Controls.Add(textBox1);
            groupBox1.Controls.Add(label1);
            groupBox1.Controls.Add(textBox2);
            groupBox1.Controls.Add(label2);

            groupBox1.Location = new System.Drawing.Point(35, 34);
            groupBox1.Size     = new System.Drawing.Size(200, 128);
            groupBox1.Text     = "groupBox1";

            // MainFORm
            Name       = "MainFOrm";
            ClientSize = new System.Drawing.Size(292, 266);
            Controls.Add(groupBox1);
            Text        = "Click Fields to include";
            MouseClick += new System.Windows.Forms.MouseEventHandler(MainForm_MouseClick);

            groupBox1.Enabled = false;
        }
Esempio n. 16
0
        public Presentation(Display display)
        {
            this.display = display;
            display.Controls.Add(this);

            MouseDown += new System.Windows.Forms.MouseEventHandler(this.mouseDown);
            MouseUp   += new System.Windows.Forms.MouseEventHandler(this.mouseUp);
            MouseMove += new System.Windows.Forms.MouseEventHandler(this.mouseMove);
        }
 public DungeonMap() : base()
 {
     if (IsInRuntime)
     {
         TunnelImage = DrawUtils.BitmapFromFile("Rooms/tunnel.jpg").AlphaBlendAbsolute(128);
     }
     MouseClick += new System.Windows.Forms.MouseEventHandler(DungeonMap_MouseClick);
     MouseMove  += new System.Windows.Forms.MouseEventHandler(DungeonMap_MouseMove);
 }
 protected virtual void AddEvent()
 {
     Logger.logBegin("AddEvent");
     #if _tigerDebugMouseDown
     Delegate eMouseDown = new System.Windows.Forms.MouseEventHandler(this.tigerMouseDown);
     base.AddHandler(MarsTigerServerConst.CNST_EVNT_MOUSEDOWN, eMouseDown);
     #endif
     Logger.logEnd("AddEvent");
 }
Esempio n. 19
0
        public NimControl( IGetNimBoard iGetNimBoard, IUserInterface iUserInterface)
        {
            m_iGetNimBoard = iGetNimBoard;
            m_iUserInterface = iUserInterface;

            MouseDown +=
            new System.Windows.Forms.MouseEventHandler(OnMouseDown);

            SetStyle(ControlStyles.ResizeRedraw, true);
        }
Esempio n. 20
0
 public MainForm()
 {
     hasChilds     = false;
     hasChildForms = false;
     SetStyle(ControlStyles.ResizeRedraw, true);
     Cylinder.Basis = Sphere.Basis = Triangle.Basis = Hypercube.Basis = Basis;
     InitializeComponent();
     this.Size   = new Size(1024, 768);
     MouseWheel += new System.Windows.Forms.MouseEventHandler(OnMouseWheel);
 }
Esempio n. 21
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="rect">Position and size of control.</param>
        public CustomButton()
        {
            myHandle = Handle;

            // Add event handlers.
            MouseDown      += new System.Windows.Forms.MouseEventHandler(this.CustomButton_MouseDown);
            this.KeyPress  += new System.Windows.Forms.KeyPressEventHandler(this.CustomButton_KeyPress);
            this.GotFocus  += new EventHandler(CustomButton_ChangeFocus);
            this.LostFocus += new EventHandler(CustomButton_ChangeFocus);
        }
Esempio n. 22
0
 public WaveForm()
 {
     InitializeComponent();
     g = Graphics.FromImage(b);
     pictureBox1.MouseMove += new MouseEventHandler(pictureBox1_MouseMove);
     MouseWheel += new System.Windows.Forms.MouseEventHandler(this.WaveForm_MouseWheel);
     //pictureBox1.MouseWheel += new System.Windows.Forms.MouseEventHandler(this.WaveForm_MouseWheel);
     //this.Width -= pictureBox1.Width - 640;
     //this.Height -= pictureBox1.Height - hScrollBar1.Height - 480; //Fillの場合
 }
Esempio n. 23
0
 public MainForm()
 {
     hasChilds = false;
     hasChildForms = false;
     SetStyle(ControlStyles.ResizeRedraw, true);
     Cylinder.Basis = Sphere.Basis = Triangle.Basis = Hypercube.Basis = Basis;
     InitializeComponent();
     this.Size = new Size(1024, 768);
     MouseWheel += new System.Windows.Forms.MouseEventHandler(OnMouseWheel);
 }
 public ListBoxDragNDrop()
 {
     this.AllowDrop        = true;
     this.SelectionMode    = SelectionMode.One;
     DragDrop             += new System.Windows.Forms.DragEventHandler(OnDragDrop);
     DragEnter            += new System.Windows.Forms.DragEventHandler(OnDragEnter);
     DragLeave            += new System.EventHandler(OnDragLeave);
     MouseDown            += new System.Windows.Forms.MouseEventHandler(OnMouseDown);
     DragOver             += new System.Windows.Forms.DragEventHandler(OnDragOver);
     SelectedIndexChanged += new System.EventHandler(OnSelectedIndexChanged);
 }
Esempio n. 25
0
        public InspectViewNew()
        {
            InitializeComponent();
            MouseWheel += new System.Windows.Forms.MouseEventHandler(pnlFov_MouseWheel);
            Paint      += new System.Windows.Forms.PaintEventHandler(pnlFov_Paint);
            MouseMove  += new System.Windows.Forms.MouseEventHandler(pnlFov_MouseMove);
            MouseUp    += new System.Windows.Forms.MouseEventHandler(pnlFov_MouseUp);

            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);  // 禁止擦除背景.
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true); // 双缓冲
        }
 public ReadOnlyRichTextBox()
 {
     MouseDown += new System.Windows.Forms.MouseEventHandler(this.OnMouseEvent);
     MouseUp += new System.Windows.Forms.MouseEventHandler(this.OnMouseEvent);
     Resize += new System.EventHandler(this.OnResize);
     Font = new Font(FontFamily.GenericSansSerif, 10f);
     ScrollBars = RichTextBoxScrollBars.None;
     BorderStyle = BorderStyle.None;
     ReadOnly = true;
     TabStop = false;
     HideCaret(this.Handle);
 }
Esempio n. 27
0
        //*************************************************************************************************************
        public QueueList()
        {
            InsertColumn("Progress", 120);
            InsertColumn("Local", 500);
            InsertColumn("", 18);
            InsertColumn("Remote", 500);
            InsertColumn("Size", 100);
            ShowItemToolTips = true;

            DoubleClick += new System.EventHandler(this_DoubleClick);
            KeyDown     += new System.Windows.Forms.KeyEventHandler(this_KeyDown);
            MouseUp     += new System.Windows.Forms.MouseEventHandler(this_MouseUp);
        }
Esempio n. 28
0
        public void Initial()
        {
            Image    = icon;
            Location = location;
            Size     = new Size(size, size);

            Cursor    = Cursors.Hand;
            BackColor = Form1.backColor;

            MouseEnter += new System.EventHandler(pictureBox_MouseEnter);
            MouseLeave += new System.EventHandler(pictureBox_MouseExit);
            MouseDown  += new System.Windows.Forms.MouseEventHandler(pictureBox_MouseDown);
        }
Esempio n. 29
0
        public Draw(Form1 mainForm)
        {
            InitializeComponent();

            var     assembly = System.Reflection.Assembly.GetExecutingAssembly();
            Version version  = assembly.GetName().Version;

            Icon = Icon.ExtractAssociatedIcon(assembly.Location);
            Text = String.Format("Net Monitor Control - Draw", version.Major, version.Minor);

            this.mainForm = mainForm;

            MouseMove += new System.Windows.Forms.MouseEventHandler(mainForm.Draw_MouseMove);
        }
Esempio n. 30
0
        public void Start()
        {
            if (!this.isStarted && this.openGLControl != null && !this.openGLControl.IsDisposed)
            {
                if (keyDownEvent == null)
                {
                    keyDownEvent = new System.Windows.Forms.KeyEventHandler(openGLControl_KeyDown);
                }
                this.openGLControl.KeyDown += keyDownEvent;
                if (keyUpEvent == null)
                {
                    keyUpEvent = new System.Windows.Forms.KeyEventHandler(openGLControl_KeyUp);
                }
                this.openGLControl.KeyUp += keyUpEvent;
                if (mouseDownEvent == null)
                {
                    mouseDownEvent = new MouseEventHandler(openGLControl_MouseDown);
                }
                this.openGLControl.MouseDown += mouseDownEvent;
                if (mouseMoveEvent == null)
                {
                    mouseMoveEvent = new MouseEventHandler(openGLControl_MouseMove);
                }
                this.openGLControl.MouseMove += mouseMoveEvent;
                if (mouseEnterEvent == null)
                {
                    mouseEnterEvent = new EventHandler(openGLControl_MouseEnter);
                }
                this.openGLControl.MouseEnter += mouseEnterEvent;
                if (mouseLeaveEvent == null)
                {
                    mouseLeaveEvent = new EventHandler(openGLControl_MouseLeave);
                }
                this.openGLControl.MouseLeave += mouseLeaveEvent;
                if (resizedEvent == null)
                {
                    resizedEvent = new EventHandler(openGLControl_Resized);
                }
                this.openGLControl.Resized += resizedEvent;
                this.isStarted              = true;
                this.openGLControl_Resized(openGLControl, null);

                this.thrViewController = new Thread(viewControllerThreadFunc);
                this.thrViewController.IsBackground = true;
                this.thrViewController.Priority     = ThreadPriority.Highest;
                this.thrViewController.Start();
            }
        }
Esempio n. 31
0
        private void InitializeComponent()
        {
            ControlBox = false;
            TopLevel   = false;

            this.ImeMode = System.Windows.Forms.ImeMode.NoControl;

            SizeChanged += new System.EventHandler(OnSizeChanged);
            Paint       += new System.Windows.Forms.PaintEventHandler(OnPaint);

            MouseDown += new System.Windows.Forms.MouseEventHandler(OnMouseDown);
            MouseUp   += new System.Windows.Forms.MouseEventHandler(OnMouseUp);
            MouseMove += new System.Windows.Forms.MouseEventHandler(OnMouseMove);

            Popup               = new ContextMenu();
            ContextWireframe    = new MenuItem();
            ContextShading      = new MenuItem();
            ContextColor        = new MenuItem();
            ContextMaterial     = new MenuItem();
            ContextTransparency = new MenuItem();
            ContextDelete       = new MenuItem();
            ContextBackground   = new MenuItem();

            ContextWireframe.Text    = "Wireframe";
            ContextShading.Text      = "Shading";
            ContextColor.Text        = "Color";
            ContextMaterial.Text     = "Material";
            ContextTransparency.Text = "Transparency";
            ContextDelete.Text       = "Delete";
            ContextBackground.Text   = "Background";

            ContextWireframe.Click    += new System.EventHandler(ContextWireframe_Click);
            ContextShading.Click      += new System.EventHandler(ContextShading_Click);
            ContextColor.Click        += new System.EventHandler(ContextColor_Click);
            ContextMaterial.Click     += new System.EventHandler(ContextMaterial_Click);
            ContextTransparency.Click += new System.EventHandler(ContextTransparency_Click);
            ContextDelete.Click       += new System.EventHandler(ContextDelete_Click);
            ContextBackground.Click   += new System.EventHandler(ContextBackground_Click);

            Popup.MenuItems.AddRange(new MenuItem[] { ContextWireframe,
                                                      ContextShading,
                                                      ContextColor,
                                                      ContextMaterial,
                                                      ContextTransparency,
                                                      ContextDelete,
                                                      ContextBackground });
            Popup.Popup += new System.EventHandler(OnPopup);
        }
Esempio n. 32
0
        //*************************************************************************************************************
        public RemoteList()
        {
            FullRowSelect = true;
            Columns.Add("Name", 220);
            Columns.Add("Size", 100, HorizontalAlignment.Right);
            Columns.Add("Last Update", 125);

            DoubleClick    += new System.EventHandler(this_DoubleClick);
            ItemDrag       += new System.Windows.Forms.ItemDragEventHandler(this_ItemDrag);
            DragDrop       += new System.Windows.Forms.DragEventHandler(this_DragDrop);
            DragEnter      += new System.Windows.Forms.DragEventHandler(this_DragEnter);
            KeyDown        += new System.Windows.Forms.KeyEventHandler(this_KeyDown);
            MouseUp        += new System.Windows.Forms.MouseEventHandler(this_MouseUp);
            AfterLabelEdit += new System.Windows.Forms.LabelEditEventHandler(this_AfterLabelEdit);
            ColumnClick    += new System.Windows.Forms.ColumnClickEventHandler(this.List_ColumnClick);
        }
        void Init ()
        {
            AutoGenerateColumns = false;

            MouseDown += new System.Windows.Forms.MouseEventHandler ( this.OnMouseDown );
            CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler ( this.OnCellDBClick );
            CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler ( this.OnCellContentClick );
            CellClick += new System.Windows.Forms.DataGridViewCellEventHandler ( this.OnCellClick );
            ColumnHeaderMouseClick += new DataGridViewCellMouseEventHandler ( OnClickColumnHeader );  //作废。列表排序不在这里实现。而是在 FindList 类中,通过 fl.SortBindingList() 来实现。DataGridView类自身自带了排序功能,只需要传入有排序属性的数据就可以了。
            CellFormatting += new DataGridViewCellFormattingEventHandler(OnCellFormatting); //在显示数据的同时,对Cell里的数据/颜色/字体等进行处理。不必再使用AfterFill()之类的函数了。
            
            ClearContextMenu () ;

            //ListViewColumnSorter sortHelper = new ListViewColumnSorter();
            //Sort( sortHelper );
        }
Esempio n. 34
0
        public CCommitsListView()
        {
            SetStyle(ControlStyles.DoubleBuffer | ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, true);
            UpdateStyles();
            int value = 2;
            SystemParametersInfo(0x67, value, ref value, 0);
            ItemMouseHover += new System.Windows.Forms.ListViewItemMouseHoverEventHandler(this.m_lvCommitsInfo_ItemMouseHover);
            MouseClick += new System.Windows.Forms.MouseEventHandler(this.m_lvCommitsInfo_MouseClick);

            _emOprType =OperationTyPe.UNKNOWN;
            _szSourceSHA = string.Empty;
            _szTargetSHA = string.Empty;
            _szSourceFile = string.Empty;
            _szTargetFile = string.Empty;
            m_itmPreveHover = new ListViewItem();
        }
Esempio n. 35
0
 void InitializeCtrlHandler()
 {
     PaintHandler            = new System.Windows.Forms.PaintEventHandler(_Paint);
     MouseDoubleClickHandler = new System.Windows.Forms.MouseEventHandler(_MouseDoubleClick);
     MouseDownHandler        = new System.Windows.Forms.MouseEventHandler(_MouseDown);
     HandleDestroyedHandler  = new EventHandler(_Destroy);
     MouseWheelHandler       = new System.Windows.Forms.MouseEventHandler(_MouseWheel);
     SizeChangedHandler      = new System.EventHandler(_SizeChanged);
     MouseUpHandler          = new System.Windows.Forms.MouseEventHandler(_MouseUp);
     PaintHandler            = new System.Windows.Forms.PaintEventHandler(_Paint);
     MouseMoveHandler        = new System.Windows.Forms.MouseEventHandler(_MouseMove);
     KeyPressHandler         = new System.Windows.Forms.KeyPressEventHandler(_KeyPress);
     KeyUpHandler            = new System.Windows.Forms.KeyEventHandler(_KeyUp);
     KeyDownHandler          = new System.Windows.Forms.KeyEventHandler(_KeyDown);
     NCMoveHandler           = new NCMouseMoveHandler(NCMouse);
     CtrlNCMouseMoveHandler  = new System.Windows.Forms.MouseEventHandler(CtrlNCMouseMove);
 }
Esempio n. 36
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     //
     // ZzzzRangeBar
     //
     Name         = "ZzzzRangeBar";
     Size         = new System.Drawing.Size(344, 64);
     KeyPress    += new System.Windows.Forms.KeyPressEventHandler(OnKeyPress);
     Resize      += new System.EventHandler(OnResize);
     Load        += new System.EventHandler(OnLoad);
     SizeChanged += new System.EventHandler(OnSizeChanged);
     MouseUp     += new System.Windows.Forms.MouseEventHandler(OnMouseUp);
     Paint       += new System.Windows.Forms.PaintEventHandler(OnPaint);
     Leave       += new System.EventHandler(OnLeave);
     MouseMove   += new System.Windows.Forms.MouseEventHandler(OnMouseMove);
     MouseDown   += new System.Windows.Forms.MouseEventHandler(OnMouseDown);
 }
Esempio n. 37
0
        public Form1()
        {
            InitializeComponent();

            sizeChangeCombo.SelectedItem = 12;

            MouseDown               += new System.Windows.Forms.MouseEventHandler(this.Form1_MouseDown);
            MouseUp                 += new System.Windows.Forms.MouseEventHandler(this.Form1_MouseUp);
            MouseMove               += new System.Windows.Forms.MouseEventHandler(this.Form1_MouseMove);
            FormClosing             += new FormClosingEventHandler(Form1_FormClosing);
            HookedKeyboardNofity    += new KeyboardHooker.HookedKeyboardUserEventHandler(Form1_HookedKeyboardNofity);
            videoLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.VideoLabel1_LinkClicked);
            sizeChangeCombo.SelectedIndexChanged      += new System.EventHandler(this.SizeChangeCombo_SelectedIndexChanged);
            colorChangeCombo.SelectedIndexChanged     += new System.EventHandler(this.ColorChangeCombo_SelectedIndexChanged);
            backColorChangeCombo.SelectedIndexChanged += new System.EventHandler(this.BackColorChangeCombo_SelectedIndexChanged);

            KeyboardHooker.Hook(HookedKeyboardNofity);
        }
Esempio n. 38
0
 private void InitializeComponent()
 {
     //
     // VistaButton
     //
     Name           = "VistaButton";
     Size           = new System.Drawing.Size(100, 32);
     Paint         += new System.Windows.Forms.PaintEventHandler(VistaButton_Paint);
     KeyUp         += new System.Windows.Forms.KeyEventHandler(VistaButton_KeyUp);
     KeyDown       += new System.Windows.Forms.KeyEventHandler(VistaButton_KeyDown);
     MouseEnter    += new System.EventHandler(VistaButton_MouseEnter);
     MouseLeave    += new System.EventHandler(VistaButton_MouseLeave);
     MouseUp       += new MouseEventHandler(VistaButton_MouseUp);
     MouseDown     += new System.Windows.Forms.MouseEventHandler(VistaButton_MouseDown);
     GotFocus      += new EventHandler(VistaButton_MouseEnter);
     LostFocus     += new EventHandler(VistaButton_MouseLeave);
     mFadeIn.Tick  += new EventHandler(mFadeIn_Tick);
     mFadeOut.Tick += new EventHandler(mFadeOut_Tick);
     Resize        += new EventHandler(VistaButton_Resize);
 }
Esempio n. 39
0
        /// <summary>
        ///    Required method for Designer support - do not modify
        ///    the contents of this method with the code editor
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.timer1     = new System.Windows.Forms.Timer(components);

            timer1.Interval = 3;
            timer1.Enabled  = true;
            //@design timer1.SetLocation(new System.Drawing.Point(7, 7));
            timer1.Tick += new System.EventHandler(timer1_Timer);

            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.Text = "Collide";
            //@design this.TrayLargeIcon = true;
            //@design this.TrayHeight = 93;
            this.BackColor  = System.Drawing.Color.Black;
            this.ClientSize = new System.Drawing.Size(720, 429);
            KeyPress       += new System.Windows.Forms.KeyPressEventHandler(Form_KeyPress);
            DoubleClick    += new System.EventHandler(Form1_DoubleClick);
            Resize         += new System.EventHandler(Form_Resize);
            MouseUp        += new System.Windows.Forms.MouseEventHandler(Form_MouseUp);
        }
Esempio n. 40
0
 internal SpellGridForm()
 {
     FormClosed           += new FormClosedEventHandler(SpellGrid.SpellGrid_close);
     Move                 += new System.EventHandler(SpellGrid.SpellGrid_Move);
     ContextMenu           = SpellGrid.GeneraMenu();
     MouseDown            += new System.Windows.Forms.MouseEventHandler(SpellGrid.SpellGrid_MouseDown);
     MouseMove            += new System.Windows.Forms.MouseEventHandler(SpellGrid.SpellGrid_MouseMove);
     MouseUp              += new System.Windows.Forms.MouseEventHandler(SpellGrid.SpellGrid_MouseUp);
     MouseClick           += new System.Windows.Forms.MouseEventHandler(SpellGrid.SpellGrid_MouseClick);
     MouseDoubleClick     += new System.Windows.Forms.MouseEventHandler(SpellGrid.SpellGrid_MouseClick);
     ShowInTaskbar         = false;
     TopMost               = true;
     FormBorderStyle       = FormBorderStyle.None;
     MinimumSize           = new Size(1, 1);
     AutoScaleMode         = System.Windows.Forms.AutoScaleMode.Font;
     TransparencyKey       = Color.YellowGreen;
     BackColor             = Color.YellowGreen;
     BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     MaximizeBox           = false;
     CausesValidation      = false;
 }
Esempio n. 41
0
        private double transy; //posunuti

        #endregion Fields

        #region Constructors

        public Form1(string filename)
        {
            Text = "Viewer";
            Size = new Size(250, 200);
            BackColor = System.Drawing.Color.LightGray;
            DoubleBuffered = true;

            menu = new MainMenu();
            MenuItem itemfile = new MenuItem("File");
            menu.MenuItems.Add(itemfile);
            l = null;
            //tvorba menu
            itemfile.MenuItems.Add(new MenuItem("&Open",new EventHandler(OnFileOpen),Shortcut.CtrlO));
            itemfile.MenuItems.Add(new MenuItem("&Close",new EventHandler(OnFileClose),Shortcut.CtrlC));
            itemfile.MenuItems.Add(new MenuItem("&Quit",new EventHandler(OnFileQuit),Shortcut.CtrlQ));

            Menu = menu;

            rx = 0;
            ry = 0;
            butdown = false;

            scale=1;
            transx = 0;
            transy = 0;
            //registrace udalosti
            MouseMove += new System.Windows.Forms.MouseEventHandler(OnMouseMove);
            MouseDown += new System.Windows.Forms.MouseEventHandler(OnMouseDown);
            MouseUp += new System.Windows.Forms.MouseEventHandler(OnMouseUp);
            MouseWheel += new System.Windows.Forms.MouseEventHandler(OnMouseWheel);
            KeyDown += new KeyEventHandler(OnKeyDown);
            Paint += new PaintEventHandler(OnPaint);
            ResizeEnd += new EventHandler(OnResize);
            SizeChanged += new EventHandler(OnResize);
            CenterToScreen();
        }
Esempio n. 42
0
        // Initialize
        protected override void Initialize()
        {
            if (!IsDesignerHosted)
            {
                _spriteBatch = new SpriteBatch(GraphicsDevice);
                _contentManager = new ContentManager(Services, "Content");

                System.Diagnostics.Debug.Assert(Parent.Parent.Parent is CircuitsView);
                _view = Parent.Parent.Parent as CircuitsView;
                _controller = _view.controller;

                // Resources
                _pixel = new Texture2D(GraphicsDevice, 1, 1);
                _pixel.SetData<Color>(new[] { Color.White });
                _and = _contentManager.Load<Texture2D>("logic_gate_icons\\and");
                _or = _contentManager.Load<Texture2D>("logic_gate_icons\\or");
                _not = _contentManager.Load<Texture2D>("logic_gate_icons\\not");
                _input = _contentManager.Load<Texture2D>("logic_gate_icons\\input");
                _output = _contentManager.Load<Texture2D>("logic_gate_icons\\output");
                _circle = _contentManager.Load<Texture2D>("circle");
                _font = _contentManager.Load<SpriteFont>("gate_font");

                // Events
                Application.Idle += delegate { Invalidate(); };
                MouseMove += new System.Windows.Forms.MouseEventHandler(CircuitsView_MouseMove);
                MouseDown += new MouseEventHandler(CircuitDisplay_MouseDown);
                FindForm().KeyDown += new KeyEventHandler(Parent_KeyDown);
                FindForm().KeyUp += new KeyEventHandler(Parent_KeyUp);
            }
        }
Esempio n. 43
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            components = new System.ComponentModel.Container();
            pErr = new Error();

            pIsMayEdit = true;
            pIsMaySelectedNode = false;

            mFindText = string.Empty;
            mIsMatchCase = false;
            mIsWordWhole = false;
            mIsLocking = false;

            mTreeViewNode=null;

            DoubleClick		+= new System.EventHandler(OnDoubleClickTreeItem);
            MouseDown	+= new System.Windows.Forms.MouseEventHandler(OnMouseDown);
            BeforeLabelEdit += new NodeLabelEditEventHandler (OnBeforeLabelEdit);
            AfterLabelEdit += new NodeLabelEditEventHandler (OnAfterLabelEdit);

            ContextMenu = new ContextMenu();
            ContextMenu.Popup += new EventHandler (OnDisplayContextMenu);
            mMIDel = null;

            //this.AfterSelect+=new TreeViewEventHandler(onAfterSelectNode);
            //this.BeforeSelect+=new TreeViewCancelEventHandler(onBeforeSelectNode);
        }
Esempio n. 44
0
 private void InitializeComponent()
 {
     listBox1 = new System.Windows.Forms.ListBox();
     listBox2 = new System.Windows.Forms.ListBox();
     this.webBrowser1 = new System.Windows.Forms.WebBrowser();
     button1 = new System.Windows.Forms.Button();
     label1 = new System.Windows.Forms.Label();
     linkLabel1 = new System.Windows.Forms.LinkLabel();
     linkLabel2 = new System.Windows.Forms.LinkLabel();
     SuspendLayout();
     //
     // listBox1
     //
     listBox1.Enabled = false;
     listBox1.FormattingEnabled = true;
     listBox1.Location = new System.Drawing.Point(12, 29);
     listBox1.Name = "listBox1";
     listBox1.Size = new System.Drawing.Size(149, 108);
     listBox1.TabIndex = 0;
     listBox1.SelectedIndexChanged += new System.EventHandler(listBox1_SelectedIndexChanged);
     //
     // webBrowser1
     //
     this.webBrowser1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.webBrowser1.Location = new System.Drawing.Point(167, 6);
     this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
     this.webBrowser1.Name = "webBrowser1";
     this.webBrowser1.ScriptErrorsSuppressed = true;
     this.webBrowser1.Size = new System.Drawing.Size(786, 408);
     this.webBrowser1.TabIndex = 2;
     //
     // listBox2
     //
     listBox2.FormattingEnabled = true;
     listBox2.Location = new System.Drawing.Point(12, 143);
     listBox2.Name = "listBox2";
     listBox2.Size = new System.Drawing.Size(149, 108);
     listBox2.TabIndex = 3;
     listBox2.SelectedIndexChanged += new System.EventHandler(listBox2_SelectedIndexChanged);
     //
     // button1
     //
     button1.BackColor = System.Drawing.SystemColors.ControlLightLight;
     button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     button1.Location = new System.Drawing.Point(2, 2);
     button1.Name = "button1";
     button1.Size = new System.Drawing.Size(38, 21);
     button1.TabIndex = 4;
     button1.Text = "DB";
     button1.UseVisualStyleBackColor = true;
     button1.Click += new System.EventHandler(button1_Click);
     //
     // label1
     //
     label1.AutoSize = true;
     label1.Location = new System.Drawing.Point(39, 6);
     label1.Name = "label1";
     label1.Size = new System.Drawing.Size(122, 13);
     label1.TabIndex = 5;
     label1.Text = "In Game Press SHIFT+1";
     //
     // linkLabel1
     //
     linkLabel1.AutoSize = true;
     linkLabel1.LinkColor = System.Drawing.Color.White;
     linkLabel1.Location = new System.Drawing.Point(12, 263);
     linkLabel1.Name = "linkLabel1";
     linkLabel1.Size = new System.Drawing.Size(73, 13);
     linkLabel1.TabIndex = 6;
     linkLabel1.TabStop = true;
     linkLabel1.Text = "Forum Thread";
     linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(linkLabel1_LinkClicked);
     //
     // linkLabel2
     //
     linkLabel2.AutoSize = true;
     linkLabel2.LinkColor = System.Drawing.Color.White;
     linkLabel2.Location = new System.Drawing.Point(12, 288);
     linkLabel2.Name = "linkLabel2";
     linkLabel2.Size = new System.Drawing.Size(89, 13);
     linkLabel2.TabIndex = 7;
     linkLabel2.TabStop = true;
     linkLabel2.Text = "GitHub Darp0wer";
     linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(linkLabel2_LinkClicked);
     //
     // Form1
     //
     AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     BackColor = System.Drawing.SystemColors.Highlight;
     ClientSize = new System.Drawing.Size(965, 426);
     ControlBox = false;
     Controls.Add(linkLabel2);
     Controls.Add(linkLabel1);
     Controls.Add(label1);
     Controls.Add(button1);
     Controls.Add(listBox2);
     Controls.Add(this.webBrowser1);
     Controls.Add(listBox1);
     FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     Name = "Form1";
     ShowIcon = false;
     Text = "DotaBuff by DarkPower";
     TopMost = true;
     FormClosing += new System.Windows.Forms.FormClosingEventHandler(Form1_FormClosing);
     Load += new System.EventHandler(Form1_Load);
     MouseDown += new System.Windows.Forms.MouseEventHandler(Form1_MouseDown);
     ResumeLayout(false);
     PerformLayout();
 }
Esempio n. 45
0
        internal FormBeamBox()
        {
            InitializeComponent();

            if (FormBeamBox.beamBoxData == null)
                return;

            //----------ͼ����ʾ---------------------------
            M_Illustrator = new Illustrator();
            Size size = groupBoxPic.ClientSize;
            M_Illustrator.Size = size;
            groupBoxPic.Controls.Add(M_Illustrator);
            IllustratorTool.LoadPic(M_Illustrator, "����ͼ-С����");
            //----------ͼ����ʾ---------------------------

            comboBox1.SelectedIndex = 0;
            BeamBoxBlock beamBoxBlock = new BeamBoxBlock();
            beamBoxData.GetBlock(ref beamBoxBlock, 0);

            textBox1.Text = beamBoxBlock.M_glWidth1.ToString();
            textBox2.Text = beamBoxBlock.M_glWidth2.ToString();
            textBox3.Text = beamBoxBlock.DimSideOffset.ToString();
            textBox27.Text = beamBoxBlock.DimUpOffset.ToString();
            textBox28.Text = beamBoxBlock.DimDownOffset.ToString();
            textBox4.Text = beamBoxBlock.M_initWone.ToString();
            textBox16.Text = beamBoxBlock.M_initWsjf.ToString();
            textBox6.Text = beamBoxBlock.WidthOffsetL.ToString();
            textBox7.Text = beamBoxBlock.WidthOffsetR.ToString();
            textBox8.Text = beamBoxBlock.WidthOffsetSjfL.ToString();
            textBox9.Text = beamBoxBlock.WidthOffsetSjfR.ToString();
            checkBox1.Checked = beamBoxBlock.IsDrawHorizon;
            checkBox2.Checked = beamBoxBlock.UseTextOffset;
            textBoxScale.Text = beamBoxBlock.DimScale.ToString();
            comboBox2.SelectedIndex = (int)beamBoxBlock.StructType;
            checkBox4.Checked = beamBoxBlock.IsUserhgbCount;
            checkBox5.Checked = beamBoxBlock.IsDrawDimension;
            checkBox6.Checked = beamBoxBlock.IsDrawBeam;
            checkBox7.Checked = beamBoxBlock.IsDimItalia;
            checkBox3.Checked = beamBoxBlock.IsAdjustSJFW;
            checkBox8.Checked = beamBoxBlock.IsDrawSupport;
            checkBox9.Checked = beamBoxBlock.IsSupportRound;
            checkBox10.Checked = beamBoxBlock.IsDimXb_ByBeamCenter;
            checkBox11.Checked = beamBoxBlock.IsDimZZDistOnBeam;
            textBox10.Text = beamBoxBlock.M_hgbCount.ToString();
            //�������۶���
            textBox17.Text = beamBoxBlock.M_initWsideLS.ToString();
            textBox18.Text = beamBoxBlock.M_initWsideLX.ToString();
            textBox19.Text = beamBoxBlock.M_initWsideRS.ToString();
            textBox20.Text = beamBoxBlock.M_initWsideRX.ToString();
            //---֧����Ϣ
            textBox21.Text = beamBoxBlock.SupportOffsetL.ToString();
            textBox22.Text = beamBoxBlock.SupportOffsetR.ToString();
            textBox23.Text = beamBoxBlock.SupportDistOnBeam.ToString();
            textBox24.Text = beamBoxBlock.SupportDiameter.ToString();
            textBox25.Text = beamBoxBlock.GailiangInSide.ToString();
            textBox26.Text = beamBoxBlock.GailiangOutSide.ToString();

            comboBox1.SelectedIndex = 0;
            if (beamBoxBlock.M_drawScale == 1000)
                comboBox1.SelectedIndex = 0;
            else if (beamBoxBlock.M_drawScale == 1)
                comboBox1.SelectedIndex = 1;

            //this.ShowDataOnGrid();
            UpdateGridData();
            this.checkBox2_CheckedChanged(null, null);
            this.checkBox6_CheckedChanged(null, null);
            this.checkBox8_CheckedChanged(null, null);
            MouseEventHandler curEvent = new System.Windows.Forms.MouseEventHandler(this.textBox_MouseClick);
            AcadAssist.AttrachFormEvent(this, curEvent);
        }
Esempio n. 46
0
        public CASTreeViewBase()
        {
            pErr = new Error();

            mICol = null;

            pIsMaySelectedNode = false;

            mFindText			=	string.Empty;
            mIsMatchCase	= false;
            mIsWordWhole	= false;
            mIsLocking		= false;

            _prevTreeNodeSelected = null;

            DoubleClick			+= new System.EventHandler(OnDoubleClickTreeItem);
            MouseDown				+= new System.Windows.Forms.MouseEventHandler(OnMouseDown);
            BeforeLabelEdit += new NodeLabelEditEventHandler (OnBeforeLabelEdit);
            AfterLabelEdit	+= new NodeLabelEditEventHandler (OnAfterLabelEdit);

            mMIDel		= null;
            mMIIns		= null;
            mMIChoice	= null;
            mMIRename	= null;
            mMIProp		= null;
            mMIFind		= null;

            #region DragAndDrop:
            AllowDrop = false; // �� ��������� - ��������� !!!
            DragEnter+=new DragEventHandler(this_DragEnter);
            DragOver+=new DragEventHandler(this_DragOver);
            ItemDrag+=new ItemDragEventHandler(this_ItemDrag);
            QueryContinueDrag+=new QueryContinueDragEventHandler(this_QueryContinueDrag);
            DragDrop+=new DragEventHandler(this_DragDrop);
            #endregion
        }
 /// <summary>
 /// Creates a new DraggableItemOrderedPanel.
 /// </summary>
 public DraggableItemOrderedPanel()
     : base()
 {
     DragTolerance = 10;
     MouseMove += new System.Windows.Forms.MouseEventHandler(ChildControlDragging);
 }
Esempio n. 48
0
        private void InitializeComponent()
        {
            ControlBox = false;
            TopLevel = false;

            this.ImeMode = System.Windows.Forms.ImeMode.NoControl;

            SizeChanged += new System.EventHandler( OnSizeChanged );
            Paint += new System.Windows.Forms.PaintEventHandler( OnPaint );

            MouseDown += new System.Windows.Forms.MouseEventHandler( OnMouseDown );
            MouseUp += new System.Windows.Forms.MouseEventHandler( OnMouseUp );
            MouseMove += new System.Windows.Forms.MouseEventHandler( OnMouseMove );

            Popup = new ContextMenu();
            ContextWireframe = new MenuItem();
            ContextShading = new MenuItem();
            ContextColor = new MenuItem();
            ContextMaterial = new MenuItem();
            ContextTransparency = new MenuItem();
            ContextDelete = new MenuItem();
            ContextBackground = new MenuItem();

            ContextWireframe.Text = "Wireframe";
            ContextShading.Text = "Shading";
            ContextColor.Text = "Color";
            ContextMaterial.Text = "Material";
            ContextTransparency.Text = "Transparency";
            ContextDelete.Text = "Delete";
            ContextBackground.Text = "Background";

            ContextWireframe.Click += new System.EventHandler( ContextWireframe_Click );
            ContextShading.Click += new System.EventHandler( ContextShading_Click );
            ContextColor.Click += new System.EventHandler( ContextColor_Click );
            ContextMaterial.Click += new System.EventHandler( ContextMaterial_Click );
            ContextTransparency.Click += new System.EventHandler( ContextTransparency_Click );
            ContextDelete.Click += new System.EventHandler( ContextDelete_Click );
            ContextBackground.Click += new System.EventHandler( ContextBackground_Click );

            Popup.MenuItems.AddRange( new MenuItem[] { ContextWireframe,
	                                                   ContextShading,
	                                                   ContextColor,
	                                                   ContextMaterial,
	                                                   ContextTransparency,
	                                                   ContextDelete,
                                                       ContextBackground } );
            Popup.Popup += new System.EventHandler( OnPopup );
        }