コード例 #1
0
ファイル: TrainDrukteForm.cs プロジェクト: grasmanek94/t22-4
        public TrainDrukteForm()
        {
            InitializeComponent();
            timer1.Start();

            _arduino = null;
            _ledControl = null;

            _byteViewer = new ByteViewer();
            _byteViewer.Dock = DockStyle.Fill;
            panel1.Controls.Add(_byteViewer);

            _trackBars = new TrackBar[6]{ tb1, tb2, tb3, tb4, tb5, tb6 };
            _colorCodes = new Color[3] { Color.White, Color.Green, Color.Red };

            SetBarsState(false);

            foreach (TrackBar bar in _trackBars)
            {
                bar.ValueChanged += bars_ValueChanged;
            }

            _trafficStates = new Color[6];

            Messages = new List<Message>();

            cbCom.Items.AddRange(SerialPort.GetPortNames());
        }
コード例 #2
0
        public MainForm()
        {
            InitializeComponent();

            bvResponseBody = new ByteViewer();
            bvResponseBody.TabIndex = 14;
            bvResponseBody.Dock = DockStyle.Fill;
            bvResponseBody.Visible = false;
            pnlResponseContent.Controls.Add(bvResponseBody);
        }
コード例 #3
0
        public HexEditorControl()
        {
            InitializeComponent();

            _byteViewer = new ByteViewer();
            //_byteViewer.Anchor = AnchorStyles.Left | AnchorStyles.Top;
            //_byteViewer.Location = new Point(0, 0);
            //_byteViewer.Size = glPanel.Size;
            _byteViewer.Dock = DockStyle.Fill;
            pnlHexViewer.Controls.Add(_byteViewer);
        }
コード例 #4
0
 public ByteViewerForm()
 {
     InitializeForm();
     byteviewer          = new ByteViewer();
     byteviewer.Location = new Point(8, 46);
     byteviewer.Size     = new Size(600, 338);
     byteviewer.Anchor   = AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
     byteviewer.SetBytes(new byte[] { });
     this.Controls.Add(byteviewer);
     this.Icon = global::Hex.Properties.Resources._59031_5ea_icon;
 }
コード例 #5
0
ファイル: MemoryView.cs プロジェクト: no1dead/RogueLoader
        private void MemoryView_Load(object sender, EventArgs e)
        {
            LogFile.WriteToLog("------------ Loaded Memory View ------------");

            FormShowing = true;
            bv = new ByteViewer();
            bv.Dock = DockStyle.Fill;
            Controls.Add(bv);
            if (MainForm.gameIsRunning)
            {
                LoadMemoryView();
            }
        }
コード例 #6
0
        public ByteViewerForm()
        {
            // Initialize the controls other than the ByteViewer.
            InitializeForm();

            // Initialize the ByteViewer.
            byteviewer          = new ByteViewer();
            byteviewer.Location = new Point(8, 46);
            byteviewer.Size     = new Size(600, 338);
            byteviewer.Anchor   = AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
            byteviewer.SetBytes(new byte[] { });
            this.Controls.Add(byteviewer);
        }
コード例 #7
0
ファイル: MemoryView.cs プロジェクト: dark-c0de/DarkLoader
 private void MemoryView_Load(object sender, EventArgs e)
 {
     LogFile.WriteToLog("------------ Loaded Memory View ------------");
     GoogleAnalyticsApi.TrackPageview("PatchEditor.cs", "MemoryView_Load", "");
     FormShowing = true;
     bv = new ByteViewer();
     bv.Dock = DockStyle.Fill;
     Controls.Add(bv);
     if (MainForm.HaloIsRunning)
     {
         LoadMemoryView();
     }
 }
コード例 #8
0
ファイル: HexViewForm.cs プロジェクト: Warpten/pkmng3edit
        public ByteViewerForm()
        {
            // Initialize the controls other than the ByteViewer.
            InitializeForm();

            // Initialize the ByteViewer.
            byteviewer = new ByteViewer();
            byteviewer.Location = new Point( 8, 46 );
            byteviewer.Size = new Size( 600, 338 );
            byteviewer.Anchor = AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
            byteviewer.SetBytes( new byte[] { } );
            this.Controls.Add( byteviewer );
        }
コード例 #9
0
ファイル: HexView.cs プロジェクト: grzwolf/cfw
        public HexView()
        {
            this.InitializeComponent();

            // Initialize the ByteViewer.
            this.byteviewer          = new ByteViewer();
            this.byteviewer.Location = new Point(8, 46);
            this.byteviewer.Size     = new Size(600, 338);
            //byteviewer.Anchor = AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
            this.byteviewer.Dock = DockStyle.Fill;
            this.byteviewer.SetBytes(new byte[] { });
            this.Controls.Add(this.byteviewer);
        }
コード例 #10
0
ファイル: Form1.cs プロジェクト: stufi1983/ph
        public Form1()
        {
            InitializeComponent();

            // Initialize the ByteViewer.
            byteviewer = new ByteViewer();

            byteviewer.Location = textBoxString.Location; // new Point(8, 46);
            byteviewer.Size     = textBoxString.Size;     // new Size(600, 338);
            byteviewer.Anchor   = AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
            byteviewer.SetBytes(new byte[] { });
            this.Controls.Add(byteviewer);
            textBoxString.Visible = false;
        }
コード例 #11
0
        public fcehex()
        {
            InitializeComponent();
            _myByteViewer = new System.ComponentModel.Design.ByteViewer {
                Dock = DockStyle.Fill, BorderStyle = BorderStyle.None
            };
            viewerPanel.Controls.Add(_myByteViewer);
            string pat1 = Application.StartupPath;

            try
            {
                _myByteViewer.SetFile(pat1 + "/Data/hex.dump");
            }
            catch (Exception ex)
            {
            }
        }
コード例 #12
0
    public BinaryValueViewerForm(Form form_Owner, byte[] byteArray_Value)
    {
        InitializeComponent();

        this.viewBinaryValue_obj          = new ByteViewer();
        this.viewBinaryValue_obj.Location = new Point(8, 46);
        this.viewBinaryValue_obj.Size     = new Size(600, 338);
        this.viewBinaryValue_obj.Anchor   = AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;

        this.viewBinaryValue_obj.SetBytes(byteArray_Value);

        this.Controls.Add(viewBinaryValue_obj);

        this.comboBox_BinaryValueViewerForm_ViewMode.SelectedIndex = 0;

        this.Owner = form_Owner;

        ChangeControlsLanguage();
    }
コード例 #13
0
        public ByteViewerForm(byte[] b, string name)
        {
            // Initialize the controls other than the ByteViewer.
            InitializeForm();

            // Initialize the ByteViewer.
            byteviewer          = new ByteViewer();
            byteviewer.Location = new Point(8, 46);
            byteviewer.Size     = new Size(600, 338);
            byteviewer.Anchor   = AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
            byteviewer.SetDisplayMode(DisplayMode.Hexdump);
            byteviewer.SetBytes(b);
            this.MaximizeBox     = false;
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            this.Controls.Add(byteviewer);

            this.Name = "Binary Viewer - " + name;
            this.Text = "Binary Viewer - " + name;
        }
コード例 #14
0
        public HexViewer()
        {
            // Initialize the controls other than the ByteViewer.
            InitializeForm();

            // Initialize the ByteViewer.
            byteviewer           = new ByteViewer();
            byteviewer.Disposed += new System.EventHandler(this.disposed);
            byteviewer.Location  = new Point(8, 46);
            byteviewer.Size      = new Size(600, 338);
            byteviewer.Anchor    = AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
            byteviewer.SetBytes(Scanner.ScannerBuffer);
            this.Controls.Add(byteviewer);
            this.Show();

            this.FormClosing += new FormClosingEventHandler(formClosingCallback);
            backgroundWorker1 = new System.ComponentModel.BackgroundWorker();
            backgroundWorker1.WorkerReportsProgress      = false;
            backgroundWorker1.WorkerSupportsCancellation = true;
            backgroundWorker1.DoWork += new DoWorkEventHandler(backgroundWorker1_DoWork);
            pauseBackgroundWorker     = true;
        }
コード例 #15
0
ファイル: BlockInfo.cs プロジェクト: kukubadze/Tungsten
        public BlockInfo(wCpuBlock block)
        {
            InitializeComponent();
            Text = "Block Information - " + block.ToString();
            txtBlock.Text = block.ToString();
            txtName.Text = block.name;
            txtAuthor.Text = block.author;
            txtFamily.Text = block.family;
            txtLanguage.Text = block.language.ToString();
            txtLocalData.Text = block.localData.ToString();
            txtLoadSize.Text = block.loadSize.ToString() + " bytes";
            txtMC7Size.Text = block.MC7Size.ToString() + " bytes";
            txtSBBLength.Text = block.SBBLength.ToString() + " bytes";
            txtCodeDate.Text = block.codeDate;
            txtInterfaceDate.Text = block.interfaceDate;
            //Format checksum as hex (ab cd)
            txtChecksum.Text = block.checksum.ToString("x4").Insert(2, " ");
            txtFlags.Text = block.blockFlags.ToString("x4").Insert(2, " ");
            txtVersion.Text = block.version.ToString("x4").Insert(2, " ");
            //TODO Fix this shit
            if (block.data != null && false)
            {
                ByteViewer bv = new ByteViewer();
                bv.SetBytes(block.data);
                bv.Location = new Point(12, 148);
                bv.Size = new Size(419, 222);
                Controls.Add(bv);
                byte[] data = new byte[block.loadSize - 10];
                Array.Copy(block.data, data, data.Length);
                txtTestChecksum.Text = Crc16.ComputeChecksum(data).ToString("x4").Insert(2, " ");
            }
            else
            {

            }
           
        }
コード例 #16
0
        protected override void Show(
            IDialogVisualizerService windowService,
            IVisualizerObjectProvider objectProvider)
        {
            object data = objectProvider.GetObject();

            using (Form f = new Form())
            using (ByteViewer viewer = new ByteViewer())
            {
                if (data is nDNS.Message)
                    viewer.SetBytes(((nDNS.Message) data).RawBytes);
                else return;

                viewer.SetDisplayMode(DisplayMode.Hexdump);
                viewer.Dock = DockStyle.Fill;

                f.FormBorderStyle = FormBorderStyle.SizableToolWindow;
                f.Text = "DNS Packet Byte Array Viewer";
                f.ClientSize = viewer.Size;
                f.Controls.Add(viewer);

                windowService.ShowDialog(f);
            }
        }
コード例 #17
0
		//private void DoVSExportActiveProject(object aSender, EventArgs e) {
		//    if (!ValidationHelpers.ValidateCurrentProjectNotNull()) {
		//        AddMessage("No project to export.");
		//        return;
		//    }
		//    if (OtaUtils.CurrentIdeVersion == 1) {
		//        AddMessage("C#Builder 1.0 is not supported.");
		//        return;
		//    }
		//    string bdsFile = OtaUtils.GetCurrentProject().FileName;
		//    string vsFile;
		//    if (ValidationHelpers.ValidateCurrentProjectIsCSharp())
		//    {
		//        vsFile = Path.ChangeExtension(bdsFile, "csproj");
		//    } else if (ValidationHelpers.ValidateCurrentProjectIsVB()) {
		//        vsFile = Path.ChangeExtension(bdsFile, "vbproj");
		//    } else {
		//        AddMessage("Only C# and VB projects can be exported. Current project is " + bdsFile);
		//        return;
		//    }

		//    string xsltFile = GetXsltFile();
		//    AddMessage("Visual Studio Conversion Tool");
		//    AddMessage("Using transform document: " + xsltFile);
		//    AddMessage("Input file: " + bdsFile);
		//    AddMessage("Output file: " + vsFile);

		//    try {
		//        Lextm.Xml.XmlConvertor.ConvertXmlUsingXsl(bdsFile,
		//                                xsltFile,
		//                                vsFile);
		//        AddMessage("Done.");
		//    } catch (Exception ex) {
		//        Lextm.Windows.Forms.MessageBoxFactory.Fatal(ex);
		//    }

		//}
		
		//private static string GetXsltFile() {
		//    return OtaUtils.GetIdeRootDir() + @"Bin\VSExport.xsl";
		//}
		
//		protected void DoStartProjectTarget(object aSender, EventArgs e) {
//			if (!ValidationHelpers.ValidateCurrentProjectTargetExists()) {
//				return;
//			}
//
//			string _Target = OTAUtils.GetProjectTarget(OTAUtils.GetCurrentProject());
//			Process.Start(_Target);
//		}

		private void DoViewModuleHexDump(object aSender, EventArgs AEventArgs) {
			if (!ValidationHelpers.ValidateCurrentEditorNotNull()) {
				return;
			}
			// TODO: make it non-modal.
			string _FileName = OtaUtils.GetCurrentEditorFileName();

			FrmViewHexaDump _Frm = new FrmViewHexaDump();

			ByteViewer _Ctr = new ByteViewer();
			_Ctr.SetDisplayMode(DisplayMode.Hexdump);
			_Ctr.SetFile(_FileName);
			_Ctr.Dock = DockStyle.Fill;
			_Frm.pnlHost.Controls.Add(_Ctr);
			_Frm.ShowDialog();
		}
コード例 #18
0
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(BinaryEditor));

            this.byteViewer   = new ByteViewer();
            this.buttonOK     = new Button();
            this.buttonSave   = new Button();
            this.groupBoxMode = new GroupBox();
            this.radioButtonsTableLayoutPanel = new TableLayoutPanel();
            this.radioUnicode                = new RadioButton();
            this.radioAuto                   = new RadioButton();
            this.radioAnsi                   = new RadioButton();
            this.radioHex                    = new RadioButton();
            this.okSaveTableLayoutPanel      = new TableLayoutPanel();
            this.overarchingTableLayoutPanel = new TableLayoutPanel();
            this.byteViewer.SuspendLayout();
            this.groupBoxMode.SuspendLayout();
            this.radioButtonsTableLayoutPanel.SuspendLayout();
            this.okSaveTableLayoutPanel.SuspendLayout();
            this.overarchingTableLayoutPanel.SuspendLayout();
            base.SuspendLayout();
            manager.ApplyResources(this.byteViewer, "byteViewer");
            this.byteViewer.SetDisplayMode(DisplayMode.Auto);
            this.byteViewer.Name   = "byteViewer";
            this.byteViewer.Margin = Padding.Empty;
            this.byteViewer.Dock   = DockStyle.Fill;
            manager.ApplyResources(this.buttonOK, "buttonOK");
            this.buttonOK.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            this.buttonOK.DialogResult = DialogResult.OK;
            this.buttonOK.Margin       = new Padding(0, 0, 3, 0);
            this.buttonOK.MinimumSize  = new Size(0x4b, 0x17);
            this.buttonOK.Name         = "buttonOK";
            this.buttonOK.Padding      = new Padding(10, 0, 10, 0);
            this.buttonOK.Click       += new EventHandler(this.ButtonOK_click);
            manager.ApplyResources(this.buttonSave, "buttonSave");
            this.buttonSave.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            this.buttonSave.Margin       = new Padding(3, 0, 0, 0);
            this.buttonSave.MinimumSize  = new Size(0x4b, 0x17);
            this.buttonSave.Name         = "buttonSave";
            this.buttonSave.Padding      = new Padding(10, 0, 10, 0);
            this.buttonSave.Click       += new EventHandler(this.ButtonSave_click);
            manager.ApplyResources(this.groupBoxMode, "groupBoxMode");
            this.groupBoxMode.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            this.groupBoxMode.Controls.Add(this.radioButtonsTableLayoutPanel);
            this.groupBoxMode.Margin  = new Padding(0, 3, 0, 3);
            this.groupBoxMode.Name    = "groupBoxMode";
            this.groupBoxMode.Padding = new Padding(0);
            this.groupBoxMode.TabStop = false;
            manager.ApplyResources(this.radioButtonsTableLayoutPanel, "radioButtonsTableLayoutPanel");
            this.radioButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25f));
            this.radioButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25f));
            this.radioButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25f));
            this.radioButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25f));
            this.radioButtonsTableLayoutPanel.Controls.Add(this.radioUnicode, 3, 0);
            this.radioButtonsTableLayoutPanel.Controls.Add(this.radioAuto, 0, 0);
            this.radioButtonsTableLayoutPanel.Controls.Add(this.radioAnsi, 2, 0);
            this.radioButtonsTableLayoutPanel.Controls.Add(this.radioHex, 1, 0);
            this.radioButtonsTableLayoutPanel.Margin = new Padding(9);
            this.radioButtonsTableLayoutPanel.Name   = "radioButtonsTableLayoutPanel";
            this.radioButtonsTableLayoutPanel.RowStyles.Add(new RowStyle());
            manager.ApplyResources(this.radioUnicode, "radioUnicode");
            this.radioUnicode.Margin          = new Padding(3, 0, 0, 0);
            this.radioUnicode.Name            = "radioUnicode";
            this.radioUnicode.CheckedChanged += new EventHandler(this.RadioUnicode_checkedChanged);
            manager.ApplyResources(this.radioAuto, "radioAuto");
            this.radioAuto.Checked         = true;
            this.radioAuto.Margin          = new Padding(0, 0, 3, 0);
            this.radioAuto.Name            = "radioAuto";
            this.radioAuto.CheckedChanged += new EventHandler(this.RadioAuto_checkedChanged);
            manager.ApplyResources(this.radioAnsi, "radioAnsi");
            this.radioAnsi.Margin          = new Padding(3, 0, 3, 0);
            this.radioAnsi.Name            = "radioAnsi";
            this.radioAnsi.CheckedChanged += new EventHandler(this.RadioAnsi_checkedChanged);
            manager.ApplyResources(this.radioHex, "radioHex");
            this.radioHex.Margin          = new Padding(3, 0, 3, 0);
            this.radioHex.Name            = "radioHex";
            this.radioHex.CheckedChanged += new EventHandler(this.RadioHex_checkedChanged);
            manager.ApplyResources(this.okSaveTableLayoutPanel, "okSaveTableLayoutPanel");
            this.okSaveTableLayoutPanel.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            this.okSaveTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
            this.okSaveTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
            this.okSaveTableLayoutPanel.Controls.Add(this.buttonOK, 0, 0);
            this.okSaveTableLayoutPanel.Controls.Add(this.buttonSave, 1, 0);
            this.okSaveTableLayoutPanel.Margin = new Padding(0, 9, 0, 0);
            this.okSaveTableLayoutPanel.Name   = "okSaveTableLayoutPanel";
            this.okSaveTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 50f));
            manager.ApplyResources(this.overarchingTableLayoutPanel, "overarchingTableLayoutPanel");
            this.overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
            this.overarchingTableLayoutPanel.Controls.Add(this.byteViewer, 0, 0);
            this.overarchingTableLayoutPanel.Controls.Add(this.groupBoxMode, 0, 1);
            this.overarchingTableLayoutPanel.Controls.Add(this.okSaveTableLayoutPanel, 0, 2);
            this.overarchingTableLayoutPanel.Name = "overarchingTableLayoutPanel";
            this.overarchingTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 100f));
            this.overarchingTableLayoutPanel.RowStyles.Add(new RowStyle());
            this.overarchingTableLayoutPanel.RowStyles.Add(new RowStyle());
            base.AcceptButton = this.buttonOK;
            manager.ApplyResources(this, "$this");
            base.AutoScaleMode = AutoScaleMode.Font;
            base.CancelButton  = this.buttonOK;
            base.Controls.Add(this.overarchingTableLayoutPanel);
            base.FormBorderStyle    = FormBorderStyle.FixedDialog;
            base.HelpButton         = true;
            base.MaximizeBox        = false;
            base.MinimizeBox        = false;
            base.Name               = "BinaryUI";
            base.ShowIcon           = false;
            base.ShowInTaskbar      = false;
            base.HelpRequested     += new HelpEventHandler(this.Form_HelpRequested);
            base.HelpButtonClicked += new CancelEventHandler(this.Form_HelpButtonClicked);
            this.byteViewer.ResumeLayout(false);
            this.byteViewer.PerformLayout();
            this.groupBoxMode.ResumeLayout(false);
            this.groupBoxMode.PerformLayout();
            this.radioButtonsTableLayoutPanel.ResumeLayout(false);
            this.radioButtonsTableLayoutPanel.PerformLayout();
            this.okSaveTableLayoutPanel.ResumeLayout(false);
            this.okSaveTableLayoutPanel.PerformLayout();
            this.overarchingTableLayoutPanel.ResumeLayout(false);
            this.overarchingTableLayoutPanel.PerformLayout();
            base.ResumeLayout(false);
        }
コード例 #19
0
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(BinaryEditor));
     byteViewer   = new ByteViewer();
     buttonOK     = new System.Windows.Forms.Button();
     buttonSave   = new System.Windows.Forms.Button();
     groupBoxMode = new System.Windows.Forms.GroupBox();
     radioAuto    = new System.Windows.Forms.RadioButton();
     radioHex     = new System.Windows.Forms.RadioButton();
     radioAnsi    = new System.Windows.Forms.RadioButton();
     radioUnicode = new System.Windows.Forms.RadioButton();
     groupBoxMode.SuspendLayout();
     SuspendLayout();
     //
     // byteViewer
     //
     byteViewer.SetDisplayMode(DisplayMode.Auto);
     byteViewer.AccessibleDescription = ((string)(resources.GetObject("byteViewer.AccessibleDescription")));
     byteViewer.AccessibleName        = ((string)(resources.GetObject("byteViewer.AccessibleName")));
     byteViewer.Anchor   = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("byteViewer.Anchor")));
     byteViewer.Dock     = ((System.Windows.Forms.DockStyle)(resources.GetObject("byteViewer.Dock")));
     byteViewer.Location = ((System.Drawing.Point)(resources.GetObject("byteViewer.Location")));
     byteViewer.Size     = ((System.Drawing.Size)(resources.GetObject("byteViewer.Size")));
     byteViewer.TabIndex = ((int)(resources.GetObject("byteViewer.TabIndex")));
     //
     // buttonOK
     //
     buttonOK.DialogResult          = System.Windows.Forms.DialogResult.OK;
     buttonOK.Click                += new EventHandler(this.ButtonOK_click);
     buttonOK.AccessibleDescription = ((string)(resources.GetObject("buttonOK.AccessibleDescription")));
     buttonOK.AccessibleName        = ((string)(resources.GetObject("buttonOK.AccessibleName")));
     buttonOK.Anchor                = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("buttonOK.Anchor")));
     buttonOK.Location              = ((System.Drawing.Point)(resources.GetObject("buttonOK.Location")));
     buttonOK.Size     = ((System.Drawing.Size)(resources.GetObject("buttonOK.Size")));
     buttonOK.TabIndex = ((int)(resources.GetObject("buttonOK.TabIndex")));
     buttonOK.Text     = resources.GetString("buttonOK.Text");
     //
     // buttonSave
     //
     buttonSave.Click += new EventHandler(this.ButtonSave_click);
     buttonSave.AccessibleDescription = ((string)(resources.GetObject("buttonSave.AccessibleDescription")));
     buttonSave.AccessibleName        = ((string)(resources.GetObject("buttonSave.AccessibleName")));
     buttonSave.Anchor   = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("buttonSave.Anchor")));
     buttonSave.Location = ((System.Drawing.Point)(resources.GetObject("buttonSave.Location")));
     buttonSave.Size     = ((System.Drawing.Size)(resources.GetObject("buttonSave.Size")));
     buttonSave.TabIndex = ((int)(resources.GetObject("buttonSave.TabIndex")));
     buttonSave.Text     = resources.GetString("buttonSave.Text");
     //
     // groupBoxMode
     //
     groupBoxMode.TabStop = false;
     groupBoxMode.Controls.AddRange(new System.Windows.Forms.Control[] { this.radioUnicode,
                                                                         this.radioAnsi,
                                                                         this.radioHex,
                                                                         this.radioAuto });
     groupBoxMode.Location = ((System.Drawing.Point)(resources.GetObject("groupBoxMode.Location")));
     groupBoxMode.Size     = ((System.Drawing.Size)(resources.GetObject("groupBoxMode.Size")));
     groupBoxMode.TabIndex = ((int)(resources.GetObject("groupBoxMode.TabIndex")));
     groupBoxMode.Text     = resources.GetString("groupBoxMode.Text");
     //
     // radioAuto
     //
     radioAuto.TabStop               = true;
     radioAuto.Checked               = true;
     radioAuto.CheckedChanged       += new EventHandler(this.RadioAuto_checkedChanged);
     radioAuto.AccessibleDescription = ((string)(resources.GetObject("radioAuto.AccessibleDescription")));
     radioAuto.AccessibleName        = ((string)(resources.GetObject("radioAuto.AccessibleName")));
     radioAuto.Location              = ((System.Drawing.Point)(resources.GetObject("radioAuto.Location")));
     radioAuto.Size     = ((System.Drawing.Size)(resources.GetObject("radioAuto.Size")));
     radioAuto.TabIndex = ((int)(resources.GetObject("radioAuto.TabIndex")));
     radioAuto.Text     = resources.GetString("radioAuto.Text");
     //
     // radioHex
     //
     radioHex.CheckedChanged       += new EventHandler(this.RadioHex_checkedChanged);
     radioHex.AccessibleDescription = ((string)(resources.GetObject("radioHex.AccessibleDescription")));
     radioHex.AccessibleName        = ((string)(resources.GetObject("radioHex.AccessibleName")));
     radioHex.Location = ((System.Drawing.Point)(resources.GetObject("radioHex.Location")));
     radioHex.Size     = ((System.Drawing.Size)(resources.GetObject("radioHex.Size")));
     radioHex.TabIndex = ((int)(resources.GetObject("radioHex.TabIndex")));
     radioHex.Text     = resources.GetString("radioHex.Text");
     //
     // radioAnsi
     //
     radioAnsi.CheckedChanged       += new EventHandler(this.RadioAnsi_checkedChanged);
     radioAnsi.AccessibleDescription = ((string)(resources.GetObject("radioAnsi.AccessibleDescription")));
     radioAnsi.AccessibleName        = ((string)(resources.GetObject("radioAnsi.AccessibleName")));
     radioAnsi.Location = ((System.Drawing.Point)(resources.GetObject("radioAnsi.Location")));
     radioAnsi.Size     = ((System.Drawing.Size)(resources.GetObject("radioAnsi.Size")));
     radioAnsi.TabIndex = ((int)(resources.GetObject("radioAnsi.TabIndex")));
     radioAnsi.Text     = resources.GetString("radioAnsi.Text");
     //
     // radioUnicode
     //
     radioUnicode.CheckedChanged       += new EventHandler(this.RadioUnicode_checkedChanged);
     radioUnicode.AccessibleDescription = ((string)(resources.GetObject("radioUnicode.AccessibleDescription")));
     radioUnicode.AccessibleName        = ((string)(resources.GetObject("radioUnicode.AccessibleName")));
     radioUnicode.Location = ((System.Drawing.Point)(resources.GetObject("radioUnicode.Location")));
     radioUnicode.Size     = ((System.Drawing.Size)(resources.GetObject("radioUnicode.Size")));
     radioUnicode.TabIndex = ((int)(resources.GetObject("radioUnicode.TabIndex")));
     radioUnicode.Text     = resources.GetString("radioUnicode.Text");
     //
     // Win32Form1
     //
     FormBorderStyle       = System.Windows.Forms.FormBorderStyle.FixedDialog;
     MaximizeBox           = false;
     AcceptButton          = buttonOK;
     CancelButton          = buttonOK;
     AccessibleDescription = ((string)(resources.GetObject("$this.AccessibleDescription")));
     AccessibleName        = ((string)(resources.GetObject("$this.AccessibleName")));
     AutoScaleBaseSize     = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
     ClientSize            = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
     HelpRequested        += new HelpEventHandler(this.Form_HelpRequested);
     Controls.AddRange(new System.Windows.Forms.Control[] { this.groupBoxMode,
                                                            this.buttonSave,
                                                            this.buttonOK,
                                                            this.byteViewer });
     Icon          = null;
     StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
     Text          = resources.GetString("$this.Text");
     ResumeLayout(false);
 }
コード例 #20
0
            private void InitializeComponent()
            {
                ComponentResourceManager resources = new ComponentResourceManager(typeof(BinaryEditor));

                _byteViewer   = new ByteViewer();
                _buttonOK     = new Button();
                _buttonSave   = new Button();
                _groupBoxMode = new GroupBox();
                _radioButtonsTableLayoutPanel = new TableLayoutPanel();
                _radioUnicode                = new RadioButton();
                _radioAuto                   = new RadioButton();
                _radioAnsi                   = new RadioButton();
                _radioHex                    = new RadioButton();
                _okSaveTableLayoutPanel      = new TableLayoutPanel();
                _overarchingTableLayoutPanel = new TableLayoutPanel();
                _byteViewer.SuspendLayout();
                _groupBoxMode.SuspendLayout();
                _radioButtonsTableLayoutPanel.SuspendLayout();
                _okSaveTableLayoutPanel.SuspendLayout();
                _overarchingTableLayoutPanel.SuspendLayout();
                SuspendLayout();

                //
                // byteViewer
                //
                resources.ApplyResources(_byteViewer, "byteViewer");
                _byteViewer.SetDisplayMode(DisplayMode.Auto);
                _byteViewer.Name   = "byteViewer";
                _byteViewer.Margin = Padding.Empty;
                _byteViewer.Dock   = DockStyle.Fill;
                //
                // buttonOK
                //
                resources.ApplyResources(_buttonOK, "buttonOK");
                _buttonOK.AutoSizeMode = AutoSizeMode.GrowAndShrink;
                _buttonOK.DialogResult = DialogResult.OK;
                _buttonOK.Margin       = new Padding(0, 0, 3, 0);
                _buttonOK.MinimumSize  = new Size(75, 23);
                _buttonOK.Name         = "buttonOK";
                _buttonOK.Padding      = new Padding(10, 0, 10, 0);
                _buttonOK.Click       += new EventHandler(ButtonOK_click);
                //
                // buttonSave
                //
                resources.ApplyResources(_buttonSave, "buttonSave");
                _buttonSave.AutoSizeMode = AutoSizeMode.GrowAndShrink;
                _buttonSave.Margin       = new Padding(3, 0, 0, 0);
                _buttonSave.MinimumSize  = new Size(75, 23);
                _buttonSave.Name         = "buttonSave";
                _buttonSave.Padding      = new Padding(10, 0, 10, 0);
                _buttonSave.Click       += new EventHandler(ButtonSave_click);
                //
                // groupBoxMode
                //
                resources.ApplyResources(_groupBoxMode, "groupBoxMode");
                _groupBoxMode.AutoSizeMode = AutoSizeMode.GrowAndShrink;
                _groupBoxMode.Controls.Add(_radioButtonsTableLayoutPanel);
                _groupBoxMode.Margin  = new Padding(0, 3, 0, 3);
                _groupBoxMode.Name    = "groupBoxMode";
                _groupBoxMode.Padding = new Padding(0);
                _groupBoxMode.TabStop = false;
                //
                // radioButtonsTableLayoutPanel
                //
                resources.ApplyResources(_radioButtonsTableLayoutPanel, "radioButtonsTableLayoutPanel");
                _radioButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F));
                _radioButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F));
                _radioButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F));
                _radioButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F));
                _radioButtonsTableLayoutPanel.Controls.Add(_radioUnicode, 3, 0);
                _radioButtonsTableLayoutPanel.Controls.Add(_radioAuto, 0, 0);
                _radioButtonsTableLayoutPanel.Controls.Add(_radioAnsi, 2, 0);
                _radioButtonsTableLayoutPanel.Controls.Add(_radioHex, 1, 0);
                _radioButtonsTableLayoutPanel.Margin = new Padding(9);
                _radioButtonsTableLayoutPanel.Name   = "radioButtonsTableLayoutPanel";
                _radioButtonsTableLayoutPanel.RowStyles.Add(new RowStyle());
                //
                // radioUnicode
                //
                resources.ApplyResources(_radioUnicode, "radioUnicode");
                _radioUnicode.Margin          = new Padding(3, 0, 0, 0);
                _radioUnicode.Name            = "radioUnicode";
                _radioUnicode.CheckedChanged += new EventHandler(RadioUnicode_checkedChanged);
                //
                // radioAuto
                //
                resources.ApplyResources(_radioAuto, "radioAuto");
                _radioAuto.Checked         = true;
                _radioAuto.Margin          = new Padding(0, 0, 3, 0);
                _radioAuto.Name            = "radioAuto";
                _radioAuto.CheckedChanged += new EventHandler(RadioAuto_checkedChanged);
                //
                // radioAnsi
                //
                resources.ApplyResources(_radioAnsi, "radioAnsi");
                _radioAnsi.Margin          = new Padding(3, 0, 3, 0);
                _radioAnsi.Name            = "radioAnsi";
                _radioAnsi.CheckedChanged += new EventHandler(RadioAnsi_checkedChanged);
                //
                // radioHex
                //
                resources.ApplyResources(_radioHex, "radioHex");
                _radioHex.Margin          = new Padding(3, 0, 3, 0);
                _radioHex.Name            = "radioHex";
                _radioHex.CheckedChanged += new EventHandler(RadioHex_checkedChanged);
                //
                // okSaveTableLayoutPanel
                //
                resources.ApplyResources(_okSaveTableLayoutPanel, "okSaveTableLayoutPanel");
                _okSaveTableLayoutPanel.AutoSizeMode = AutoSizeMode.GrowAndShrink;
                _okSaveTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
                _okSaveTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
                _okSaveTableLayoutPanel.Controls.Add(_buttonOK, 0, 0);
                _okSaveTableLayoutPanel.Controls.Add(_buttonSave, 1, 0);
                _okSaveTableLayoutPanel.Margin = new Padding(0, 9, 0, 0);
                _okSaveTableLayoutPanel.Name   = "okSaveTableLayoutPanel";
                _okSaveTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 50F));
                //
                // overarchingTableLayoutPanel
                //
                resources.ApplyResources(_overarchingTableLayoutPanel, "overarchingTableLayoutPanel");
                _overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
                _overarchingTableLayoutPanel.Controls.Add(_byteViewer, 0, 0);
                _overarchingTableLayoutPanel.Controls.Add(_groupBoxMode, 0, 1);
                _overarchingTableLayoutPanel.Controls.Add(_okSaveTableLayoutPanel, 0, 2);
                _overarchingTableLayoutPanel.Name = "overarchingTableLayoutPanel";
                _overarchingTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
                _overarchingTableLayoutPanel.RowStyles.Add(new RowStyle());
                _overarchingTableLayoutPanel.RowStyles.Add(new RowStyle());

                //
                // BinaryUI
                //
                AcceptButton = _buttonOK;
                resources.ApplyResources(this, "$this");
                AutoScaleMode = AutoScaleMode.Font;
                CancelButton  = _buttonOK;
                Controls.Add(_overarchingTableLayoutPanel);
                FormBorderStyle    = FormBorderStyle.FixedDialog;
                HelpButton         = true;
                MaximizeBox        = false;
                MinimizeBox        = false;
                Name               = "BinaryUI";
                ShowIcon           = false;
                ShowInTaskbar      = false;
                HelpRequested     += new HelpEventHandler(Form_HelpRequested);
                HelpButtonClicked += new CancelEventHandler(Form_HelpButtonClicked);
                _byteViewer.ResumeLayout(false);
                _byteViewer.PerformLayout();
                _groupBoxMode.ResumeLayout(false);
                _groupBoxMode.PerformLayout();
                _radioButtonsTableLayoutPanel.ResumeLayout(false);
                _radioButtonsTableLayoutPanel.PerformLayout();
                _okSaveTableLayoutPanel.ResumeLayout(false);
                _okSaveTableLayoutPanel.PerformLayout();
                _overarchingTableLayoutPanel.ResumeLayout(false);
                _overarchingTableLayoutPanel.PerformLayout();
                ResumeLayout(false);
            }
コード例 #21
0
 private void InitializeComponent()
 {
     ComponentResourceManager manager = new ComponentResourceManager(typeof(BinaryEditor));
     this.byteViewer = new ByteViewer();
     this.buttonOK = new Button();
     this.buttonSave = new Button();
     this.groupBoxMode = new GroupBox();
     this.radioButtonsTableLayoutPanel = new TableLayoutPanel();
     this.radioUnicode = new RadioButton();
     this.radioAuto = new RadioButton();
     this.radioAnsi = new RadioButton();
     this.radioHex = new RadioButton();
     this.okSaveTableLayoutPanel = new TableLayoutPanel();
     this.overarchingTableLayoutPanel = new TableLayoutPanel();
     this.byteViewer.SuspendLayout();
     this.groupBoxMode.SuspendLayout();
     this.radioButtonsTableLayoutPanel.SuspendLayout();
     this.okSaveTableLayoutPanel.SuspendLayout();
     this.overarchingTableLayoutPanel.SuspendLayout();
     base.SuspendLayout();
     manager.ApplyResources(this.byteViewer, "byteViewer");
     this.byteViewer.SetDisplayMode(DisplayMode.Auto);
     this.byteViewer.Name = "byteViewer";
     this.byteViewer.Margin = Padding.Empty;
     this.byteViewer.Dock = DockStyle.Fill;
     manager.ApplyResources(this.buttonOK, "buttonOK");
     this.buttonOK.AutoSizeMode = AutoSizeMode.GrowAndShrink;
     this.buttonOK.DialogResult = DialogResult.OK;
     this.buttonOK.Margin = new Padding(0, 0, 3, 0);
     this.buttonOK.MinimumSize = new Size(0x4b, 0x17);
     this.buttonOK.Name = "buttonOK";
     this.buttonOK.Padding = new Padding(10, 0, 10, 0);
     this.buttonOK.Click += new EventHandler(this.ButtonOK_click);
     manager.ApplyResources(this.buttonSave, "buttonSave");
     this.buttonSave.AutoSizeMode = AutoSizeMode.GrowAndShrink;
     this.buttonSave.Margin = new Padding(3, 0, 0, 0);
     this.buttonSave.MinimumSize = new Size(0x4b, 0x17);
     this.buttonSave.Name = "buttonSave";
     this.buttonSave.Padding = new Padding(10, 0, 10, 0);
     this.buttonSave.Click += new EventHandler(this.ButtonSave_click);
     manager.ApplyResources(this.groupBoxMode, "groupBoxMode");
     this.groupBoxMode.AutoSizeMode = AutoSizeMode.GrowAndShrink;
     this.groupBoxMode.Controls.Add(this.radioButtonsTableLayoutPanel);
     this.groupBoxMode.Margin = new Padding(0, 3, 0, 3);
     this.groupBoxMode.Name = "groupBoxMode";
     this.groupBoxMode.Padding = new Padding(0);
     this.groupBoxMode.TabStop = false;
     manager.ApplyResources(this.radioButtonsTableLayoutPanel, "radioButtonsTableLayoutPanel");
     this.radioButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25f));
     this.radioButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25f));
     this.radioButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25f));
     this.radioButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25f));
     this.radioButtonsTableLayoutPanel.Controls.Add(this.radioUnicode, 3, 0);
     this.radioButtonsTableLayoutPanel.Controls.Add(this.radioAuto, 0, 0);
     this.radioButtonsTableLayoutPanel.Controls.Add(this.radioAnsi, 2, 0);
     this.radioButtonsTableLayoutPanel.Controls.Add(this.radioHex, 1, 0);
     this.radioButtonsTableLayoutPanel.Margin = new Padding(9);
     this.radioButtonsTableLayoutPanel.Name = "radioButtonsTableLayoutPanel";
     this.radioButtonsTableLayoutPanel.RowStyles.Add(new RowStyle());
     manager.ApplyResources(this.radioUnicode, "radioUnicode");
     this.radioUnicode.Margin = new Padding(3, 0, 0, 0);
     this.radioUnicode.Name = "radioUnicode";
     this.radioUnicode.CheckedChanged += new EventHandler(this.RadioUnicode_checkedChanged);
     manager.ApplyResources(this.radioAuto, "radioAuto");
     this.radioAuto.Checked = true;
     this.radioAuto.Margin = new Padding(0, 0, 3, 0);
     this.radioAuto.Name = "radioAuto";
     this.radioAuto.CheckedChanged += new EventHandler(this.RadioAuto_checkedChanged);
     manager.ApplyResources(this.radioAnsi, "radioAnsi");
     this.radioAnsi.Margin = new Padding(3, 0, 3, 0);
     this.radioAnsi.Name = "radioAnsi";
     this.radioAnsi.CheckedChanged += new EventHandler(this.RadioAnsi_checkedChanged);
     manager.ApplyResources(this.radioHex, "radioHex");
     this.radioHex.Margin = new Padding(3, 0, 3, 0);
     this.radioHex.Name = "radioHex";
     this.radioHex.CheckedChanged += new EventHandler(this.RadioHex_checkedChanged);
     manager.ApplyResources(this.okSaveTableLayoutPanel, "okSaveTableLayoutPanel");
     this.okSaveTableLayoutPanel.AutoSizeMode = AutoSizeMode.GrowAndShrink;
     this.okSaveTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.okSaveTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.okSaveTableLayoutPanel.Controls.Add(this.buttonOK, 0, 0);
     this.okSaveTableLayoutPanel.Controls.Add(this.buttonSave, 1, 0);
     this.okSaveTableLayoutPanel.Margin = new Padding(0, 9, 0, 0);
     this.okSaveTableLayoutPanel.Name = "okSaveTableLayoutPanel";
     this.okSaveTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 50f));
     manager.ApplyResources(this.overarchingTableLayoutPanel, "overarchingTableLayoutPanel");
     this.overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.overarchingTableLayoutPanel.Controls.Add(this.byteViewer, 0, 0);
     this.overarchingTableLayoutPanel.Controls.Add(this.groupBoxMode, 0, 1);
     this.overarchingTableLayoutPanel.Controls.Add(this.okSaveTableLayoutPanel, 0, 2);
     this.overarchingTableLayoutPanel.Name = "overarchingTableLayoutPanel";
     this.overarchingTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 100f));
     this.overarchingTableLayoutPanel.RowStyles.Add(new RowStyle());
     this.overarchingTableLayoutPanel.RowStyles.Add(new RowStyle());
     base.AcceptButton = this.buttonOK;
     manager.ApplyResources(this, "$this");
     base.AutoScaleMode = AutoScaleMode.Font;
     base.CancelButton = this.buttonOK;
     base.Controls.Add(this.overarchingTableLayoutPanel);
     base.FormBorderStyle = FormBorderStyle.FixedDialog;
     base.HelpButton = true;
     base.MaximizeBox = false;
     base.MinimizeBox = false;
     base.Name = "BinaryUI";
     base.ShowIcon = false;
     base.ShowInTaskbar = false;
     base.HelpRequested += new HelpEventHandler(this.Form_HelpRequested);
     base.HelpButtonClicked += new CancelEventHandler(this.Form_HelpButtonClicked);
     this.byteViewer.ResumeLayout(false);
     this.byteViewer.PerformLayout();
     this.groupBoxMode.ResumeLayout(false);
     this.groupBoxMode.PerformLayout();
     this.radioButtonsTableLayoutPanel.ResumeLayout(false);
     this.radioButtonsTableLayoutPanel.PerformLayout();
     this.okSaveTableLayoutPanel.ResumeLayout(false);
     this.okSaveTableLayoutPanel.PerformLayout();
     this.overarchingTableLayoutPanel.ResumeLayout(false);
     this.overarchingTableLayoutPanel.PerformLayout();
     base.ResumeLayout(false);
 }