Container class: encapsulates components.
Inheritance: IContainer, IDisposable
コード例 #1
0
        public Console()
        {
            System.ComponentModel.IContainer components = new System.ComponentModel.Container();
            serialPort1 = new System.IO.Ports.SerialPort(components);
            serialPort1.PortName = "COM1";
            serialPort1.BaudRate = 9600;

            try
            {
                serialPort1.Open();
            }
            catch (Exception)
            {
                //throw;
            }

            if (!serialPort1.IsOpen)
            {
                MessageBox.Show("Error opening serial port " + serialPort1.PortName + ". Application exiting");
                //return;
            }

            serialPort1.DtrEnable = true;
            // start up
            System.Threading.Thread.Sleep(2000);
            serialPort1.DataReceived += OnReceived;
            InitializeComponent();
        }
コード例 #2
0
ファイル: iTunesC.cs プロジェクト: pfn/itunes-controller
        static void ShowNotification(string text, string title)
        {
            var container = new Container();
            var wait = new ManualResetEvent(false);
            var trayicon = new NotifyIcon(container);
            EventHandler done = null;
            done = delegate {
                wait.Set();
                trayicon.BalloonTipClosed  -= done;
                trayicon.BalloonTipClicked -= done;
            };
            trayicon.BalloonTipClicked += done;
            trayicon.BalloonTipClosed  += done;
            trayicon.BalloonTipTitle = title;
            trayicon.BalloonTipText = text;
            var exe = Environment.GetFolderPath(
                            Environment.SpecialFolder.ProgramFilesX86) +
                            @"\iTunes\iTunes.exe";
            var icon = Icon.ExtractAssociatedIcon(exe);
            trayicon.Icon = new Icon(icon, 16, 16);

            trayicon.Visible = true;
            trayicon.ShowBalloonTip(5000);
            wait.WaitOne(10000);
            trayicon.Visible = false;
            trayicon.Dispose();
            icon.Dispose();
            container.Dispose();
        }
		public LeanKitNotifierApplicationContext()
		{
			var container = new Container();
			var contextMenu = new ContextMenu();

			//var displaySettings = new MenuItem("Settings");
			//displaySettings.Click += DisplaySettingsOnClick;
			//contextMenu.MenuItems.Add(displaySettings);

			var exitMenu = new MenuItem("Exit");
			exitMenu.Click += ExitMenuOnClick;
			contextMenu.MenuItems.Add(exitMenu);

			// Create the NotifyIcon.
			var iconPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\app.ico";

			_notifyIcon = new NotifyIcon(container)
			{
				Icon = new Icon(iconPath),
				ContextMenu = contextMenu,
				Visible = true,
				Text = @"LeanKit Notifier"
			};

			InitializeLeanKitMonitoring();
		}
コード例 #4
0
ファイル: MultiTextControl.cs プロジェクト: bbriggs/wesay
        public MultiTextControl(WritingSystemCollection allWritingSystems)
        {
            SuspendLayout();
            _allWritingSystems = allWritingSystems;
            components = new Container();
            InitializeComponent();
            _textBoxes = new List<WeSayTextBox>();
            //this.BackColor = System.Drawing.Color.Crimson;
            _writingSystemLabelFont = new Font(FontFamily.GenericSansSerif, 9);

            if (-1 == WidthForWritingSystemLabels)
            {
                //happens when this is from a hand-placed designer piece,
                //in which case we don't really care about aligning anyhow
                ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize)); //ws label
            }
            else
            {
                ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, WidthForWritingSystemLabels));
            }
            ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100)); //text
            ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize)); //annotation widget

            ResumeLayout(false);
        }
コード例 #5
0
ファイル: MouseArea.cs プロジェクト: EdgarEDT/myitoppsp
 // Methods
 public MouseArea()
 {
     this.components = null;
     this.picturePanel = null;
     this.startPoint = PointF.Empty;
     this.defaultCursor = Cursors.Default;
     this.shiftDown = false;
     //			this.filename = string.Empty;
     //			this.selectPath = new GraphicsPath();
     this.graphCenterPoint = PointF.Empty;
     this.currentOperation = ToolOperation.None;
     //			this.undostack = new UndoStack();
     this.oldPoint = Point.Empty;
     this.hori = false;
     this.oldindex = 0;
     this.mousedown = false;
     this.win32 = new Win32();
     this.lineOperation = null;
     this.SelectOperation = null;
     this.DrawOperation = null;
     this.ViewOperation = null;
     this.ColorOperation = null;
     this.BezierOperation = null;
     this.IsDrawing = false;
     this.TextOperation = null;
     this.editingOperation = null;
     this.polyOperation = null;
     this.FlipOperation = null;
     this.SubOperation = null;
     this.InitializeComponent();
     base.SetStyle(ControlStyles.DoubleBuffer | (ControlStyles.AllPaintingInWmPaint | (ControlStyles.SupportsTransparentBackColor | (ControlStyles.Selectable | ControlStyles.UserPaint))), true);
     this.CreateMenus();
 }
コード例 #6
0
        // public decimal Port { get; set; }
        private void Connect_Click(object sender, EventArgs e)
        {
            System.ComponentModel.IContainer components = new System.ComponentModel.Container();
                serialPort1 = new System.IO.Ports.SerialPort(components); // Creating the new object.
                serialPort1.PortName = "COM" + COM.Value.ToString(); // Setting what port number.
                serialPort1.BaudRate = 9600; // Setting baudrate.
                serialPort1.DtrEnable = true; // Enable the Data Terminal Ready

                try
                {
                    serialPort1.Open(); // Open the port for use.
                    isConnected = true;
                    Port = COM.Value;
                }
                catch
                {
                    MessageBox.Show("Device not found");
                }
                finally
                {
                    if (serialPort1.IsOpen)
                    {
                        ConnectButton.Text = "Close";
                        //   ConnectButton.Enabled = false;
                        COM.Enabled = false;
                        SuccessLabel.Text = "Connection succesful";
                    }
                }
        }
コード例 #7
0
ファイル: FindDuplicates.cs プロジェクト: lehoaian/szotar
        public FindDuplicates()
        {
            InitializeComponent();

            if (components == null)
                components = new Container();

            duplicates = new Queue<KeyValuePair<Duplicate,Duplicate>>(DataStore.Database.FindDuplicateListItems());

            if (duplicates.Count == 0) {
                MessageBox.Show(Properties.Resources.NoDuplicateEntriesFound, base.Text, MessageBoxButtons.OK,
                                MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
                Close();
                return;
            }

            GoToNext();

            leftTermEditor.ItemDeleted += TermEditorItemDeleted;
            rightTermEditor.ItemDeleted += TermEditorItemDeleted;

            var boldFont = new Font(base.Font, FontStyle.Bold);
            components.Add(new DisposableComponent(boldFont));
            leftListName.Font = rightListName.Font = boldFont;
        }
コード例 #8
0
ファイル: Form1.cs プロジェクト: GHScan/DailyProjects
        public Form1()
        {
            InitializeComponent();

            m_backgroundBm = new Bitmap(Image.FromFile("me.jpg"));
            m_frameBuf = new Bitmap(m_backgroundBm.Width, m_backgroundBm.Height);

            m_rippleBufs = new short[2][,] { new short[m_backgroundBm.Height, m_backgroundBm.Width], null };
            for (int y = 0; y < m_rippleBufs[0].GetLength(0); ++y)
            {
                for (int x = 0; x < m_rippleBufs[0].GetLength(1); ++x)
                {
                    m_rippleBufs[0][y, x] = 0;
                }
            }
            m_rippleBufs[1] = (short[,])m_rippleBufs[0].Clone();
            m_activeRippleBuf = 0;

            ClientSize = new Size(m_backgroundBm.Width, m_backgroundBm.Height);
            FormBorderStyle = FormBorderStyle.FixedDialog;
            MinimizeBox = MaximizeBox = false;

            if (components == null) components = new Container();
            Timer timer = new Timer(components);
            timer.Tick += (sender, e) => this.UpdateFrame();
            timer.Interval = 10;
            timer.Start();

            m_paintFps = 0;
            timer = new Timer(components);
            // timer.Tick += (sender, e) => { Debug.Print("paintFps: " + m_paintFps + " updateFps: " + m_updateFps);  m_paintFps = m_updateFps = 0; };
            timer.Interval = 1000;
            timer.Start();
        }
コード例 #9
0
ファイル: CPad.cs プロジェクト: mymindleaks/iText
    public void InitializeComponent()
    {
        this.components=new System.ComponentModel.Container();
            this.button3=new System.Windows.Forms.Button();
            this.button2=new System.Windows.Forms.Button();
            this.button1=new System.Windows.Forms.Button();

            button2.Location=new System.Drawing.Point(16,40);
            button2.FlatStyle=System.Windows.Forms.FlatStyle.Flat;
            button2.Size=new System.Drawing.Size(408,296);
            button2.TabIndex=1;

            button3.Location=new System.Drawing.Point(200,8);
            button3.Size=new System.Drawing.Size(72,24);
            button3.TabIndex=3;
            button3.Text="&Close";
            button3.Click+=new System.EventHandler(this.button3_Click);

            button1.Location=new System.Drawing.Point(336,8);
            button1.Size=new System.Drawing.Size(80,24);
            button1.TabIndex=2;
            button1.Text="Browse";
            button1.Click+=new System.EventHandler(this.button1_Click);

            this.Text="iText Image Viewer";
            this.AutoScaleBaseSize=new System.Drawing.Size(5,13);
            this.ClientSize=new System.Drawing.Size(448,357);

            this.Controls.Add(this.button3);
            this.Controls.Add(this.button2);
            this.Controls.Add(this.button1);
    }
コード例 #10
0
ファイル: GridWindow.cs プロジェクト: EdgarEDT/myitoppsp
 // Methods
 public GridWindow()
 {
     this.components = null;
     this.size = (SizeF) new Size(10, 10);
     this.color = System.Drawing.Color.Gray;
     this.InitializeComponent();
 }
コード例 #11
0
        internal ObedienceContext()
        {
            //Instantiate the component Module to hold everything
            _components = new System.ComponentModel.Container();
            Trace.Listeners.Add(new TextWriterTraceListener("C:\\temp\\Obedience.log"));
            
            //Instantiate the NotifyIcon attaching it to the components container and 
            //provide it an icon, note, you can imbed this resource 
            _notifyIcon = new NotifyIcon(_components);
            _notifyIcon.Icon = Resources.AppIcon;
            _notifyIcon.Text = "Obedience";
            _notifyIcon.Visible = true;

            //Instantiate the context menu and items
            var contextMenu = new ContextMenuStrip();
            var displayForm = new ToolStripMenuItem();
            var exitApplication = new ToolStripMenuItem();

            //Attach the menu to the notify icon
            _notifyIcon.ContextMenuStrip = contextMenu;

            //Setup the items and add them to the menu strip, adding handlers to be created later
            displayForm.Text = "Do something";
            displayForm.Click += mDisplayForm_Click;
            contextMenu.Items.Add(displayForm);

            exitApplication.Text = "Exit";
            exitApplication.Click += mExitApplication_Click;
            contextMenu.Items.Add(exitApplication);
            Trace.WriteLine("Obedience started");
            scanner = new AcdController(new IPEndPoint(new IPAddress(new byte[] {10, 0, 3, 220}), 5003));
            //scanner.Reboot();
            Trace.AutoFlush = true;
            scanner.ConnectedChanged += new ConnectedChangedEventHandler(scanner_ConnectedChanged);
        }
コード例 #12
0
        public VS2005DockPaneCaption(DockPane pane) : base(pane)
        {
            SuspendLayout();

            Font = PluginCore.PluginBase.Settings.DefaultFont;
            m_components = new Container();
            m_toolTip = new ToolTip(Components);

            // Adjust size based on scale
            double scale = ScaleHelper.GetScale();
            if (scale >= 2) // 200%
            {
                _TextGapTop = 3;
                _TextGapBottom = 6;
                _ButtonGapBottom = 4;
            }
            else if (scale >= 1.5) // 150%
            {
                _TextGapTop = 2;
                _TextGapBottom = 4;
                _ButtonGapBottom = 4;
            }
            else if (scale >= 1.2) // 120%
            {
                _TextGapTop = 2;
                _TextGapBottom = 2;
            }
            // Else 100%

            ResumeLayout();
        }
コード例 #13
0
ファイル: Writer.cs プロジェクト: karaaie/SLInfo
 private void ConfigurePort(string comPort)
 {
     IContainer components = new Container();
     _arduinoPort = new SerialPort(components);
     _arduinoPort.PortName = comPort;
     _arduinoPort.BaudRate = 9600;
 }
コード例 #14
0
 /// <summary>
 ///    Required method for Designer support - do not modify
 ///    the contents of this method with the code editor.
 /// </summary>
 void InitializeComponent () {
     this.components = new System.ComponentModel.Container ();
     this.ForeColor = System.Drawing.Color.White;
     this.BackColor = System.Drawing.Color.Black;
     this.Size = new System.Drawing.Size(100, 23);
     this.Text = "FlashTrackBar";
 }
コード例 #15
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.snoop_     = new NuGenSnoopControl (); 
			this.timer1 = new System.Windows.Forms.Timer(this.components);
			this.SuspendLayout();
			// 
			// snoop_
			// 
			this.snoop_.Dock = System.Windows.Forms.DockStyle.Fill;			
			// 
			// timer1
			// 
			this.timer1.Interval = 10;
			this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
			// 
			// WindowPropertiesView
			// 
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.snoop_});
			this.Name = "SnoopCarrier";
			this.Size = new System.Drawing.Size(280, 384);
			this.ResumeLayout(false);

		}
コード例 #16
0
ファイル: MainForm.cs プロジェクト: jcouv/jcouv.github.io
		public Form1()
		{
			this.components = new System.ComponentModel.Container();
			this.Size = new System.Drawing.Size(300,300);
			this.Text = "Scribble.net";
			this.BackColor = Color.White;
			this.MouseDown += 
				new System.Windows.Forms.MouseEventHandler(this.Form_MouseDown);
			this.MouseMove += new MouseEventHandler(MouseMoveHandler);
			this.MouseUp += new MouseEventHandler(MouseUpHandler);
			
			label1 = new System.Windows.Forms.Label();
			label1.Size = new System.Drawing.Size(200, 20);
			label1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			label1.Text = "First Name:";
			this.Controls.Add(label1);
			
			this.SuspendLayout();
			this.Load += new System.EventHandler(this.Form1_Load);

			myBrush = new System.Drawing.SolidBrush(Color.Black);
			
			recognizer = new AlphaRecognizer();
			recognizer.Initialize();
			label1.Text = recognizer.Verify();
		}
コード例 #17
0
ファイル: GaGa.cs プロジェクト: JamieSharpe/GaGa
        /// <summary>
        /// GaGa implementation.
        /// </summary>
        /// <param name="streamsFilePath">
        /// Path for the streams file to use.
        /// </param>
        public GaGa(String streamsFilePath)
        {
            // streams file and loader:
            streamsFile = new StreamsFile(streamsFilePath, "GaGa.Resources.streams.ini");
            menuLoader = new StreamsMenuLoader(streamsFile);

            // gui components:
            container = new Container();

            notifyIcon = new NotifyIcon(container);
            notifyIcon.Visible = true;

            MenuRecreate();

            // error items:
            errorOpenItem = new MenuItem("Error opening streams file (click for details)", OnErrorOpenItemClick);
            errorReadItem = new MenuItem("Error reading streams file (click for details)", OnErrorReadItemClick);

            // constant items:
            editItem = new MenuItem("Edit streams file", OnEditItemClick);
            exitItem = new MenuItem("Exit", OnExitItemClick);

            // playing:
            player = new Player(notifyIcon);
        }
コード例 #18
0
ファイル: RuleAndGrid.cs プロジェクト: EdgarEDT/myitoppsp
 // Methods
 public RuleAndGrid()
 {
     this.components = null;
     this.preferenceDocument = null;
     this.InitializeComponent();
     this.UpdateLabel();
 }
コード例 #19
0
ファイル: Form1.cs プロジェクト: neojjang/cubepdf
 public Form1(Container.Dictionary<string, string> response)
 {
     InitializeComponent();
     this.UpdateNotifier.Text = response["MESSAGE"];
     this.UpdateNotifier.BalloonTipText = response["MESSAGE"];
     this.uri_ = response["URL"];
     this.UpdateNotifier.ShowBalloonTip(30000);
 }
コード例 #20
0
ファイル: BaseGL.cs プロジェクト: CanteroA/letrasOpenGL
		public BaseGLControl()
		{
			InitializeComponent();
			this.components = new System.ComponentModel.Container();
			//Attach load and size change event handlers
			this.Load += new EventHandler(InitializeGL);
			this.SizeChanged += new EventHandler(ResizeGL);
		}
コード例 #21
0
		public MultiColumnComboBox()
		{
			if(components == null)
				components = null;
			Data = new DataTable(); //Make sure the DataTable is not blank
			Init();

		}
コード例 #22
0
ファイル: Arranger.cs プロジェクト: teetow/teevegas
		/// <summary>
		/// Creates a new arranger control
		/// </summary>
		public Arranger(Container Components)
		{
			components = Components;
			// This call is required by the Windows.Forms Form Designer.
			InitializeComponent();

			// TODO: Add any initialization after the InitializeComponent call
		}
コード例 #23
0
ファイル: Form1.cs プロジェクト: cokeetang/compass-bundle
        public main()
        {
            IniParser.FileIniDataParser parser = new FileIniDataParser();
            IniData parsedData = parser.LoadFile("setting/ui-setting.ini");
            rubyPath = parsedData["PATH"]["ruby"];
            compassPath = parsedData["PATH"]["compass"];
            dirListPath = parsedData["PATH"]["dirlist"];
            frameworkPath = parsedData["PATH"]["framework"];
            ///

            components = new System.ComponentModel.Container();
            this.contextMenu1 = new System.Windows.Forms.ContextMenu();
            this.menuItem0 = new System.Windows.Forms.MenuItem();
            this.menuItem1 = new System.Windows.Forms.MenuItem();

            // Initialize contextMenu1
            this.contextMenu1.MenuItems.AddRange(
                        new System.Windows.Forms.MenuItem[] { this.menuItem0,this.menuItem1 });

            // Initialize menuItem1
            this.menuItem1.Index = 1;
            this.menuItem1.Text = "E&xit";
            this.menuItem1.Click += new System.EventHandler(this.exitWindowHander);

            this.menuItem0.Index = 0;
            this.menuItem0.Text = "H&ide";
            this.menuItem0.Click += new System.EventHandler(this.showWindowHander);
            // Set up how the form should be displayed.
            this.ClientSize = new System.Drawing.Size(292, 266);
            this.Text = "Compass Bundle UI";

            // Create the NotifyIcon.
            this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);

            // The Icon property sets the icon that will appear
            // in the systray for this application.

            notifyIcon1.Icon = new Icon(Directory.GetCurrentDirectory()+"/icon/compass_icon.ico");

            // The ContextMenu property sets the menu that will
            // appear when the systray icon is right clicked.
            notifyIcon1.ContextMenu = this.contextMenu1;

            // The Text property sets the text that will be displayed,
            // in a tooltip, when the mouse hovers over the systray icon.
            notifyIcon1.Text = "Compass Bundle UI";
            notifyIcon1.Visible = true;

            // Handle the DoubleClick event to activate the form.
            notifyIcon1.DoubleClick += new System.EventHandler(this.notifyIcon1_DoubleClick);
            //MessageBox.Show(compassBatPath);
            InitializeComponent();
            this.loadList();
            this.add2CLI("load the default folder list.");
            this.write2Xml();
            this.initCreateList();
            this.Show();
        }
コード例 #24
0
		static void Instantiate(ITemplate template, Control placeHolder)
		{
			if (template != null)
			{
				var container = new Container();
				template.InstantiateIn(container);
				placeHolder.Controls.Add(container);
			}
		}
コード例 #25
0
 protected override void Dispose(bool disposing)
 {
     if (disposing && components != null)
     {
         components.Dispose();
         components = null;
     }
     base.Dispose(disposing);
 }
コード例 #26
0
ファイル: Pager.cs プロジェクト: windygu/asxinyunet
 public Pager(int recordCount, int pageSize)
 {
     this.container_0 = null;
     this.InitializeComponent();
     this.int_0 = pageSize;
     this.int_2 = recordCount;
     this.int_3 = 1;
     this.InitPageInfo();
 }
コード例 #27
0
 protected FormLog()
 {
     InitializeComponent();
     repaintTimer = new Timer { Interval = 1000 };
     components = new Container();
     components.Add(repaintTimer);
     repaintTimer.Tick += (s, e) => UpdateLines();
     instance = this;
 }
コード例 #28
0
ファイル: Pager.cs プロジェクト: windygu/asxinyunet
 public Pager()
 {
     this.container_0 = null;
     this.InitializeComponent();
     this.int_0 = 50;
     this.int_2 = 0;
     this.int_3 = 1;
     this.InitPageInfo();
 }
コード例 #29
0
 private void InitializeComponent()
 {
     this.components = new Container();
     base.SuspendLayout();
     this.Font = new Font("Tahoma", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0xcc);
     base.Name = "BaseStep";
     base.Size = new Size(0x225, 290);
     base.ResumeLayout(false);
 }
コード例 #30
0
ファイル: AStar.cs プロジェクト: nsbgamer/NSBRTS
 public void CopyBoard(Container[,] _container)
 {
     for(int x = 0; x < boardSize.X; x++)
         for (int y = 0; y < boardSize.Y; y++)
         {
             boardValues[x, y] = 10000;
             boardContainer[x, y] = _container[x, y];
         }
 }
コード例 #31
0
 public RecordlikeClass(string @string, System.TimeSpan timeSpan, System.ComponentModel.Container propertyWithPrivateSetter, System.Collections.Generic.IEnumerable <int> var)
 {
     if (@string == null)
     {
         throw new System.ArgumentNullException(nameof(@string));
     }
     if (propertyWithPrivateSetter == null)
     {
         throw new System.ArgumentNullException(nameof(propertyWithPrivateSetter));
     }
     if (var == null)
     {
         throw new System.ArgumentNullException(nameof(var));
     }
     String   = @string;
     TimeSpan = timeSpan;
     PropertyWithPrivateSetter = propertyWithPrivateSetter;
     this.var = var;
 }
コード例 #32
0
ファイル: FormPrint.cs プロジェクト: JoeFoole/WYSIWYG
    // The Windows Forms Designer requires the following procedure.
    private void InitializeComponent()
    {
        this.components  = new System.ComponentModel.Container();
        this.printButton = new System.Windows.Forms.Button();

        this.ClientSize = new System.Drawing.Size(504, 381);
        this.Text       = "Print Example";

        printButton.ImageAlign =
            System.Drawing.ContentAlignment.MiddleLeft;
        printButton.Location  = new System.Drawing.Point(32, 110);
        printButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
        printButton.TabIndex  = 0;
        printButton.Text      = "Print the file.";
        printButton.Size      = new System.Drawing.Size(136, 40);
        printButton.Click    += new System.EventHandler(printButton_Click);

        this.Controls.Add(printButton);
    }
コード例 #33
0
 public RendererManager()
 {
     components = new System.ComponentModel.Container();
     pal        = Palette.Office2007Blue;
     rnd        = Renderer.Standard;
 }
コード例 #34
0
ファイル: rc_input_control.cs プロジェクト: zhb1190/mw-wingui
 /// <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();
     this.Height = 200;
     this.Width  = 150;
 }
コード例 #35
0
 public MedReportView()
 {
     components = new System.ComponentModel.Container();
     InitializeComponent();
 }
コード例 #36
0
    // This method is required for Designer support.
    private void InitializeComponent()
    {
        this.components       = new System.ComponentModel.Container();
        this.tabPage1         = new System.Windows.Forms.TabPage();
        this.tab2CheckBox3    = new System.Windows.Forms.CheckBox();
        this.tab3RadioButton2 = new System.Windows.Forms.RadioButton();
        this.tabControl1      = new System.Windows.Forms.TabControl();
        this.tab2CheckBox2    = new System.Windows.Forms.CheckBox();
        this.tab2CheckBox1    = new System.Windows.Forms.CheckBox();
        this.tab3RadioButton1 = new System.Windows.Forms.RadioButton();
        this.tab1Label1       = new System.Windows.Forms.Label();
        this.tabPage3         = new System.Windows.Forms.TabPage();
        this.tabPage2         = new System.Windows.Forms.TabPage();
        this.tab1Button1      = new System.Windows.Forms.Button();

        tabPage1.Text             = "tabPage1";
        tabPage1.Size             = new System.Drawing.Size(256, 214);
        tabPage1.TabIndex         = 0;
        tab2CheckBox3.Location    = new System.Drawing.Point(32, 136);
        tab2CheckBox3.Text        = "checkBox3";
        tab2CheckBox3.Size        = new System.Drawing.Size(176, 32);
        tab2CheckBox3.TabIndex    = 2;
        tab2CheckBox3.Visible     = true;
        tab3RadioButton2.Location = new System.Drawing.Point(40, 72);
        tab3RadioButton2.Text     = "radioButton2";
        tab3RadioButton2.Size     = new System.Drawing.Size(152, 24);
        tab3RadioButton2.TabIndex = 1;
        tab3RadioButton2.Visible  = true;
        tabControl1.Location      = new System.Drawing.Point(16, 16);
        tabControl1.Size          = new System.Drawing.Size(264, 240);
        tabControl1.SelectedIndex = 0;
        tabControl1.TabIndex      = 0;
        tab2CheckBox2.Location    = new System.Drawing.Point(32, 80);
        tab2CheckBox2.Text        = "checkBox2";
        tab2CheckBox2.Size        = new System.Drawing.Size(176, 32);
        tab2CheckBox2.TabIndex    = 1;
        tab2CheckBox2.Visible     = true;
        tab2CheckBox1.Location    = new System.Drawing.Point(32, 24);
        tab2CheckBox1.Text        = "checkBox1";
        tab2CheckBox1.Size        = new System.Drawing.Size(176, 32);
        tab2CheckBox1.TabIndex    = 0;
        tab3RadioButton1.Location = new System.Drawing.Point(40, 32);
        tab3RadioButton1.Text     = "radioButton1";
        tab3RadioButton1.Size     = new System.Drawing.Size(152, 24);
        tab3RadioButton1.TabIndex = 0;
        tab1Label1.Location       = new System.Drawing.Point(16, 24);
        tab1Label1.Text           = "label1";
        tab1Label1.Size           = new System.Drawing.Size(224, 96);
        tab1Label1.TabIndex       = 1;
        tabPage3.Text             = "tabPage3";
        tabPage3.Size             = new System.Drawing.Size(256, 214);
        tabPage3.TabIndex         = 2;
        tabPage2.Text             = "tabPage2";
        tabPage2.Size             = new System.Drawing.Size(256, 214);
        tabPage2.TabIndex         = 1;
        tab1Button1.Location      = new System.Drawing.Point(88, 144);
        tab1Button1.Size          = new System.Drawing.Size(80, 40);
        tab1Button1.TabIndex      = 0;
        tab1Button1.Text          = "button1";
        tab1Button1.Click        += new
                                    System.EventHandler(this.tab1Button1_Click);
        this.Text = "Form1";

        // Adds controls to the second tab page.
        tabPage2.Controls.Add(this.tab2CheckBox3);
        tabPage2.Controls.Add(this.tab2CheckBox2);
        tabPage2.Controls.Add(this.tab2CheckBox1);
        // Adds controls to the third tab page.
        tabPage3.Controls.Add(this.tab3RadioButton2);
        tabPage3.Controls.Add(this.tab3RadioButton1);
        // Adds controls to the first tab page.
        tabPage1.Controls.Add(this.tab1Label1);
        tabPage1.Controls.Add(this.tab1Button1);
        // Adds the TabControl to the form.
        this.Controls.Add(this.tabControl1);
        // Adds the tab pages to the TabControl.
        tabControl1.Controls.Add(this.tabPage1);
        tabControl1.Controls.Add(this.tabPage2);
        tabControl1.Controls.Add(this.tabPage3);
    }
コード例 #37
0
ファイル: form1.cs プロジェクト: winxxp/samples
 /// <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.Size       = new System.Drawing.Size(300, 300);
     this.Text       = "Form1";
 }
コード例 #38
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器
 /// 修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     components = new System.ComponentModel.Container();
     this.Name  = "UserControl1";
     this.Size  = new System.Drawing.Size(120, 21);
 }
コード例 #39
0
ファイル: Class1.cs プロジェクト: Ytarumi00/HackU2013
    // This method is required for Designer support.
    private void InitializeComponent(Size W_size)
    {
        this.components           = new System.ComponentModel.Container();
        this.tabControl1          = new System.Windows.Forms.TabControl();
        this.tabPage1             = new System.Windows.Forms.TabPage();
        this.tabPage2             = new System.Windows.Forms.TabPage();
        this.tabPage3             = new System.Windows.Forms.TabPage();
        this.tabPage4             = new System.Windows.Forms.TabPage();
        this.tab1Button           = new MyButton[4];
        this.tab2Button           = new MyButton[4];
        this.tab3Button           = new MyButton[4];
        this.tab4Button           = new MyButton[4];
        this.PictureBox1          = new System.Windows.Forms.PictureBox();
        this.PictureBox1.Size     = new Size(100, 100);
        this.PictureBox1.Location = new Point(560, 500);
        this.canvas1 = new Bitmap(PictureBox1.Width, PictureBox1.Height);
        this.text1   = Graphics.FromImage(canvas1);
        this.fnt     = new Font("MU UI Gothic", 20);
        this.text1.DrawString("Before", fnt, Brushes.Blue, 0, 0);
        PictureBox1.Image         = canvas1;
        this.PictureBox2          = new System.Windows.Forms.PictureBox();
        this.PictureBox2.Size     = new Size(100, 100);
        this.PictureBox2.Location = new Point(680, 500);
        this.canvas2 = new Bitmap(PictureBox2.Width, PictureBox2.Height);
        this.text2   = Graphics.FromImage(canvas2);
        this.text2.DrawString("After", fnt, Brushes.Red, 0, 0);
        PictureBox2.Image = canvas2;


        //江夏側の設定部分
        //Face:UIに出力する顔画像部分のPicture Box
        //picture:OpenCVSharpで顔画像の読み込みクラス
        this.Face        = new System.Windows.Forms.PictureBox();
        this.static_Face = new System.Windows.Forms.PictureBox();
        this.picture     = new opencvsharp_test();

        Face.Location        = new Point(W_size.Width - 660, 10);
        static_Face.Location = new Point(20, 10);
        Face.Image           = picture.testImage.ToBitmap();
        static_Face.Image    = picture.testImage.ToBitmap();
        Face.Size            = new System.Drawing.Size(640, 480);
        static_Face.Size     = new System.Drawing.Size(640, 480);


        int  allowance = 50;
        int  first_x   = 50;
        Size T_size    = new System.Drawing.Size(W_size.Width - 40, 180 - 20);
        Size T_size2   = new System.Drawing.Size(40, 20);
        Size B_size    = new System.Drawing.Size(60, 80);

        tabControl1.Location      = new System.Drawing.Point(20, 530);
        tabControl1.Size          = T_size;
        tabControl1.SelectedIndex = 0;
        tabControl1.TabIndex      = 0;
        tabPage1.Text             = "cheek";
        tabPage1.Size             = T_size2;
        tabPage1.TabIndex         = 0;
        tabPage2.Text             = "eye";
        tabPage2.Size             = T_size2;
        tabPage2.TabIndex         = 1;
        tabPage3.Text             = "mouse";
        tabPage3.Size             = T_size2;
        tabPage3.TabIndex         = 2;
        tabPage4.Text             = "eyeshadow";
        tabPage4.Size             = T_size2;
        tabPage4.TabIndex         = 3;

        get_TabImage Tab1Image = new get_TabImage("TabImages/cheek/", "cheek", 3);

        for (int i = 0; i < 3; i++)
        {
            tab1Button[i] = new MyButton(0, i)
            {
                Image    = Tab1Image.img[i],
                Location = new System.Drawing.Point(first_x + i * (B_size.Width + allowance), T_size.Height / 4),
                Size     = B_size,
                TabIndex = i,
                Cursor   = Cursors.Hand,
            };
            tab1Button[i].Click += new System.EventHandler(this.TabButton_Click);
        }
        get_TabImage Tab2Image = new get_TabImage("TabImages/eye/", "eye", 3);

        for (int i = 0; i < 3; i++)
        {
            tab2Button[i] = new MyButton(1, i)
            {
                Image    = Tab2Image.img[i],
                Location = new System.Drawing.Point(first_x + i * (B_size.Width + allowance), T_size.Height / 4),
                Size     = B_size,
                TabIndex = i,
                Cursor   = Cursors.Hand,
            };
            tab2Button[i].Click += new System.EventHandler(this.TabButton_Click);
        }
        get_TabImage Tab3Image = new get_TabImage("TabImages/mouse/", "mouse", 3);

        for (int i = 0; i < 3; i++)
        {
            tab3Button[i] = new MyButton(2, i)
            {
                Image    = Tab3Image.img[i],
                Location = new System.Drawing.Point(first_x + i * (B_size.Width + allowance), T_size.Height / 4),
                Size     = B_size,
                TabIndex = i,
                Cursor   = Cursors.Hand,
            };
            tab3Button[i].Click += new System.EventHandler(this.TabButton_Click);
        }
        get_TabImage Tab4Image = new get_TabImage("TabImages/eyeshadow/", "eyeshadow", 3);

        for (int i = 0; i < 3; i++)
        {
            tab4Button[i] = new MyButton(3, i)
            {
                Image    = Tab4Image.img[i],
                Location = new System.Drawing.Point(first_x + i * (B_size.Width + allowance), T_size.Height / 4),
                Size     = B_size,
                TabIndex = i,
                Cursor   = Cursors.Hand,
            };
            tab4Button[i].Click += new System.EventHandler(this.TabButton_Click);
        }
        tab1Button[3] = new MyButton(9, 3)
        {
            Text     = "Reset",
            Location = new System.Drawing.Point(T_size.Width - B_size.Width - 20, T_size.Height / 4),
            Size     = B_size,
            TabIndex = 3,
            Cursor   = Cursors.Hand,
        };
        tab1Button[3].Click += new System.EventHandler(this.TabButton_Click);
        tab2Button[3]        = new MyButton(9, 3)
        {
            Text     = "Reset",
            Location = new System.Drawing.Point(T_size.Width - B_size.Width - 20, T_size.Height / 4),
            Size     = B_size,
            TabIndex = 3,
            Cursor   = Cursors.Hand,
        };
        tab2Button[3].Click += new System.EventHandler(this.TabButton_Click);
        tab3Button[3]        = new MyButton(9, 3)
        {
            Text     = "Reset",
            Location = new System.Drawing.Point(T_size.Width - B_size.Width - 20, T_size.Height / 4),
            Size     = B_size,
            TabIndex = 3,
            Cursor   = Cursors.Hand,
        };
        tab3Button[3].Click += new System.EventHandler(this.TabButton_Click);
        tab4Button[3]        = new MyButton(9, 3)
        {
            Text     = "Reset",
            Location = new System.Drawing.Point(T_size.Width - B_size.Width - 20, T_size.Height / 4),
            Size     = B_size,
            TabIndex = 3,
            Cursor   = Cursors.Hand,
        };
        tab4Button[3].Click += new System.EventHandler(this.TabButton_Click);

        this.Text = "Form1";

        for (int i = 0; i < 4; i++)
        {
            tabPage1.Controls.Add(this.tab1Button[i]);
        }
        for (int i = 0; i < 4; i++)
        {
            tabPage2.Controls.Add(this.tab2Button[i]);
        }
        for (int i = 0; i < 4; i++)
        {
            tabPage3.Controls.Add(this.tab3Button[i]);
        }
        for (int i = 0; i < 4; i++)
        {
            tabPage4.Controls.Add(this.tab4Button[i]);
        }

        this.Controls.Add(this.tabControl1);

        this.Controls.Add(this.PictureBox1);
        this.Controls.Add(this.PictureBox2);
        this.Controls.Add(this.Face);
        this.Controls.Add(this.static_Face);

        tabControl1.Controls.Add(this.tabPage1);
        tabControl1.Controls.Add(this.tabPage2);
        tabControl1.Controls.Add(this.tabPage3);
        tabControl1.Controls.Add(this.tabPage4);
    }
コード例 #40
0
ファイル: tab_sample.cs プロジェクト: Ytarumi00/HackU2013
    // This method is required for Designer support.
    private void InitializeComponent(Size W_size)
    {
        this.components  = new System.ComponentModel.Container();
        this.tabControl1 = new System.Windows.Forms.TabControl();
        this.tabPage1    = new System.Windows.Forms.TabPage();
        this.tabPage2    = new System.Windows.Forms.TabPage();
        this.tabPage3    = new System.Windows.Forms.TabPage();
        this.tab1Button  = new MyButton[3];
        this.tab2Button  = new MyButton[3];
        this.tab3Button  = new MyButton[3];
        //    this.tab2CheckBox3 = new System.Windows.Forms.CheckBox();
        //    this.tab3RadioButton2 = new System.Windows.Forms.RadioButton();
        //    this.tab2CheckBox2 = new System.Windows.Forms.CheckBox();
        //    this.tab2CheckBox1 = new System.Windows.Forms.CheckBox();
        //    this.tab3RadioButton1 = new System.Windows.Forms.RadioButton();
        //    this.tab1Label1 = new System.Windows.Forms.Label();
        //    this.tab1Button1 = new System.Windows.Forms.Button();

        int  allowance = 50;
        int  first_x   = 50;
        Size T_size    = new System.Drawing.Size(W_size.Width - 40, W_size.Height / 2 - 40);
        Size T_size2   = new System.Drawing.Size(640, 20);
        Size B_size    = new System.Drawing.Size(60, 80);

        tabControl1.Location      = new System.Drawing.Point(20, W_size.Height / 2 + 30);
        tabControl1.Size          = T_size;
        tabControl1.SelectedIndex = 0;
        tabControl1.TabIndex      = 0;
        tabPage1.Text             = "cheek";
        tabPage1.Size             = T_size2;
        tabPage1.TabIndex         = 0;
        tabPage2.Text             = "eye";
        tabPage2.Size             = T_size2;
        tabPage2.TabIndex         = 1;
        tabPage3.Text             = "mouse";
        tabPage3.Size             = T_size2;
        tabPage3.TabIndex         = 2;

        get_TabImage Tab1Image = new get_TabImage("/home/yu-suke/Pictures/cheek/", "cheek", 3);

        for (int i = 0; i < 3; i++)
        {
            tab1Button[i] = new MyButton(0, i)
            {
                Image    = Tab1Image.img[i],
                Location = new System.Drawing.Point(first_x + i * (B_size.Width + allowance), T_size.Height / 2),
                Size     = B_size,
                TabIndex = i,
            };
            tab1Button[i].Click += new System.EventHandler(this.TabButton_Click);
        }
        get_TabImage Tab2Image = new get_TabImage("/home/yu-suke/Pictures/eye/", "eye", 3);

        for (int i = 0; i < 3; i++)
        {
            tab2Button[i] = new MyButton(1, i)
            {
                Image    = Tab2Image.img[i],
                Location = new System.Drawing.Point(first_x + i * (B_size.Width + allowance), T_size.Height / 2),
                Size     = B_size,
                TabIndex = i,
            };
            tab2Button[i].Click += new System.EventHandler(this.TabButton_Click);
        }
        get_TabImage Tab3Image = new get_TabImage("/home/yu-suke/Pictures/mouse/", "mouse", 3);

        for (int i = 0; i < 3; i++)
        {
            tab3Button[i] = new MyButton(2, i)
            {
                Image    = Tab3Image.img[i],
                Location = new System.Drawing.Point(first_x + i * (B_size.Width + allowance), T_size.Height / 2),
                Size     = B_size,
                TabIndex = i,
            };
            tab3Button[i].Click += new System.EventHandler(this.TabButton_Click);
        }

        //    tab2CheckBox3.Location = new System.Drawing.Point(32, 136);
        //    tab2CheckBox3.Text = "checkBox3";
        //    tab2CheckBox3.Size = new System.Drawing.Size(176, 32);
        //    tab2CheckBox3.TabIndex = 2;
        //    tab2CheckBox3.Visible = true;
        //    tab3RadioButton2.Location = new System.Drawing.Point(40, 72);
        //    tab3RadioButton2.Text = "radioButton2";
        //    tab3RadioButton2.Size = new System.Drawing.Size(152, 24);
        //    tab3RadioButton2.TabIndex = 1;
        //    tab3RadioButton2.Visible = true;
        //    tab2CheckBox2.Location = new System.Drawing.Point(32, 80);
        //    tab2CheckBox2.Text = "checkBox2";
        //    tab2CheckBox2.Size = new System.Drawing.Size(176, 32);
        //    tab2CheckBox2.TabIndex = 1;
        //    tab2CheckBox2.Visible = true;
        //    tab2CheckBox1.Location = new System.Drawing.Point(32, 24);
        //    tab2CheckBox1.Text = "checkBox1";
        //    tab2CheckBox1.Size = new System.Drawing.Size(176, 32);
        //    tab2CheckBox1.TabIndex = 0;
        //    tab3RadioButton1.Location = new System.Drawing.Point(40, 32);
        //    tab3RadioButton1.Text = "radioButton1";
        //    tab3RadioButton1.Size = new System.Drawing.Size(152, 24);
        //    tab3RadioButton1.TabIndex = 0;
        //    tab1Button1.Location = new System.Drawing.Point(88, 144);
        //    tab1Button1.Size = new System.Drawing.Size(80, 40);
        //    tab1Button1.TabIndex = 0;
        //    tab1Button1.Text = "button1";
        //    tab1Button.Click += new
        //      System.EventHandler(this.tab1Button_Click);
        this.Text = "Form1";

        // Adds controls to the second tab page.
        //    tabPage2.Controls.Add(this.tab2CheckBox3);
        //    tabPage2.Controls.Add(this.tab2CheckBox2);
        //    tabPage2.Controls.Add(this.tab2CheckBox1);
        // Adds controls to the third tab page.
        //    tabPage3.Controls.Add(this.tab3RadioButton2);
        //    tabPage3.Controls.Add(this.tab3RadioButton1);
        // Adds controls to the first tab page.
        //    tabPage1.Controls.Add(this.tab1Label1);
        //    tabPage1.Controls.Add(this.tab1Button1);
        for (int i = 0; i < 3; i++)
        {
            tabPage1.Controls.Add(this.tab1Button[i]);
        }
        for (int i = 0; i < 3; i++)
        {
            tabPage2.Controls.Add(this.tab2Button[i]);
        }
        for (int i = 0; i < 3; i++)
        {
            tabPage3.Controls.Add(this.tab3Button[i]);
        }
        // Adds the TabControl to the form.
        this.Controls.Add(this.tabControl1);
        // Adds the tab pages to the TabControl.
        tabControl1.Controls.Add(this.tabPage1);
        tabControl1.Controls.Add(this.tabPage2);
        tabControl1.Controls.Add(this.tabPage3);
    }
コード例 #41
0
ファイル: HotKey.cs プロジェクト: yoshikixxxx/poderosa
 /// <summary>
 /// デザイナ サポートに必要なメソッドです。このメソッドの内容を
 /// コード エディタで変更しないでください。
 /// </summary>
 private void InitializeComponent()
 {
     components   = new System.ComponentModel.Container();
     this.ImeMode = ImeMode.Disable;
 }
コード例 #42
0
 private void Diseño_Forma()
 {
     components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Almacen));
     groupBoxdatos              = new System.Windows.Forms.GroupBox();
     txt_Lugar                  = new System.Windows.Forms.TextBox();
     txt_Nombre                 = new System.Windows.Forms.TextBox();
     lbl_Lugar                  = new System.Windows.Forms.Label();
     lbl_Nombre                 = new System.Windows.Forms.Label();
     menuStrip1                 = new System.Windows.Forms.MenuStrip();
     archivoToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     nuevoToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
     abrirToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
     toolStripSeparator         = new System.Windows.Forms.ToolStripSeparator();
     guardarToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     toolStripSeparator1        = new System.Windows.Forms.ToolStripSeparator();
     salirToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
     editarToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     modificarToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     eliminarToolStripMenuItem  = new System.Windows.Forms.ToolStripMenuItem();
     ayudaToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
     acercadeToolStripMenuItem  = new System.Windows.Forms.ToolStripMenuItem();
     errorProvider1             = new System.Windows.Forms.ErrorProvider(components);
     pic_Almacen                = new System.Windows.Forms.PictureBox();
     groupBoxdatos.SuspendLayout();
     menuStrip1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(errorProvider1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(pic_Almacen)).BeginInit();
     SuspendLayout();
     pic_Logo                   = new System.Windows.Forms.PictureBox();
     components                 = new System.ComponentModel.Container();
     groupBoxdatos              = new System.Windows.Forms.GroupBox();
     txt_Lugar                  = new System.Windows.Forms.TextBox();
     txt_Nombre                 = new System.Windows.Forms.TextBox();
     lbl_Lugar                  = new System.Windows.Forms.Label();
     lbl_Nombre                 = new System.Windows.Forms.Label();
     menuStrip1                 = new System.Windows.Forms.MenuStrip();
     archivoToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     nuevoToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
     abrirToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
     toolStripSeparator         = new System.Windows.Forms.ToolStripSeparator();
     guardarToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     toolStripSeparator1        = new System.Windows.Forms.ToolStripSeparator();
     salirToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
     editarToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     modificarToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     eliminarToolStripMenuItem  = new System.Windows.Forms.ToolStripMenuItem();
     ayudaToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
     acercadeToolStripMenuItem  = new System.Windows.Forms.ToolStripMenuItem();
     errorProvider1             = new System.Windows.Forms.ErrorProvider(components);
     pic_Almacen                = new System.Windows.Forms.PictureBox();
     groupBoxdatos.SuspendLayout();
     menuStrip1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(errorProvider1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(pic_Almacen)).BeginInit();
     SuspendLayout();
     //
     // groupBoxdatos
     //
     groupBoxdatos.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     groupBoxdatos.Controls.Add(txt_Lugar);
     groupBoxdatos.Controls.Add(txt_Nombre);
     groupBoxdatos.Controls.Add(lbl_Lugar);
     groupBoxdatos.Controls.Add(lbl_Nombre);
     groupBoxdatos.Location = new System.Drawing.Point(11, 69);
     groupBoxdatos.Name     = "groupBoxdatos";
     groupBoxdatos.Size     = new System.Drawing.Size(418, 130);
     groupBoxdatos.TabIndex = 75;
     groupBoxdatos.TabStop  = false;
     groupBoxdatos.Text     = "Datos del almacen";
     //
     // txt_Lugar
     //
     txt_Lugar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                              | System.Windows.Forms.AnchorStyles.Left)));
     txt_Lugar.Location  = new System.Drawing.Point(126, 77);
     txt_Lugar.MaxLength = 100;
     txt_Lugar.Name      = "txt_Lugar";
     txt_Lugar.Size      = new System.Drawing.Size(270, 40);
     txt_Lugar.Multiline = true;
     txt_Lugar.TabIndex  = 73;
     txt_Lugar.KeyPress += new System.Windows.Forms.KeyPressEventHandler(txt_Lugar_KeyPress);
     //
     // txt_Nombre
     //
     txt_Nombre.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                               | System.Windows.Forms.AnchorStyles.Left)));
     txt_Nombre.Location  = new System.Drawing.Point(126, 52);
     txt_Nombre.MaxLength = 25;
     txt_Nombre.Name      = "txt_Nombre";
     txt_Nombre.Size      = new System.Drawing.Size(127, 20);
     txt_Nombre.TabIndex  = 72;
     txt_Nombre.KeyPress += new System.Windows.Forms.KeyPressEventHandler(txt_Nombre_KeyPress);
     //
     // lbl_Lugar
     //
     lbl_Lugar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                              | System.Windows.Forms.AnchorStyles.Left)));
     lbl_Lugar.AutoSize = true;
     lbl_Lugar.Location = new System.Drawing.Point(37, 85);
     lbl_Lugar.Name     = "lbl_Lugar";
     lbl_Lugar.Size     = new System.Drawing.Size(34, 13);
     lbl_Lugar.TabIndex = 71;
     lbl_Lugar.Text     = "Lugar";
     //
     // lbl_Nombre
     //
     lbl_Nombre.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                               | System.Windows.Forms.AnchorStyles.Left)));
     lbl_Nombre.AutoSize = true;
     lbl_Nombre.Location = new System.Drawing.Point(37, 56);
     lbl_Nombre.Name     = "lbl_Nombre";
     lbl_Nombre.Size     = new System.Drawing.Size(44, 13);
     lbl_Nombre.TabIndex = 69;
     lbl_Nombre.Text     = "Nombre";
     //
     // menuStrip1
     //
     menuStrip1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(186)))), ((int)(((byte)(82)))));
     menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         archivoToolStripMenuItem,
         editarToolStripMenuItem,
         ayudaToolStripMenuItem
     });
     menuStrip1.Location = new System.Drawing.Point(0, 0);
     menuStrip1.Name     = "menuStrip1";
     menuStrip1.Size     = new System.Drawing.Size(448, 24);
     menuStrip1.TabIndex = 77;
     menuStrip1.Text     = "menuStrip1";
     //
     // archivoToolStripMenuItem
     //
     archivoToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         nuevoToolStripMenuItem,
         abrirToolStripMenuItem,
         toolStripSeparator,
         guardarToolStripMenuItem,
         toolStripSeparator1,
         salirToolStripMenuItem
     });
     archivoToolStripMenuItem.Name = "archivoToolStripMenuItem";
     archivoToolStripMenuItem.Size = new System.Drawing.Size(55, 20);
     archivoToolStripMenuItem.Text = "&Archivo";
     //
     // nuevoToolStripMenuItem
     //
     nuevoToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("nuevoToolStripMenuItem.Image")));
     nuevoToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Nuevo;
     nuevoToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta;
     nuevoToolStripMenuItem.Name         = "nuevoToolStripMenuItem";
     nuevoToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N)));
     nuevoToolStripMenuItem.Size         = new System.Drawing.Size(151, 22);
     nuevoToolStripMenuItem.Text         = "&Nuevo";
     nuevoToolStripMenuItem.Click       += new System.EventHandler(nuevoToolStripMenuItem_Click);
     //
     // abrirToolStripMenuItem
     //
     abrirToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("abrirToolStripMenuItem.Image")));
     abrirToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Abrir;
     abrirToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta;
     abrirToolStripMenuItem.Name         = "abrirToolStripMenuItem";
     abrirToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
     abrirToolStripMenuItem.Size         = new System.Drawing.Size(151, 22);
     abrirToolStripMenuItem.Text         = "&Abrir";
     abrirToolStripMenuItem.Click       += new System.EventHandler(abrirToolStripMenuItem_Click);
     //
     // toolStripSeparator
     //
     toolStripSeparator.Name = "toolStripSeparator";
     toolStripSeparator.Size = new System.Drawing.Size(148, 6);
     //
     // guardarToolStripMenuItem
     //
     guardarToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("guardarToolStripMenuItem.Image")));
     guardarToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Guardar;
     guardarToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta;
     guardarToolStripMenuItem.Name         = "guardarToolStripMenuItem";
     guardarToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));
     guardarToolStripMenuItem.Size         = new System.Drawing.Size(151, 22);
     guardarToolStripMenuItem.Text         = "&Guardar";
     guardarToolStripMenuItem.Click       += new System.EventHandler(guardarToolStripMenuItem_Click);
     //
     // toolStripSeparator1
     //
     toolStripSeparator1.Name = "toolStripSeparator1";
     toolStripSeparator1.Size = new System.Drawing.Size(148, 6);
     //
     // salirToolStripMenuItem
     //
     salirToolStripMenuItem.Name   = "salirToolStripMenuItem";
     salirToolStripMenuItem.Size   = new System.Drawing.Size(151, 22);
     salirToolStripMenuItem.Text   = "&Salir";
     salirToolStripMenuItem.Click += new System.EventHandler(salirToolStripMenuItem_Click);
     //
     // editarToolStripMenuItem
     //
     editarToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         modificarToolStripMenuItem,
         eliminarToolStripMenuItem
     });
     editarToolStripMenuItem.Name = "editarToolStripMenuItem";
     editarToolStripMenuItem.Size = new System.Drawing.Size(47, 20);
     editarToolStripMenuItem.Text = "&Editar";
     //
     // modificarToolStripMenuItem
     //
     modificarToolStripMenuItem.Enabled = false;
     modificarToolStripMenuItem.Image   = global::Sistema_Shajobe.Properties.Resources.Modificar;
     modificarToolStripMenuItem.Name    = "modificarToolStripMenuItem";
     modificarToolStripMenuItem.Size    = new System.Drawing.Size(117, 22);
     modificarToolStripMenuItem.Text    = "Modificar";
     modificarToolStripMenuItem.Click  += new System.EventHandler(modificarToolStripMenuItem_Click);
     //
     // eliminarToolStripMenuItem
     //
     eliminarToolStripMenuItem.Enabled = false;
     eliminarToolStripMenuItem.Image   = global::Sistema_Shajobe.Properties.Resources.Borrar;
     eliminarToolStripMenuItem.Name    = "eliminarToolStripMenuItem";
     eliminarToolStripMenuItem.Size    = new System.Drawing.Size(117, 22);
     eliminarToolStripMenuItem.Text    = "Eliminar";
     eliminarToolStripMenuItem.Visible = false;
     eliminarToolStripMenuItem.Click  += new System.EventHandler(eliminarToolStripMenuItem_Click);
     //
     // ayudaToolStripMenuItem
     //
     ayudaToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         acercadeToolStripMenuItem
     });
     ayudaToolStripMenuItem.Name = "ayudaToolStripMenuItem";
     ayudaToolStripMenuItem.Size = new System.Drawing.Size(50, 20);
     ayudaToolStripMenuItem.Text = "Ay&uda";
     //
     // acercadeToolStripMenuItem
     //
     acercadeToolStripMenuItem.Name = "acercadeToolStripMenuItem";
     acercadeToolStripMenuItem.Size = new System.Drawing.Size(134, 22);
     acercadeToolStripMenuItem.Text = "&Acerca de...";
     //
     // errorProvider1
     //
     errorProvider1.ContainerControl = this;
     //
     // pic_Almacen
     //
     pic_Almacen.BackgroundImage       = global::Sistema_Shajobe.Properties.Resources.Almacen;
     pic_Almacen.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     pic_Almacen.Location = new System.Drawing.Point(351, 25);
     pic_Almacen.Name     = "pic_Almacen";
     pic_Almacen.Size     = new System.Drawing.Size(85, 67);
     pic_Almacen.TabIndex = 79;
     pic_Almacen.TabStop  = false;
     //
     // pic_Logo
     //
     pic_Logo.BackgroundImage       = global::Sistema_Shajobe.Properties.Resources.Logo_Shajobe;
     pic_Logo.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     pic_Logo.Location = new System.Drawing.Point(280, 200);
     pic_Logo.Name     = "pic_Logo";
     pic_Logo.Size     = new System.Drawing.Size(152, 70);
     pic_Logo.TabIndex = 13;
     pic_Logo.TabStop  = false;
     //
     // Almacen
     //
     AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     ClientSize          = new System.Drawing.Size(448, 284);
     Controls.Add(pic_Almacen);
     Controls.Add(menuStrip1);
     Controls.Add(pic_Logo);
     Controls.Add(groupBoxdatos);
     BackColor     = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(228)))), ((int)(((byte)(196)))));
     FormClosing  += new System.Windows.Forms.FormClosingEventHandler(Almacen_FormClosing);
     Icon          = global::Sistema_Shajobe.Properties.Resources.Almacen_ICO;
     MaximizeBox   = false;
     MaximumSize   = new System.Drawing.Size(454, 306);
     MinimumSize   = new System.Drawing.Size(454, 306);
     Name          = "Almacen";
     StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     Text          = "Almacen";
     Load         += new System.EventHandler(Almacen_Load);
     groupBoxdatos.ResumeLayout(false);
     groupBoxdatos.PerformLayout();
     menuStrip1.ResumeLayout(false);
     menuStrip1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(errorProvider1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(pic_Almacen)).EndInit();
     ResumeLayout(false);
     PerformLayout();
 }
コード例 #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();
 }
コード例 #44
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.lblLivesTitle = new System.WinForms.Label();
     this.lblLives      = new System.WinForms.Label();
     this.lblVersion    = new System.WinForms.Label();
     this.lblScoreTitle = new System.WinForms.Label();
     this.lblAppName    = new System.WinForms.Label();
     this.lblScore      = new System.WinForms.Label();
     //@this.TrayLargeIcon = false;
     //@this.TrayAutoArrange = true;
     //@this.TrayHeight = 0;
     lblLivesTitle.Location = new System.Drawing.Point(8, 0);
     lblLivesTitle.Text     = "Lives Remaining:";
     lblLivesTitle.Size     = new System.Drawing.Size(100, 16);
     lblLivesTitle.Font     = new System.Drawing.Font("Tahoma", 8);
     lblLivesTitle.TabIndex = 0;
     lblLives.Location      = new System.Drawing.Point(8, 16);
     lblLives.Text          = "0";
     lblLives.Size          = new System.Drawing.Size(100, 27);
     lblLives.BorderStyle   = System.WinForms.BorderStyle.Fixed3D;
     lblLives.ForeColor     = System.Drawing.Color.Lime;
     lblLives.Font          = new System.Drawing.Font("Times New Roman", 18, System.Drawing.FontStyle.Bold);
     lblLives.TabIndex      = 3;
     lblLives.BackColor     = (System.Drawing.Color)System.Drawing.Color.FromARGB(64, 0, 64);
     lblLives.TextAlign     = System.WinForms.HorizontalAlignment.Center;
     lblVersion.Location    = new System.Drawing.Point(112, 32);
     lblVersion.Text        = "Version: 0.0";
     lblVersion.Size        = new System.Drawing.Size(176, 16);
     lblVersion.Font        = new System.Drawing.Font("Tahoma", 8);
     lblVersion.TabIndex    = 5;
     lblVersion.TextAlign   = System.WinForms.HorizontalAlignment.Center;
     lblScoreTitle.Location = new System.Drawing.Point(288, 0);
     lblScoreTitle.Text     = "Score:";
     lblScoreTitle.Size     = new System.Drawing.Size(100, 16);
     lblScoreTitle.Font     = new System.Drawing.Font("Tahoma", 8);
     lblScoreTitle.TabIndex = 1;
     lblAppName.Location    = new System.Drawing.Point(112, 0);
     lblAppName.Text        = "WinBlock";
     lblAppName.Size        = new System.Drawing.Size(176, 32);
     lblAppName.ForeColor   = System.Drawing.Color.Purple;
     lblAppName.Font        = new System.Drawing.Font("Comic Sans MS", 20, System.Drawing.FontStyle.Bold);
     lblAppName.TabIndex    = 4;
     lblAppName.TextAlign   = System.WinForms.HorizontalAlignment.Center;
     lblScore.Location      = new System.Drawing.Point(288, 16);
     lblScore.Text          = "0";
     lblScore.Size          = new System.Drawing.Size(100, 27);
     lblScore.BorderStyle   = System.WinForms.BorderStyle.Fixed3D;
     lblScore.ForeColor     = System.Drawing.Color.Lime;
     lblScore.Font          = new System.Drawing.Font("Times New Roman", 18, System.Drawing.FontStyle.Bold);
     lblScore.TabIndex      = 2;
     lblScore.BackColor     = (System.Drawing.Color)System.Drawing.Color.FromARGB(64, 0, 64);
     lblScore.TextAlign     = System.WinForms.HorizontalAlignment.Center;
     this.Size = new System.Drawing.Size(392, 48);
     this.Controls.Add(this.lblVersion);
     this.Controls.Add(this.lblAppName);
     this.Controls.Add(this.lblLives);
     this.Controls.Add(this.lblScore);
     this.Controls.Add(this.lblScoreTitle);
     this.Controls.Add(this.lblLivesTitle);
 }
コード例 #45
0
 private void InitializeComponent()
 {
     components         = new System.ComponentModel.Container();
     this.DropDownStyle = DropDownStyle.DropDownList;
 }
コード例 #46
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();
     this.ServiceName = "AnalysisService";
 }
コード例 #47
0
ファイル: helper.cs プロジェクト: zhongjishiyan/instrontest
 private void InitializeComponent()
 {
     this.m_components = new System.ComponentModel.Container();
     this.TabStop      = false;
 }