public MetroForFly( System.Windows.Forms.Control fatherControl, // 父容器 int flyWidth, int flyHeight, System.Drawing.Point locationPoint, // 整体位置 System.Windows.Forms.AnchorStyles anchorstyle ) { // 包裹外层 var panelSec = new HPanel { Size = new System.Drawing.Size(flyWidth, flyHeight), Location = locationPoint, Anchor = anchorstyle, BackColor = System.Drawing.Color.Transparent }; Size = new System.Drawing.Size(flyWidth + 3 + 12, flyHeight + 3); Location = new System.Drawing.Point(-3, -3); BackColor = System.Drawing.Color.Transparent; Anchor = BaseAnchor.AnchorFill; AllowDrop = true; AutoScroll = true; MouseDown += MetroForFly_MouseDown; DragEnter += MetroForFly_DragEnter; // 加载实体层 panelSec.Controls.Add(this); // 加载包裹外层 fatherControl.Controls.Add(panelSec); }
/// <summary> /// Constructor /// </summary> public OpenGLWriteableBitmapUpdater(Size size, GraphicsMode graphicsMode, Action<GLControl> onPrepare = null, Action<GLControl> onFinalize = null) { this.loaded = false; this.Size = size; this.framebufferId = -1; this.OnPrepare += onPrepare; this.OnFinalize += onFinalize; messagingTask.StartMessageLoop( prepare: () => { this.glControl = new GLControl(graphicsMode); this.glControl.MakeCurrent(); if (this.OnPrepare != null) { this.OnPrepare(this.glControl); this.OnPrepare -= onPrepare; } }, finalize: () => { if (this.OnFinalize != null) { this.OnFinalize(this.glControl); this.OnFinalize -= onFinalize; } this.glControl.Context.MakeCurrent(null); this.glControl.Dispose(); }); }
public SubFrame(JsonObject jsonSchedule) : base() { JsonObjectCollection col = (JsonObjectCollection)jsonSchedule; //string jsonstr = col.ToString(); int xPos = int.Parse(col["xPos"].GetValue().ToString()); int yPos = int.Parse(col["yPos"].GetValue().ToString()); int hLen = int.Parse(col["hLen"].GetValue().ToString()); int vLen = int.Parse(col["vLen"].GetValue().ToString()); string media = (string)col["fileName"].GetValue(); int volum = int.Parse(col["volume"].GetValue().ToString()); BackColor = System.Drawing.Color.Black; Location = new System.Drawing.Point(xPos,yPos); Name = "NDS20 Player"; Size = new System.Drawing.Size(hLen, vLen); TabIndex = 0; Text = "NDSPlayerControl"; VlcLibDirectory = null; VlcLibDirectoryNeeded += new System.EventHandler<Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs> (this.OnVlcControlNeedLibDirectory); SetMedia(new FileInfo(@media)); // Audio.Volume = 10; Rate = 2.0f; }
public MenuStrip() { BorderColor = Drawing.Color.Transparent; Orientation = Forms.Orientation.Horizontal; Padding = new Padding(2); Size = new System.Drawing.Size(600, 24); }
private System.Drawing.Size GetScreenInfo() { var width = System.Windows.Forms.SystemInformation.PrimaryMonitorSize.Width; var height = System.Windows.Forms.SystemInformation.PrimaryMonitorSize.Height; var size = new System.Drawing.Size(width, height); return size; }
public xcProfile(ImgProfile profile):base(0,0) { imageSize = new System.Drawing.Size(profile.ImgWid, profile.ImgHei); codec = profile.ImgType; expDesc = profile.Description; ext = profile.Extension; author = "Profile"; desc = profile.Description; if (profile.OpenSingle != "") singleFile = profile.OpenSingle; //fileOptions.BmpDialog = true; //fileOptions.OpenDialog = true; //since we are loading off of an already generic implementation //we should let that implementation determine how this format be saved //fileOptions.SaveDialog = false; //fileOptions.CustomDialog = false; fileOptions.Init(false, true, true, false); xConsole.AddLine("Profile created: " + desc); try { defPal = XCom.SharedSpace.Instance.GetPaletteTable()[profile.Palette]; } catch { defPal = XCom.Palette.TFTDBattle; } }
internal TabbedThumbnailProxyWindow(TabbedThumbnail preview) { TabbedThumbnail = preview; if (preview.WindowHandle != IntPtr.Zero) { proxyingFor = preview.WindowHandle; Size = new System.Drawing.Size(1, 1); // Try to get the window text so we can use it on the tabbed thumbnail as well StringBuilder text = new StringBuilder(256); TabbedThumbnailNativeMethods.GetWindowText(proxyingFor, text, text.Capacity); Text = text.ToString(); // If we get a valid title from the GetWindowText method, // and also if the user hasn't set any title on the preview object, // then update the preview's title with what we get from GetWindowTitle if(!string.IsNullOrEmpty(Text) && string.IsNullOrEmpty(preview.Title)) preview.Title = Text; } else if (preview.WindowsControl != null) { proxyingFor = IntPtr.Zero; WindowsControl = preview.WindowsControl; Size = new System.Drawing.Size(1, 1); // Since we can't get the text/caption for a UIElement, not setting this.Text here. } }
public void InitView(GroupBox gBox) { Location = new System.Drawing.Point(6, 18); Size = new System.Drawing.Size(296, 156); TabIndex = 0; gBox.Controls.Add(this); }
void InitializeComponent () { dataGrid = new DataGrid (); SuspendLayout (); // // dataGrid // dataGrid.DataMember = ""; dataGrid.HeaderForeColor = System.Drawing.SystemColors.ControlText; dataGrid.Location = new System.Drawing.Point (10, 50); dataGrid.Name = "dataGrid"; dataGrid.Size = new System.Drawing.Size (600, 500); // // MainForm // AutoScaleBaseSize = new System.Drawing.Size (5, 13); ClientSize = new System.Drawing.Size (700, 600); Controls.Add (dataGrid); Text = "SWF-Datagrid RealSample"; Name = "MainForm"; Load += new System.EventHandler (MainFormLoad); ResumeLayout (false); }
private static void ScaleByFixedHeight(String fileName, int newHeight, String outputFile) { System.Drawing.Bitmap resizedImage = null; try { using (System.Drawing.Image originalImage = System.Drawing.Image.FromFile(fileName)) { double resizeRatio = (double)newHeight / originalImage.Size.Height; int newWidth = (int)(originalImage.Size.Width * resizeRatio); System.Drawing.Size newSize = new System.Drawing.Size(newWidth, newHeight); resizedImage = new System.Drawing.Bitmap(originalImage, newSize); } // Save resized picture. CheckAndCreatePath(outputFile); resizedImage.Save(outputFile, System.Drawing.Imaging.ImageFormat.Jpeg); } finally { if (resizedImage != null) { resizedImage.Dispose(); } } }
private void InitializeComponent() { this.Size = new System.Drawing.Size(500, 500); int w = this.Size.Width - 50; int h = this.Size.Height - 50; System.Drawing.Size sizeTabControl = new System.Drawing.Size(w, h); this.tabControl = new System.Windows.Forms.TabControl(); this.tabControl.Controls.Add(new TabPageProfesionales(sizeTabControl)); this.tabHorarios = new TabPageConfiguracionHorarios(); this.tabControl.Controls.Add(this.tabHorarios); this.Controls.Add(this.tabControl); this.Size = new System.Drawing.Size(500, 500);// SystemInformation.VirtualScreen.Size; this.tabControl.Size = sizeTabControl; this.tabControl.SuspendLayout(); this.SuspendLayout(); // // tabHorarios // this.tabHorarios.Location = new System.Drawing.Point(0,0); this.tabHorarios.Name = "tabHorarios"; this.tabHorarios.Padding = new System.Windows.Forms.Padding(3); this.tabHorarios.Size = this.tabControl.Size; this.tabHorarios.TabIndex = 1; this.tabHorarios.Text = "Horarios"; this.tabHorarios.UseVisualStyleBackColor = true; }
/// <summary> /// Creates the Region /// </summary> /// <param name="statLog"></param> /// <param name="cacheManager"></param> public Region(ref StatLog statLog, ref CacheManager cacheManager) { // Store the statLog _statLog = statLog; // Store the cache manager _cacheManager = cacheManager; //default options _options = new RegionOptions(); _options.width = 1024; _options.height = 768; _options.left = 0; _options.top = 0; _options.uri = null; Location = new System.Drawing.Point(_options.left, _options.top); Size = new System.Drawing.Size(_options.width, _options.height); BackColor = System.Drawing.Color.Transparent; if (Settings.Default.DoubleBuffering) { SetStyle(ControlStyles.OptimizedDoubleBuffer, true); SetStyle(ControlStyles.AllPaintingInWmPaint, true); } // Create a new BlackList for us to use _blackList = new BlackList(); }
public UserDialog (IWin32Window owner, Control content, MessageBoxButtons buttons) { InitializeComponent(); ClientSize = new System.Drawing.Size(content.Width, content.Height + buttonPanel.Height); contentPanel.Controls.Add(content); content.Dock = DockStyle.Fill; StartPosition = owner == null ? FormStartPosition.CenterScreen : FormStartPosition.CenterParent; if (buttons == MessageBoxButtons.OK) { okButton.Visible = true; cancelButton.Visible = false; } else if (buttons == MessageBoxButtons.OKCancel) { okButton.Visible = true; cancelButton.Visible = true; } else { throw new NotImplementedException("UserDialog currently only supports OK and OKCancel values for MessageBoxButtons"); } }
private static DialogResult ChangeAdvisabilityFormula(ref string input) { System.Drawing.Size windowSize = new System.Drawing.Size(200, 60); Form inputBox = new Form(); inputBox.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; inputBox.ClientSize = windowSize; inputBox.Text = "Введите формулу в формате excel c букво-цифровой нотацией, заменяя цифровую составляющую знаком \"|\""; inputBox.StartPosition = FormStartPosition.CenterParent; System.Windows.Forms.TextBox keyField = new TextBox(); keyField.Text = input; keyField.Size = new System.Drawing.Size(windowSize.Width - 10, 23); keyField.Location = new System.Drawing.Point(5, 2); inputBox.Controls.Add(keyField); Button okButton = new Button(); okButton.DialogResult = System.Windows.Forms.DialogResult.OK; okButton.Name = "okButton"; okButton.Size = new System.Drawing.Size(75, 23); okButton.Text = "OK"; okButton.Location = new System.Drawing.Point(windowSize.Width / 2 - 37, 30); inputBox.Controls.Add(okButton); inputBox.AcceptButton = okButton; DialogResult result = inputBox.ShowDialog(); input = keyField.Text; return result; }
private static DialogResult ChangeApiKey(ref string input) { System.Drawing.Size windowSize = new System.Drawing.Size(200, 60); Form inputBox = new Form(); inputBox.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; inputBox.ClientSize = windowSize; inputBox.Text = "Enter or edit API key"; inputBox.StartPosition = FormStartPosition.CenterParent; System.Windows.Forms.TextBox keyField = new TextBox(); keyField.Text = input; keyField.Size = new System.Drawing.Size(windowSize.Width - 10, 23); keyField.Location = new System.Drawing.Point(5, 2); inputBox.Controls.Add(keyField); Button okButton = new Button(); okButton.DialogResult = System.Windows.Forms.DialogResult.OK; okButton.Name = "okButton"; okButton.Size = new System.Drawing.Size(75, 23); okButton.Text = "OK"; okButton.Location = new System.Drawing.Point(windowSize.Width / 2 - 37, 30); inputBox.Controls.Add(okButton); inputBox.AcceptButton = okButton; DialogResult result = inputBox.ShowDialog(); input = keyField.Text; return result; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { pictureBox1 = new System.Windows.Forms.PictureBox(); ((System.ComponentModel.ISupportInitialize)(pictureBox1)).BeginInit(); SuspendLayout(); // // pictureBox1 // pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; pictureBox1.Location = new System.Drawing.Point(12, 12); pictureBox1.Name = "pictureBox1"; pictureBox1.Size = new System.Drawing.Size(1024, 512); pictureBox1.TabIndex = 0; pictureBox1.TabStop = false; // // Form1 // AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; ClientSize = new System.Drawing.Size(1051, 533); Controls.Add(pictureBox1); Name = "Form1"; Text = "Form1"; ((System.ComponentModel.ISupportInitialize)(pictureBox1)).EndInit(); ResumeLayout(false); }
private void OnWindowClosing(object sender, CancelEventArgs e) { //WindowInteropHelper helper = new WindowInteropHelper(this); System.Drawing.Size size = new System.Drawing.Size((int)this.ActualWidth, (int)this.ActualHeight); SHAppBarMessageHelper.RegisterBar(handle, size); }
/// <summary> /// Constructor</summary> public DomNodeReplaceToolStrip() { // Define query tree, which defines the layout of the search toolstrip GUI m_rootNode = new DomNodeQueryRoot(); QueryTree.AddLabel(m_rootNode, "Replace with"); m_replaceTextInput = QueryTree.AddReplaceTextInput(m_rootNode, null, false); QueryTree.AddSeparator(m_rootNode); m_rootNode.RegisterReplaceButtonPress(QueryTree.AddButton(m_rootNode, "Replace")); // Entering text into the toolstrip will trigger a search, changing an option rebuilds the toolstrip GUI m_rootNode.ReplaceTextEntered += replaceSubStrip_ReplaceTextEntered; // // Build toolStrip GUI by retrieving toolstrip item list from tree, and adding // them to ToolStrip.Items // SuspendLayout(); List<ToolStripItem> toolStripItems = new List<ToolStripItem>(); m_rootNode.GetToolStripItems(toolStripItems); Items.AddRange(toolStripItems.ToArray()); // Initialize ToolStrip Location = new System.Drawing.Point(0, 0); Name = "Event Sequence Document Replace"; Size = new System.Drawing.Size(292, 25); TabIndex = 0; Text = "Event Sequence Document Replace"; GripStyle = ToolStripGripStyle.Hidden; // Done ResumeLayout(false); if (UIChanged != null) { } }
void NotifySection_Load(object sender, EventArgs e) { scannerBar = new ScannerBar(Program.SpringScanner); var scannerBarSize = new System.Drawing.Size(0, scannerBar.Height); scannerBar.MinimumSize = scannerBarSize; //fix minimum size forever scannerBar.MaximumSize = scannerBarSize; //fix maximum size forever (workaround for DPI bug in Windows) }
public MLabel( string key, bool light, System.Drawing.Font font, System.Drawing.Color foreNormal, System.Drawing.Color backNormal, System.Drawing.Color foreLight, System.Drawing.Color backLight, int sizewidth, int sizehegiht ) { FontModel = font; ForeNormal = foreNormal; BackNormal = backNormal; ForeLight = foreLight; BackLight = backLight; Text = key; Font = FontModel; Cursor = Helper.HCursors; TextAlign = Helper.Align; ForeColor = light ? ForeLight : ForeNormal; BackColor = light ? BackLight : BackNormal; Size = new System.Drawing.Size(sizewidth, sizehegiht); MouseHover += MLabel_MouseHover; MouseLeave += MLabel_MouseLeave; }
public void CargarVideo() { try { WebcamCtrl.AudioDevice = SelectedAudio; WebcamCtrl.VideoDevice = SelectedVideo; WebcamCtrl.WfVisibilityImg = Visibility.Hidden; string path = "C:\\Videos"; // your code goes here bool exists = System.IO.Directory.Exists(path); if (!exists) System.IO.Directory.CreateDirectory(path); //' Set some properties of the Webcam control WebcamCtrl.VideoDirectory = "C:\\Videos"; WebcamCtrl.ImageDirectory = "C:\\Videos"; WebcamCtrl.FrameRate = 30; System.Drawing.Size size = new System.Drawing.Size(640, 480); WebcamCtrl.FrameSize = size; WebcamCtrl.StartPreview(); } catch (Exception ex) { throw ex; } }
public void _resize() // Set the resize { double _form_ratio_width = (double)form.ClientSize.Width / (double)_formSize.Width; // Ratio could be greater or less than 1 double _form_ratio_height = (double)form.ClientSize.Height / (double)_formSize.Height; // This one too var _controls = _get_all_controls(form); //reenumerate the control collection int _pos = -1; //do not change this value unless you know what you are doing // Do some math calculations foreach (Control control in _controls) { _pos += 1; // Increment by 1; System.Drawing.Size _controlSize = new System.Drawing.Size((int)(_arr_control_storage[_pos].Width * _form_ratio_width), (int)(_arr_control_storage[_pos].Height * _form_ratio_height)); // Use for sizing System.Drawing.Point _controlposition = new System.Drawing.Point((int) (_arr_control_storage[_pos].X * _form_ratio_width), (int)(_arr_control_storage[_pos].Y * _form_ratio_height)); // Use for location // Set bounds control.Bounds = new System.Drawing.Rectangle(_controlposition, _controlSize); //Put together // Assuming you have a datagridview inside a form() // If you want to show the row header, replace the false statement of // showRowHeader on top/public declaration to true; if (control.GetType() == typeof(DataGridView)) _dgv_Column_Adjust(((DataGridView)control), showRowHeader); //Font AutoSize control.Font = new System.Drawing.Font(form.Font.FontFamily, (float)(((Convert.ToDouble(_fontsize) * _form_ratio_width) / 2) + ((Convert.ToDouble(_fontsize) * _form_ratio_height) / 2))); } }
void InitializeComponent() { historyView = new ListBox(); SuspendLayout(); // // historyView // historyView.Dock = DockStyle.Fill; historyView.Font = new System.Drawing.Font("Consolas", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0); historyView.FormattingEnabled = true; historyView.ItemHeight = 18; historyView.Location = new System.Drawing.Point(0, 0); historyView.Name = "historyView"; historyView.Size = new System.Drawing.Size(340, 238); historyView.TabIndex = 0; historyView.SelectedIndexChanged += historyView_SelectedIndexChanged; // // HistoryForm // ClientSize = new System.Drawing.Size(340, 241); Controls.Add(historyView); FormBorderStyle = FormBorderStyle.SizableToolWindow; Name = "HistoryForm"; Text = "History"; Load += HistoryForm_Load; ResumeLayout(false); }
/// <summary> /// 磁贴控件 /// </summary> /// <param name="item"></param> /// <param name="tileMouseClick"></param> public Tile(Info.TileItem item, System.Windows.Forms.MouseEventHandler tileMouseClick) { Size = new System.Drawing.Size(285, (285 - 8)/2); BackColor = item.BColor; BackgroundImage = item.PluginBg; BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; var logo = new Fase.HPrevImg( this, new System.Drawing.Size(60, 60), new System.Drawing.Point((Width - 60)/2, (Height - 70)/2), item.PluginLogo, System.Windows.Forms.PictureBoxSizeMode.StretchImage, BaseAnchor.AnchorFill ); var title = new Fase.HLabel( this, item.Title, new System.Drawing.Font(BasePublic.KcpFrmFont, 12F), new System.Drawing.Size(Width, 27), new System.Drawing.Point(0, Height - 27), item.FColor, item.BColor, BaseAlign.AlignMiddleLeft, BaseAnchor.AnchorBottomFill ); logo.MouseClick += tileMouseClick; title.MouseClick += tileMouseClick; Tag = item; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { button1 = new System.Windows.Forms.Button(); SuspendLayout(); // // button1 // button1.Location = new System.Drawing.Point(52, 36); button1.Name = "button1"; button1.Size = new System.Drawing.Size(75, 23); button1.TabIndex = 0; button1.Text = "button1"; button1.UseVisualStyleBackColor = true; // // GameMusic // AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; ClientSize = new System.Drawing.Size(534, 311); Controls.Add(button1); Name = "GameMusic"; Text = "GameMusic"; FormClosing += new System.Windows.Forms.FormClosingEventHandler(GameMusic_FormClosing); ResumeLayout(false); }
public VirtualProjector(string name, string uuid, Size imageSize, PointF principal, double focalLength, Screen screen, Chessboard chessboard, CaptureCamera captureCamera) : base(name, uuid, imageSize, principal, focalLength, screen, chessboard, captureCamera) { OrbitCamera = new OrbitCamera("{0} Orbit".FormatWith(name), "N/A", imageSize, principal, focalLength, Intrinsics.NearPlaneDistance, Intrinsics.FarPlaneDistance) { Color = Color.DarkCyan.Alpha(0.7f), }; Color = Color.DarkKhaki.Alpha(0.6f); ProgramTask.AttachInputToCamera(Program.WhenInput.Where(input => !input.KeyPressed(Keys.C)), Window, OrbitCamera); Program.WhenInput.Where(input => input.KeyDown(Keys.P)).Subscribe(input => { var frustum = new Frustum(OrbitCamera, Intrinsics.ImageSize); var plane = new Plane(Vector3.UnitZ, 0); var p0 = frustum.IntersectWithPlane(ProjectorQuadCorners[0].X, ProjectorQuadCorners[0].Y, plane).ToPointF(); var p1 = frustum.IntersectWithPlane(ProjectorQuadCorners[1].X, ProjectorQuadCorners[1].Y, plane).ToPointF(); var p2 = frustum.IntersectWithPlane(ProjectorQuadCorners[2].X, ProjectorQuadCorners[2].Y, plane).ToPointF(); var p3 = frustum.IntersectWithPlane(ProjectorQuadCorners[3].X, ProjectorQuadCorners[3].Y, plane).ToPointF(); var quadCorners = new[] { p0, p1, p2, p3, }; // Chessboard.HomographTo(quadCorners); }); }
public InputProvider() { contactsQueue = new Queue<Contact>(); //monitorSize = SystemInformation.PrimaryMonitorSize; monitorSize = new Size(1600, 1200); SendEmptyFrames = false; }
/// <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(); tmrApp = new System.Windows.Forms.Timer(components) { Interval = 2, Enabled = true }; SuspendLayout(); // // tmrApp // tmrApp.Tick += new System.EventHandler(tmrApp_Tick); // // Maze_Form // AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; BackColor = System.Drawing.Color.FromArgb(31,31,31); ClientSize = new System.Drawing.Size(484, 461); DoubleBuffered = true; KeyPreview = true; Name = "MazeForm"; Text = "Maze AI"; Load += new System.EventHandler(Form1_Load); Paint += new System.Windows.Forms.PaintEventHandler(Form1_Paint); KeyDown += new System.Windows.Forms.KeyEventHandler(Form1_KeyDown); MouseClick += new System.Windows.Forms.MouseEventHandler(Form1_LeftClick); MouseMove += new System.Windows.Forms.MouseEventHandler(Form1_MouseMove); Resize += new System.EventHandler(Form1_Resize); Shown += new System.EventHandler(OnShow); ResumeLayout(false); }
/// <summary> /// Gets a one dimensional tile offset /// </summary> /// <param name="tileSize"> Tile size </param> public int GetIndex(Size tileSize, Point tilesetSize) { int x = X / tileSize.Width, y = Y / tileSize.Height; return y * (tilesetSize.X / tileSize.Width) + x; }
public void SizeToSystemSize() { var size = new Size(10, 15); var actual = size.ToSystemSize(); var expected = new System.Drawing.Size(10, 15); Assert.AreEqual(expected, actual); }
/// <summary> /// 设计器支持所需的方法 - 不要 /// 使用代码编辑器修改此方法的内容。 /// </summary> private void InitializeComponent() { this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.全选 = new System.Windows.Forms.Button(); this.textBox2 = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.查询 = new System.Windows.Forms.Button(); this.textBox1 = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this. = new System.Windows.Forms.Button(); this.采集 = new System.Windows.Forms.Button(); this.gridControl1 = new DevExpress.XtraGrid.GridControl(); this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn(); this.检验编码 = new DevExpress.XtraGrid.Columns.GridColumn(); this.检验值 = new DevExpress.XtraGrid.Columns.GridColumn(); this.检验时间 = new DevExpress.XtraGrid.Columns.GridColumn(); this.检验项目名称 = new DevExpress.XtraGrid.Columns.GridColumn(); this.检验项目编码 = new DevExpress.XtraGrid.Columns.GridColumn(); this.检验设备 = new DevExpress.XtraGrid.Columns.GridColumn(); this.机器编码 = new DevExpress.XtraGrid.Columns.GridColumn(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); this.SuspendLayout(); // // splitContainer1 // this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; this.splitContainer1.Location = new System.Drawing.Point(0, 0); this.splitContainer1.Name = "splitContainer1"; this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; // // splitContainer1.Panel1 // this.splitContainer1.Panel1.Controls.Add(this.全选); this.splitContainer1.Panel1.Controls.Add(this.textBox2); this.splitContainer1.Panel1.Controls.Add(this.label2); this.splitContainer1.Panel1.Controls.Add(this.查询); this.splitContainer1.Panel1.Controls.Add(this.textBox1); this.splitContainer1.Panel1.Controls.Add(this.label1); this.splitContainer1.Panel1.Controls.Add(this.); this.splitContainer1.Panel1.Controls.Add(this.采集); // // splitContainer1.Panel2 // this.splitContainer1.Panel2.Controls.Add(this.gridControl1); this.splitContainer1.Size = new System.Drawing.Size(1024, 550); this.splitContainer1.SplitterDistance = 44; this.splitContainer1.TabIndex = 13; // // 全选 // this.全选.Location = new System.Drawing.Point(805, 16); this.全选.Name = "全选"; this.全选.Size = new System.Drawing.Size(75, 23); this.全选.TabIndex = 7; this.全选.Text = "全选"; this.全选.UseVisualStyleBackColor = true; this.全选.Click += new System.EventHandler(this.全选_Click); // // textBox2 // this.textBox2.Location = new System.Drawing.Point(533, 18); this.textBox2.Name = "textBox2"; this.textBox2.Size = new System.Drawing.Size(100, 21); this.textBox2.TabIndex = 6; // // label2 // this.label2.AutoSize = true; this.label2.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label2.Location = new System.Drawing.Point(484, 21); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(21, 14); this.label2.TabIndex = 5; this.label2.Text = "至"; // // 查询 // this.查询.Location = new System.Drawing.Point(659, 15); this.查询.Name = "查询"; this.查询.Size = new System.Drawing.Size(76, 26); this.查询.TabIndex = 4; this.查询.Text = "查询"; this.查询.UseVisualStyleBackColor = true; this.查询.Click += new System.EventHandler(this.查询_Click); // // textBox1 // this.textBox1.Location = new System.Drawing.Point(363, 17); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(100, 21); this.textBox1.TabIndex = 3; // // label1 // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label1.Location = new System.Drawing.Point(282, 20); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(63, 14); this.label1.TabIndex = 2; this.label1.Text = "检验单号"; // // 上传 // this..Location = new System.Drawing.Point(131, 15); this..Name = "上传"; this..Size = new System.Drawing.Size(76, 26); this..TabIndex = 1; this..Text = "上传"; this..UseVisualStyleBackColor = true; this..Click += new System.EventHandler(this._Click); // // 采集 // this.采集.Location = new System.Drawing.Point(21, 15); this.采集.Name = "采集"; this.采集.Size = new System.Drawing.Size(79, 26); this.采集.TabIndex = 0; this.采集.Text = "采集"; this.采集.UseVisualStyleBackColor = true; this.采集.Click += new System.EventHandler(this.采集_Click); // // gridControl1 // this.gridControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.gridControl1.Location = new System.Drawing.Point(0, 0); this.gridControl1.MainView = this.gridView1; this.gridControl1.Name = "gridControl1"; this.gridControl1.Size = new System.Drawing.Size(1024, 502); this.gridControl1.TabIndex = 0; this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView1 }); // // gridView1 // this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.gridColumn5, this.检验编码, this.检验值, this.检验时间, this.检验项目名称, this.检验项目编码, this.检验设备, this.机器编码 }); this.gridView1.GridControl = this.gridControl1; this.gridView1.Name = "gridView1"; // // gridColumn5 // this.gridColumn5.Caption = "上传"; this.gridColumn5.FieldName = "Shangchuan"; this.gridColumn5.Name = "gridColumn5"; this.gridColumn5.Visible = true; this.gridColumn5.VisibleIndex = 0; // // 检验编码 // this.检验编码.Caption = "检验编码"; this.检验编码.FieldName = "SampleName"; this.检验编码.Name = "检验编码"; this.检验编码.OptionsColumn.AllowEdit = false; this.检验编码.Visible = true; this.检验编码.VisibleIndex = 1; // // 检验值 // this.检验值.Caption = "检验值"; this.检验值.FieldName = "Value"; this.检验值.Name = "检验值"; this.检验值.OptionsColumn.AllowEdit = false; this.检验值.Visible = true; this.检验值.VisibleIndex = 2; // // 检验时间 // this.检验时间.Caption = "检验时间"; this.检验时间.FieldName = "Date"; this.检验时间.Name = "检验时间"; this.检验时间.OptionsColumn.AllowEdit = false; this.检验时间.Visible = true; this.检验时间.VisibleIndex = 3; // // 检验项目名称 // this.检验项目名称.Caption = "检验项目名称"; this.检验项目名称.FieldName = "CheckItemName"; this.检验项目名称.Name = "检验项目名称"; this.检验项目名称.OptionsColumn.AllowEdit = false; this.检验项目名称.Visible = true; this.检验项目名称.VisibleIndex = 4; // // 检验项目编码 // this.检验项目编码.Caption = "检验项目编码"; this.检验项目编码.FieldName = "CheckItemCode"; this.检验项目编码.Name = "检验项目编码"; this.检验项目编码.OptionsColumn.AllowEdit = false; this.检验项目编码.Visible = true; this.检验项目编码.VisibleIndex = 5; // // 检验设备 // this.检验设备.Caption = "检验设备"; this.检验设备.FieldName = "JYShebei"; this.检验设备.Name = "检验设备"; this.检验设备.OptionsColumn.AllowEdit = false; this.检验设备.Visible = true; this.检验设备.VisibleIndex = 6; // // 机器编码 // this.机器编码.Caption = "机器编码"; this.机器编码.FieldName = "JQCode"; this.机器编码.Name = "机器编码"; this.机器编码.OptionsColumn.AllowEdit = false; this.机器编码.Visible = true; this.机器编码.VisibleIndex = 7; // // WP_Shangchuan // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.splitContainer1); this.Name = "WP_Shangchuan"; this.Size = new System.Drawing.Size(1024, 550); this.Load += new System.EventHandler(this.WP_Jianyan_Load); this.splitContainer1.Panel1.ResumeLayout(false); this.splitContainer1.Panel1.PerformLayout(); this.splitContainer1.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); this.splitContainer1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); this.ResumeLayout(false); }
public PosMessageDialog(Window pSourceWindow, DialogFlags pDialogFlags, System.Drawing.Size pSize, String pMessage, String pImageDialog = "") : this(pSourceWindow, pDialogFlags, pSize, pMessage, null, pImageDialog) { }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { txtDescriptionLCID = new System.Windows.Forms.TextBox(); txtDescriptionDescription = new System.Windows.Forms.TextBox(); lblDescriptionLCID = new System.Windows.Forms.Label(); lblDescriptionDescription = new System.Windows.Forms.Label(); lblRequired = new System.Windows.Forms.Label(); label1 = new System.Windows.Forms.Label(); SuspendLayout(); // // txtDescriptionLCID // txtDescriptionLCID.Location = new System.Drawing.Point(210, 3); txtDescriptionLCID.Name = "txtDescriptionLCID"; txtDescriptionLCID.Size = new System.Drawing.Size(280, 20); txtDescriptionLCID.TabIndex = 1; // // txtDescriptionDescription // txtDescriptionDescription.Location = new System.Drawing.Point(210, 29); txtDescriptionDescription.Name = "txtDescriptionDescription"; txtDescriptionDescription.Size = new System.Drawing.Size(280, 20); txtDescriptionDescription.TabIndex = 2; // // lblDescriptionLCID // lblDescriptionLCID.AutoSize = true; lblDescriptionLCID.Location = new System.Drawing.Point(3, 6); lblDescriptionLCID.Name = "lblDescriptionLCID"; lblDescriptionLCID.Size = new System.Drawing.Size(31, 13); lblDescriptionLCID.TabIndex = 8; lblDescriptionLCID.Text = "LCID"; // // lblDescriptionDescription // lblDescriptionDescription.AutoSize = true; lblDescriptionDescription.Location = new System.Drawing.Point(3, 32); lblDescriptionDescription.Name = "lblDescriptionDescription"; lblDescriptionDescription.Size = new System.Drawing.Size(60, 13); lblDescriptionDescription.TabIndex = 7; lblDescriptionDescription.Text = "Description"; // // lblRequired // lblRequired.AutoSize = true; lblRequired.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); lblRequired.ForeColor = System.Drawing.Color.Red; lblRequired.Location = new System.Drawing.Point(34, 6); lblRequired.Name = "lblRequired"; lblRequired.Size = new System.Drawing.Size(11, 13); lblRequired.TabIndex = 23; lblRequired.Text = "*"; // // label1 // label1.AutoSize = true; label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); label1.ForeColor = System.Drawing.Color.Red; label1.Location = new System.Drawing.Point(63, 32); label1.Name = "label1"; label1.Size = new System.Drawing.Size(11, 13); label1.TabIndex = 24; label1.Text = "*"; // // DescriptionControl // AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; Controls.Add(label1); Controls.Add(lblRequired); Controls.Add(txtDescriptionLCID); Controls.Add(txtDescriptionDescription); Controls.Add(lblDescriptionLCID); Controls.Add(lblDescriptionDescription); Name = "DescriptionControl"; Size = new System.Drawing.Size(500, 400); Leave += new System.EventHandler(SiteMapControl_Leave); ResumeLayout(false); PerformLayout(); }
public virtual System.Drawing.Size GetPreferredSize(System.Drawing.Size proposedSize) { }
public Point(System.Drawing.Size sz) { throw null; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SelectServerDlg)); ButtonsPN = new System.Windows.Forms.Panel(); CancelBTN = new System.Windows.Forms.Button(); OkBTN = new System.Windows.Forms.Button(); SpecificationLB = new System.Windows.Forms.Label(); TopPN = new System.Windows.Forms.Panel(); SpecificationCB = new System.Windows.Forms.ComboBox(); ServersCTRL = new BrowseTreeCtrl(); MainPN = new System.Windows.Forms.Panel(); ButtonsPN.SuspendLayout(); TopPN.SuspendLayout(); MainPN.SuspendLayout(); SuspendLayout(); // // ButtonsPN // ButtonsPN.Controls.Add(CancelBTN); ButtonsPN.Controls.Add(OkBTN); ButtonsPN.Dock = System.Windows.Forms.DockStyle.Bottom; ButtonsPN.Location = new System.Drawing.Point(0, 202); ButtonsPN.Name = "ButtonsPN"; ButtonsPN.Size = new System.Drawing.Size(296, 36); ButtonsPN.TabIndex = 1; // // CancelBTN // CancelBTN.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); CancelBTN.DialogResult = System.Windows.Forms.DialogResult.Cancel; CancelBTN.Location = new System.Drawing.Point(216, 8); CancelBTN.Name = "CancelBTN"; CancelBTN.Size = new System.Drawing.Size(75, 23); CancelBTN.TabIndex = 0; CancelBTN.Text = "Cancel"; // // OkBTN // OkBTN.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); OkBTN.DialogResult = System.Windows.Forms.DialogResult.OK; OkBTN.Location = new System.Drawing.Point(135, 6); OkBTN.Name = "OkBTN"; OkBTN.Size = new System.Drawing.Size(75, 23); OkBTN.TabIndex = 1; OkBTN.Text = "OK"; // // SpecificationLB // SpecificationLB.Dock = System.Windows.Forms.DockStyle.Left; SpecificationLB.Location = new System.Drawing.Point(4, 4); SpecificationLB.Name = "SpecificationLB"; SpecificationLB.Size = new System.Drawing.Size(76, 20); SpecificationLB.TabIndex = 2; SpecificationLB.Text = "Specification"; SpecificationLB.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // TopPN // TopPN.Controls.Add(SpecificationCB); TopPN.Controls.Add(SpecificationLB); TopPN.Dock = System.Windows.Forms.DockStyle.Top; TopPN.Location = new System.Drawing.Point(0, 0); TopPN.Name = "TopPN"; TopPN.Padding = new System.Windows.Forms.Padding(4); TopPN.Size = new System.Drawing.Size(296, 28); TopPN.TabIndex = 5; // // SpecificationCB // SpecificationCB.Dock = System.Windows.Forms.DockStyle.Fill; SpecificationCB.Location = new System.Drawing.Point(80, 4); SpecificationCB.Name = "SpecificationCB"; SpecificationCB.Size = new System.Drawing.Size(212, 21); SpecificationCB.TabIndex = 3; SpecificationCB.SelectedIndexChanged += new System.EventHandler(SpecificationCB_SelectedIndexChanged); // // ServersCTRL // ServersCTRL.Dock = System.Windows.Forms.DockStyle.Fill; ServersCTRL.Location = new System.Drawing.Point(4, 0); ServersCTRL.Name = "ServersCTRL"; ServersCTRL.Size = new System.Drawing.Size(288, 174); ServersCTRL.TabIndex = 0; // // MainPN // MainPN.Controls.Add(ServersCTRL); MainPN.Dock = System.Windows.Forms.DockStyle.Fill; MainPN.Location = new System.Drawing.Point(0, 28); MainPN.Name = "MainPN"; MainPN.Padding = new System.Windows.Forms.Padding(4, 0, 4, 0); MainPN.Size = new System.Drawing.Size(296, 174); MainPN.TabIndex = 6; // // SelectServerDlg // AutoScaleBaseSize = new System.Drawing.Size(5, 13); CancelButton = CancelBTN; ClientSize = new System.Drawing.Size(296, 238); Controls.Add(MainPN); Controls.Add(TopPN); Controls.Add(ButtonsPN); Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); Name = "SelectServerDlg"; StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; Text = "Select Server"; ButtonsPN.ResumeLayout(false); TopPN.ResumeLayout(false); TopPN.PerformLayout(); MainPN.ResumeLayout(false); ResumeLayout(false); }
/// <summary> /// Constructor from S.D.Size /// </summary> /// <param name="size"></param> public NativeSize(System.Drawing.Size size) : this(size.Width, size.Height) { }
private void Initialize() { SplitContainer = new SplitContainer(); FormatText = new TextBox(); HotkeyButton = new Button(); label3 = new Label(); label1 = new Label(); FileProviderBox = new ComboBox(); label2 = new Label(); ShareBox = new CheckBox(); WhitelistLabel = new Label(); WhitelistText = new TextBox(); WhitelistedBox = new CheckBox(); PublicRegisteredBox = new CheckBox(); FirstViewBox = new CheckBox(); PublicBox = new CheckBox(); RemoveButton = new Button(); ((System.ComponentModel.ISupportInitialize)(SplitContainer)).BeginInit(); SplitContainer.Panel1.SuspendLayout(); SplitContainer.Panel2.SuspendLayout(); SplitContainer.SuspendLayout(); SuspendLayout(); Location = new System.Drawing.Point(83, 5); Name = "Hotkey"; Size = new System.Drawing.Size(270, 190); TabIndex = 1; TabStop = false; Text = "Hotkey"; // // SplitContainer // SplitContainer.Dock = DockStyle.Fill; SplitContainer.IsSplitterFixed = true; SplitContainer.Location = new System.Drawing.Point(10, 15); SplitContainer.Name = "SplitContainer"; // // SplitContainer.Panel1 // SplitContainer.Panel1.Controls.Add(FormatText); SplitContainer.Panel1.Controls.Add(HotkeyButton); SplitContainer.Panel1.Controls.Add(label3); SplitContainer.Panel1.Controls.Add(label1); SplitContainer.Panel1.Controls.Add(FileProviderBox); SplitContainer.Panel1.Controls.Add(label2); SplitContainer.Panel1.Controls.Add(ShareBox); // // SplitContainer.Panel2 // SplitContainer.Panel2.Controls.Add(WhitelistLabel); SplitContainer.Panel2.Controls.Add(WhitelistText); SplitContainer.Panel2.Controls.Add(WhitelistedBox); SplitContainer.Panel2.Controls.Add(PublicRegisteredBox); SplitContainer.Panel2.Controls.Add(FirstViewBox); SplitContainer.Panel2.Controls.Add(PublicBox); SplitContainer.Panel2.Controls.Add(RemoveButton); SplitContainer.Size = new System.Drawing.Size(245, 167); SplitContainer.SplitterDistance = 120; SplitContainer.TabIndex = 8; // // FormatBox // FormatText.Anchor = ((AnchorStyles)(((AnchorStyles.Top | AnchorStyles.Left) | AnchorStyles.Right))); FormatText.Location = new System.Drawing.Point(9, 114); FormatText.Name = "FormatBox"; FormatText.Size = new System.Drawing.Size(108, 20); FormatText.TabIndex = 5; FormatText.Text = "{1} - {0:h:mm dd.MM.yy}"; FormatText.TextChanged += FormatText_TextChanged; // // HotkeyButton // HotkeyButton.Anchor = ((AnchorStyles)(((AnchorStyles.Top | AnchorStyles.Left) | AnchorStyles.Right))); HotkeyButton.Location = new System.Drawing.Point(9, 32); HotkeyButton.Name = "HotkeyButton"; HotkeyButton.Size = new System.Drawing.Size(108, 23); HotkeyButton.TabIndex = 0; HotkeyButton.Text = "[none]"; HotkeyButton.UseVisualStyleBackColor = true; HotkeyButton.Click += HotkeyButton_Click; // // label3 // label3.AutoSize = true; label3.Location = new System.Drawing.Point(3, 98); label3.Name = "label3"; label3.Size = new System.Drawing.Size(84, 13); label3.TabIndex = 4; label3.Text = "Filename Format"; // // label1 // label1.AutoSize = true; label1.Location = new System.Drawing.Point(3, 16); label1.Name = "label1"; label1.Size = new System.Drawing.Size(41, 13); label1.TabIndex = 1; label1.Text = "Hotkey"; // // FileProviderBox // FileProviderBox.Anchor = ((AnchorStyles)(((AnchorStyles.Top | AnchorStyles.Left) | AnchorStyles.Right))); FileProviderBox.DropDownStyle = ComboBoxStyle.DropDownList; FileProviderBox.FormattingEnabled = true; FileProviderBox.Items.AddRange(providers.Keys.ToArray()); FileProviderBox.Location = new System.Drawing.Point(9, 74); FileProviderBox.Name = "FileProviderBox"; FileProviderBox.Size = new System.Drawing.Size(108, 21); FileProviderBox.TabIndex = 3; FileProviderBox.SelectedIndexChanged += FileProviderBox_SelectedIndexChanged; // // label2 // label2.AutoSize = true; label2.Location = new System.Drawing.Point(3, 58); label2.Name = "label2"; label2.Size = new System.Drawing.Size(61, 13); label2.TabIndex = 2; label2.Text = "Fileprovider"; // // ShareBox // ShareBox.AutoSize = true; ShareBox.Checked = true; ShareBox.CheckState = CheckState.Checked; ShareBox.Location = new System.Drawing.Point(10, 140); ShareBox.Name = "ShareBox"; ShareBox.Size = new System.Drawing.Size(54, 17); ShareBox.TabIndex = 0; ShareBox.Text = "Share"; ShareBox.UseVisualStyleBackColor = true; ShareBox.CheckedChanged += ShareBox_CheckedChanged; // // label4 // WhitelistLabel.AutoSize = true; WhitelistLabel.Location = new System.Drawing.Point(3, 96); WhitelistLabel.Name = "label4"; WhitelistLabel.Size = new System.Drawing.Size(47, 13); WhitelistLabel.TabIndex = 6; WhitelistLabel.Text = "Whitelist"; // // WhitelistText // WhitelistText.Anchor = ((AnchorStyles)(((AnchorStyles.Top | AnchorStyles.Left) | AnchorStyles.Right))); WhitelistText.Location = new System.Drawing.Point(6, 114); WhitelistText.Name = "WhitelistText"; WhitelistText.Size = new System.Drawing.Size(112, 20); WhitelistText.TabIndex = 5; WhitelistText.TextChanged += WhitelistText_TextChanged; // // WhitelistedBox // WhitelistedBox.AutoSize = true; WhitelistedBox.Location = new System.Drawing.Point(6, 76); WhitelistedBox.Name = "WhitelistedBox"; WhitelistedBox.Size = new System.Drawing.Size(78, 17); WhitelistedBox.TabIndex = 4; WhitelistedBox.Text = "Whitelisted"; WhitelistedBox.UseVisualStyleBackColor = true; WhitelistedBox.CheckedChanged += WhitelistedBox_CheckedChanged; // // PublicRegisteredBox // PublicRegisteredBox.AutoSize = true; PublicRegisteredBox.Checked = true; PublicRegisteredBox.CheckState = CheckState.Checked; PublicRegisteredBox.Location = new System.Drawing.Point(6, 54); PublicRegisteredBox.Name = "PublicRegisteredBox"; PublicRegisteredBox.Size = new System.Drawing.Size(109, 17); PublicRegisteredBox.TabIndex = 3; PublicRegisteredBox.Text = "Public Registered"; PublicRegisteredBox.UseVisualStyleBackColor = true; PublicRegisteredBox.CheckedChanged += PublicRegisteredBox_CheckedChanged; // // FirstViewBox // FirstViewBox.AutoSize = true; FirstViewBox.Location = new System.Drawing.Point(6, 12); FirstViewBox.Name = "FirstViewBox"; FirstViewBox.Size = new System.Drawing.Size(71, 17); FirstViewBox.TabIndex = 2; FirstViewBox.Text = "First View"; FirstViewBox.UseVisualStyleBackColor = true; FirstViewBox.CheckedChanged += FirstViewBox_CheckedChanged; // // PublicBox // PublicBox.AutoSize = true; PublicBox.Checked = true; PublicBox.CheckState = CheckState.Checked; PublicBox.Location = new System.Drawing.Point(6, 32); PublicBox.Name = "PublicBox"; PublicBox.Size = new System.Drawing.Size(55, 17); PublicBox.TabIndex = 1; PublicBox.Text = "Public"; PublicBox.UseVisualStyleBackColor = true; PublicBox.CheckedChanged += PublicBox_CheckedChanged; // // RemoveButton // RemoveButton.Anchor = ((AnchorStyles.Top | AnchorStyles.Left) | AnchorStyles.Right); RemoveButton.Location = new System.Drawing.Point(6, 134); RemoveButton.Name = "RemoveButton"; RemoveButton.Size = new System.Drawing.Size(108, 23); RemoveButton.TabIndex = 0; RemoveButton.Text = "Remove"; RemoveButton.UseVisualStyleBackColor = true; RemoveButton.Click += RemoveButton_Click; // // SettingsForm // Controls.Add(SplitContainer); SplitContainer.Panel1.ResumeLayout(false); SplitContainer.Panel1.PerformLayout(); SplitContainer.Panel2.ResumeLayout(false); SplitContainer.Panel2.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(SplitContainer)).EndInit(); SplitContainer.ResumeLayout(false); ResumeLayout(true); }
private void InitializeComponents() { ClientSize = new System.Drawing.Size(450, 270); FormBorderStyle = FormBorderStyle.FixedDialog; StartPosition = FormStartPosition.CenterScreen; ShowInTaskbar = false; MaximizeBox = false; MinimizeBox = false; TableLayoutPanel mainTableLayoutPanel = InitFactory.Layout.Create(1, 2, 5); mainTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 75F)); mainTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 25F)); Controls.Add(mainTableLayoutPanel); TableLayoutPanel columnsTableLayoutPanel = InitFactory.Layout.Create(3, 8, 5); //columns, rows, padding columnsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33F)); columnsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 34F)); columnsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33F)); columnsTableLayoutPanel.AutoScroll = true; mainTableLayoutPanel.Controls.Add(columnsTableLayoutPanel, 0, 0); m_checkBoxes = new CheckBox[(int)ResultsListView.ColumnsTypeHorizontal.Size]; m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.Type] = InitFactory.CheckBox.Create(OnOptionChanged); columnsTableLayoutPanel.Controls.Add(m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.Type], 0, 0); m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.Group] = InitFactory.CheckBox.Create(OnOptionChanged); columnsTableLayoutPanel.Controls.Add(m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.Group], 0, 1); m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.GroupSize] = InitFactory.CheckBox.Create(OnOptionChanged); columnsTableLayoutPanel.Controls.Add(m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.GroupSize], 0, 2); m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.Difference] = InitFactory.CheckBox.Create(OnOptionChanged); columnsTableLayoutPanel.Controls.Add(m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.Difference], 0, 3); m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.Defect] = InitFactory.CheckBox.Create(OnOptionChanged); columnsTableLayoutPanel.Controls.Add(m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.Defect], 0, 4); m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.Transform] = InitFactory.CheckBox.Create(OnOptionChanged); columnsTableLayoutPanel.Controls.Add(m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.Transform], 0, 5); m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.Hint] = InitFactory.CheckBox.Create(OnOptionChanged); columnsTableLayoutPanel.Controls.Add(m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.Hint], 0, 6); m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.FirstFileName] = InitFactory.CheckBox.Create(OnOptionChanged); columnsTableLayoutPanel.Controls.Add(m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.FirstFileName], 1, 0); m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.FirstFileDirectory] = InitFactory.CheckBox.Create(OnOptionChanged); columnsTableLayoutPanel.Controls.Add(m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.FirstFileDirectory], 1, 1); m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.FirstImageSize] = InitFactory.CheckBox.Create(OnOptionChanged); columnsTableLayoutPanel.Controls.Add(m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.FirstImageSize], 1, 2); m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.FirstImageType] = InitFactory.CheckBox.Create(OnOptionChanged); columnsTableLayoutPanel.Controls.Add(m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.FirstImageType], 1, 3); m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.FirstBlockiness] = InitFactory.CheckBox.Create(OnOptionChanged); columnsTableLayoutPanel.Controls.Add(m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.FirstBlockiness], 1, 4); m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.FirstBlurring] = InitFactory.CheckBox.Create(OnOptionChanged); columnsTableLayoutPanel.Controls.Add(m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.FirstBlurring], 1, 5); m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.FirstFileSize] = InitFactory.CheckBox.Create(OnOptionChanged); columnsTableLayoutPanel.Controls.Add(m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.FirstFileSize], 1, 6); m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.FirstFileTime] = InitFactory.CheckBox.Create(OnOptionChanged); columnsTableLayoutPanel.Controls.Add(m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.FirstFileTime], 1, 7); m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.SecondFileName] = InitFactory.CheckBox.Create(OnOptionChanged); columnsTableLayoutPanel.Controls.Add(m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.SecondFileName], 2, 0); m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.SecondFileDirectory] = InitFactory.CheckBox.Create(OnOptionChanged); columnsTableLayoutPanel.Controls.Add(m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.SecondFileDirectory], 2, 1); m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.SecondImageSize] = InitFactory.CheckBox.Create(OnOptionChanged); columnsTableLayoutPanel.Controls.Add(m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.SecondImageSize], 2, 2); m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.SecondImageType] = InitFactory.CheckBox.Create(OnOptionChanged); columnsTableLayoutPanel.Controls.Add(m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.SecondImageType], 2, 3); m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.SecondBlockiness] = InitFactory.CheckBox.Create(OnOptionChanged); columnsTableLayoutPanel.Controls.Add(m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.SecondBlockiness], 2, 4); m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.SecondBlurring] = InitFactory.CheckBox.Create(OnOptionChanged); columnsTableLayoutPanel.Controls.Add(m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.SecondBlurring], 2, 5); m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.SecondFileSize] = InitFactory.CheckBox.Create(OnOptionChanged); columnsTableLayoutPanel.Controls.Add(m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.SecondFileSize], 2, 6); m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.SecondFileTime] = InitFactory.CheckBox.Create(OnOptionChanged); columnsTableLayoutPanel.Controls.Add(m_checkBoxes[(int)ResultsListView.ColumnsTypeHorizontal.SecondFileTime], 2, 7); TableLayoutPanel buttonsTableLayoutPanel = InitFactory.Layout.Create(3, 1); buttonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); buttonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F)); buttonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F)); mainTableLayoutPanel.Controls.Add(buttonsTableLayoutPanel, 0, 1); m_okButton = new Button(); m_okButton.Click += new System.EventHandler(OnButtonClick); buttonsTableLayoutPanel.Controls.Add(m_okButton, 1, 0); m_cancelButton = new Button(); m_cancelButton.Click += new System.EventHandler(OnButtonClick); buttonsTableLayoutPanel.Controls.Add(m_cancelButton, 2, 0); }
private void InitializeComponent() { components = new System.ComponentModel.Container(); var resources = new System.ComponentModel.ComponentResourceManager(typeof(DialogSetUpPoint)); _Button_Okay = new DevComponents.DotNetBar.ButtonX(); _IntegerInput_X = new DevComponents.Editors.IntegerInput(); _LabelX_X = new DevComponents.DotNetBar.LabelX(); _LabelX_Y = new DevComponents.DotNetBar.LabelX(); _IntegerInput_Y = new DevComponents.Editors.IntegerInput(); _LabelX_Z = new DevComponents.DotNetBar.LabelX(); _IntegerInput_Z = new DevComponents.Editors.IntegerInput(); _Button_Cancle = new DevComponents.DotNetBar.ButtonX(); ((System.ComponentModel.ISupportInitialize)_IntegerInput_X).BeginInit(); ((System.ComponentModel.ISupportInitialize)_IntegerInput_Y).BeginInit(); ((System.ComponentModel.ISupportInitialize)_IntegerInput_Z).BeginInit(); SuspendLayout(); // // Button_Okay // _Button_Okay.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; _Button_Okay.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; _Button_Okay.DialogResult = System.Windows.Forms.DialogResult.OK; _Button_Okay.FocusCuesEnabled = false; _Button_Okay.Location = new System.Drawing.Point(12, 90); _Button_Okay.Name = "Button_Okay"; _Button_Okay.Size = new System.Drawing.Size(56, 23); _Button_Okay.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; _Button_Okay.TabIndex = 0; _Button_Okay.Text = "Okay"; // // IntegerInput_X // // // // _IntegerInput_X.BackgroundStyle.Class = "DateTimeInputBackground"; _IntegerInput_X.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; _IntegerInput_X.ButtonFreeText.Shortcut = DevComponents.DotNetBar.eShortcut.F2; _IntegerInput_X.Location = new System.Drawing.Point(36, 12); _IntegerInput_X.MaxValue = 32767; _IntegerInput_X.MinValue = -32767; _IntegerInput_X.Name = "IntegerInput_X"; _IntegerInput_X.ShowUpDown = true; _IntegerInput_X.Size = new System.Drawing.Size(100, 20); _IntegerInput_X.TabIndex = 1; _IntegerInput_X.Visible = false; // // LabelX_X // // // // _LabelX_X.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; _LabelX_X.Location = new System.Drawing.Point(12, 12); _LabelX_X.Name = "LabelX_X"; _LabelX_X.Size = new System.Drawing.Size(18, 20); _LabelX_X.Style = DevComponents.DotNetBar.eDotNetBarStyle.VS2005; _LabelX_X.TabIndex = 91; _LabelX_X.Text = "X:"; _LabelX_X.Visible = false; // // LabelX_Y // // // // _LabelX_Y.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; _LabelX_Y.Location = new System.Drawing.Point(12, 38); _LabelX_Y.Name = "LabelX_Y"; _LabelX_Y.Size = new System.Drawing.Size(18, 20); _LabelX_Y.Style = DevComponents.DotNetBar.eDotNetBarStyle.VS2005; _LabelX_Y.TabIndex = 93; _LabelX_Y.Text = "Y:"; _LabelX_Y.Visible = false; // // IntegerInput_Y // // // // _IntegerInput_Y.BackgroundStyle.Class = "DateTimeInputBackground"; _IntegerInput_Y.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; _IntegerInput_Y.ButtonFreeText.Shortcut = DevComponents.DotNetBar.eShortcut.F2; _IntegerInput_Y.Location = new System.Drawing.Point(36, 38); _IntegerInput_Y.MaxValue = 32767; _IntegerInput_Y.MinValue = -32767; _IntegerInput_Y.Name = "IntegerInput_Y"; _IntegerInput_Y.ShowUpDown = true; _IntegerInput_Y.Size = new System.Drawing.Size(100, 20); _IntegerInput_Y.TabIndex = 92; _IntegerInput_Y.Visible = false; // // LabelX_Z // // // // _LabelX_Z.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; _LabelX_Z.Location = new System.Drawing.Point(12, 64); _LabelX_Z.Name = "LabelX_Z"; _LabelX_Z.Size = new System.Drawing.Size(18, 20); _LabelX_Z.Style = DevComponents.DotNetBar.eDotNetBarStyle.VS2005; _LabelX_Z.TabIndex = 95; _LabelX_Z.Text = "Z:"; _LabelX_Z.Visible = false; // // IntegerInput_Z // // // // _IntegerInput_Z.BackgroundStyle.Class = "DateTimeInputBackground"; _IntegerInput_Z.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; _IntegerInput_Z.ButtonFreeText.Shortcut = DevComponents.DotNetBar.eShortcut.F2; _IntegerInput_Z.Location = new System.Drawing.Point(36, 64); _IntegerInput_Z.MaxValue = 32767; _IntegerInput_Z.MinValue = -32767; _IntegerInput_Z.Name = "IntegerInput_Z"; _IntegerInput_Z.ShowUpDown = true; _IntegerInput_Z.Size = new System.Drawing.Size(100, 20); _IntegerInput_Z.TabIndex = 94; _IntegerInput_Z.Visible = false; // // Button_Cancle // _Button_Cancle.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; _Button_Cancle.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; _Button_Cancle.DialogResult = System.Windows.Forms.DialogResult.Cancel; _Button_Cancle.FocusCuesEnabled = false; _Button_Cancle.Location = new System.Drawing.Point(80, 90); _Button_Cancle.Name = "Button_Cancle"; _Button_Cancle.Size = new System.Drawing.Size(56, 23); _Button_Cancle.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; _Button_Cancle.TabIndex = 96; _Button_Cancle.Text = "Cancel"; // // DialogSetUpPoint // AcceptButton = _Button_Okay; AutoScaleDimensions = new System.Drawing.SizeF(6.0F, 13.0F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; CancelButton = _Button_Cancle; ClientSize = new System.Drawing.Size(148, 125); Controls.Add(_Button_Cancle); Controls.Add(_LabelX_Z); Controls.Add(_IntegerInput_Z); Controls.Add(_LabelX_Y); Controls.Add(_IntegerInput_Y); Controls.Add(_LabelX_X); Controls.Add(_IntegerInput_X); Controls.Add(_Button_Okay); FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; Icon = (System.Drawing.Icon)resources.GetObject("$this.Icon"); MaximizeBox = false; MinimizeBox = false; Name = "DialogSetUpPoint"; ShowIcon = false; StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; Text = "Point"; TopLeftCornerSize = 0; TopRightCornerSize = 0; ((System.ComponentModel.ISupportInitialize)_IntegerInput_X).EndInit(); ((System.ComponentModel.ISupportInitialize)_IntegerInput_Y).EndInit(); ((System.ComponentModel.ISupportInitialize)_IntegerInput_Z).EndInit(); ResumeLayout(false); }
private void m_RefreshTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { try { if (isUpdating) { return; } isUpdating = true; if (m_ImageUri == null) { return; } if (m_ImageUri.ToLower().StartsWith("http://")) { bool forceDownload = false; if (m_SaveFilePath == null) { // TODO: hack, need to get the correct cache directory m_SaveFilePath = System.IO.Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath) + "\\Cache\\PictureBoxImages\\temp"; forceDownload = true; } System.IO.FileInfo saveFile = new System.IO.FileInfo(m_SaveFilePath); if (saveFile.Exists) { try { Texture texture = ImageHelper.LoadTexture(m_SaveFilePath); texture.Dispose(); } catch { saveFile.Delete(); saveFile.Refresh(); } } if (forceDownload || !saveFile.Exists || (m_RefreshTime > 0 && saveFile.LastWriteTime.Subtract(System.DateTime.Now) > TimeSpan.FromSeconds(m_RefreshTime))) { //download it try { WorldWind.Net.WebDownload webDownload = new WorldWind.Net.WebDownload(m_ImageUri); webDownload.DownloadType = WorldWind.Net.DownloadType.Unspecified; if (!saveFile.Directory.Exists) { saveFile.Directory.Create(); } webDownload.DownloadFile(m_SaveFilePath); } catch { } } } else { m_SaveFilePath = m_ImageUri; } if (m_ImageTexture != null && !m_ImageTexture.Disposed) { m_ImageTexture.Dispose(); m_ImageTexture = null; } if (!System.IO.File.Exists(m_SaveFilePath)) { displayText = "Image Not Found"; return; } m_ImageTexture = ImageHelper.LoadTexture(m_SaveFilePath); m_surfaceDescription = m_ImageTexture.GetLevelDescription(0); int width = ClientSize.Width; int height = ClientSize.Height; if (ClientSize.Width == 0) { width = m_surfaceDescription.Width; } if (ClientSize.Height == 0) { height = m_surfaceDescription.Height; } if (ParentWidget is Widgets.Form && SizeParentToImage) { Widgets.Form parentForm = (Widgets.Form)ParentWidget; parentForm.ClientSize = new System.Drawing.Size(width, height + parentForm.HeaderHeight); } else if (SizeParentToImage) { ParentWidget.ClientSize = new System.Drawing.Size(width, height); } ClientSize = new System.Drawing.Size(width, height); m_currentImageUri = m_ImageUri; IsLoaded = true; isUpdating = false; displayText = null; if (m_RefreshTime == 0 && m_RefreshTimer.Enabled) { m_RefreshTimer.Stop(); } } catch (Exception ex) { Log.Write(ex); } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Resultgraph)); menu_btn = new System.Windows.Forms.Button(); pictureBox1 = new System.Windows.Forms.PictureBox(); back_btn = new System.Windows.Forms.Button(); label1 = new System.Windows.Forms.Label(); panel1 = new System.Windows.Forms.Panel(); pictureBox2 = new System.Windows.Forms.PictureBox(); ((System.ComponentModel.ISupportInitialize)(pictureBox1)).BeginInit(); panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(pictureBox2)).BeginInit(); SuspendLayout(); // // menu_btn // menu_btn.BackColor = System.Drawing.Color.White; menu_btn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("menu_btn.BackgroundImage"))); menu_btn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; menu_btn.Location = new System.Drawing.Point(470, 226); menu_btn.Name = "menu_btn"; menu_btn.Size = new System.Drawing.Size(80, 70); menu_btn.TabIndex = 66; menu_btn.UseVisualStyleBackColor = false; menu_btn.Click += new System.EventHandler(menu_btn_Click); // // pictureBox1 // pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); pictureBox1.Location = new System.Drawing.Point(236, 32); pictureBox1.Name = "pictureBox1"; pictureBox1.Size = new System.Drawing.Size(311, 190); pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; pictureBox1.TabIndex = 65; pictureBox1.TabStop = false; // // back_btn // back_btn.Anchor = System.Windows.Forms.AnchorStyles.None; back_btn.BackColor = System.Drawing.Color.White; back_btn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("back_btn.BackgroundImage"))); back_btn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; back_btn.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); back_btn.Location = new System.Drawing.Point(0, 227); back_btn.Name = "back_btn"; back_btn.Size = new System.Drawing.Size(80, 70); back_btn.TabIndex = 64; back_btn.UseVisualStyleBackColor = false; back_btn.Click += new System.EventHandler(back_btn_Click); // // label1 // label1.Anchor = System.Windows.Forms.AnchorStyles.None; label1.AutoSize = true; label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); label1.ForeColor = System.Drawing.Color.MidnightBlue; label1.Location = new System.Drawing.Point(232, 0); label1.Name = "label1"; label1.Size = new System.Drawing.Size(114, 24); label1.TabIndex = 2; label1.Text = "File Set UP"; // // panel1 // panel1.Anchor = System.Windows.Forms.AnchorStyles.None; panel1.Controls.Add(pictureBox2); panel1.Controls.Add(menu_btn); panel1.Controls.Add(pictureBox1); panel1.Controls.Add(back_btn); panel1.Controls.Add(label1); panel1.Location = new System.Drawing.Point(2, 2); panel1.Name = "panel1"; panel1.Size = new System.Drawing.Size(550, 296); panel1.TabIndex = 1; // // pictureBox2 // pictureBox2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox2.BackgroundImage"))); pictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; pictureBox2.Location = new System.Drawing.Point(3, 32); pictureBox2.Name = "pictureBox2"; pictureBox2.Size = new System.Drawing.Size(218, 190); pictureBox2.TabIndex = 67; pictureBox2.TabStop = false; // // Resultgraph // AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; BackColor = System.Drawing.Color.White; ClientSize = new System.Drawing.Size(551, 301); Controls.Add(panel1); MaximumSize = new System.Drawing.Size(567, 340); MinimumSize = new System.Drawing.Size(567, 340); Name = "Resultgraph"; StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; Text = "Resultgraph"; ((System.ComponentModel.ISupportInitialize)(pictureBox1)).EndInit(); panel1.ResumeLayout(false); panel1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(pictureBox2)).EndInit(); ResumeLayout(false); }
internal void CalcSize() { Host.Size = (ListView as Control).Size; Size = new System.Drawing.Size((ListView as Control).Size.Width + 4, (ListView as Control).Size.Height + 4); }
public static SKSizeI ToSKSize(this System.Drawing.Size size) { return(new SKSizeI(size.Width, size.Height)); }
/// <summary> /// Convers a <see cref="SystemSize"/> into to a <see cref="XnaPoint"/>. /// </summary> /// <param name="source">Source <see cref="SystemSize"/>.</param> /// <returns>The <see cref="XnaPoint"/>.</returns> public static XnaPoint ToXnaPoint(this SystemSize source) => new XnaPoint(source.Width, source.Height);
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent(string messageText, string caption, int _seconds) { components = new System.ComponentModel.Container(); // // OKButton // OKButton = new System.Windows.Forms.Button { Location = new System.Drawing.Point(12, 104), Name = "OKButton", Size = new System.Drawing.Size(75, 23), TabIndex = 0, Text = "OK", UseVisualStyleBackColor = true }; OKButton.Click += new System.EventHandler(OKButton_Click); // // StopButton // StopButton = new System.Windows.Forms.Button { Location = new System.Drawing.Point(170, 104), Name = "StopButton", Size = new System.Drawing.Size(150, 23), TabIndex = 1, Text = $"СТОП (осталось {_seconds} сек.)", UseVisualStyleBackColor = true }; StopButton.Click += new System.EventHandler(StopButton_Click); // // timer1 // timer1 = new System.Windows.Forms.Timer(container: components) { Interval = 1000 }; timer1.Tick += new System.EventHandler(timer1_Tick); // // MessageBoxText // MessageBoxText = new System.Windows.Forms.Label { Name = messageText, Location = new System.Drawing.Point(12, 9), AutoSize = true, Size = new System.Drawing.Size(0, 13), TabIndex = 2, Text = messageText }; SuspendLayout(); AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; ClientSize = new System.Drawing.Size(332, 139); Controls.Add(MessageBoxText); Controls.Add(StopButton); Controls.Add(OKButton); Name = "MessageBoxImproved"; Text = caption; ResumeLayout(false); PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { label1 = new System.Windows.Forms.Label(); labelMessage = new System.Windows.Forms.Label(); textBoxErrorMessage = new System.Windows.Forms.TextBox(); textBoxError = new System.Windows.Forms.TextBox(); buttonClose = new System.Windows.Forms.Button(); SuspendLayout(); // // label1 // label1.AutoSize = true; label1.BackColor = System.Drawing.Color.Transparent; label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); label1.Location = new System.Drawing.Point(9, 57); label1.Name = "label1"; label1.Size = new System.Drawing.Size(62, 13); label1.TabIndex = 3; label1.Text = "Error Detail:"; // // labelMessage // labelMessage.AutoSize = true; labelMessage.BackColor = System.Drawing.Color.Transparent; labelMessage.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); labelMessage.Location = new System.Drawing.Point(9, 8); labelMessage.Name = "labelMessage"; labelMessage.Size = new System.Drawing.Size(78, 13); labelMessage.TabIndex = 2; labelMessage.Text = "Error Message:"; // // textBoxErrorMessage // textBoxErrorMessage.BackColor = System.Drawing.SystemColors.Window; textBoxErrorMessage.Location = new System.Drawing.Point(12, 25); textBoxErrorMessage.Name = "textBoxErrorMessage"; textBoxErrorMessage.ReadOnly = true; textBoxErrorMessage.Size = new System.Drawing.Size(349, 20); textBoxErrorMessage.TabIndex = 2; // // textBoxError // textBoxError.BackColor = System.Drawing.SystemColors.Window; textBoxError.Location = new System.Drawing.Point(12, 74); textBoxError.Multiline = true; textBoxError.Name = "textBoxError"; textBoxError.ReadOnly = true; textBoxError.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; textBoxError.Size = new System.Drawing.Size(349, 138); textBoxError.TabIndex = 3; // // buttonClose // buttonClose.DialogResult = System.Windows.Forms.DialogResult.Cancel; buttonClose.Location = new System.Drawing.Point(286, 218); buttonClose.Name = "buttonClose"; buttonClose.Size = new System.Drawing.Size(75, 23); buttonClose.TabIndex = 1; buttonClose.Text = "Close"; buttonClose.UseVisualStyleBackColor = true; buttonClose.Click += new System.EventHandler(buttonClose_Click); // // ErrorForm // AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; CancelButton = buttonClose; ClientSize = new System.Drawing.Size(373, 249); ControlBox = false; Controls.Add(label1); Controls.Add(buttonClose); Controls.Add(labelMessage); Controls.Add(textBoxErrorMessage); Controls.Add(textBoxError); FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; Name = "ErrorForm"; ShowInTaskbar = false; StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; Text = "Error Message"; TopMost = true; ResumeLayout(false); PerformLayout(); }
// >>> TO NARIVIA /// <summary> /// Convers a <see cref="SystemSize"/> into to a <see cref="Size2D"/>. /// </summary> /// <param name="source">Source <see cref="SystemSize"/>.</param> /// <returns>The <see cref="Size2D"/>.</returns> public static Size2D ToSize2D(this SystemSize source) => new Size2D(source.Width, source.Height);
public void Inflate(System.Drawing.Size size) { }
public override void Read(string fileIn) { BinaryReader br = new BinaryReader(File.OpenRead(fileIn)); ncgr = new sNCGR(); // Read the common header ncgr.header.id = br.ReadChars(4); ncgr.header.endianess = br.ReadUInt16(); if (ncgr.header.endianess == 0xFFFE) { ncgr.header.id.Reverse <char>(); } ncgr.header.constant = br.ReadUInt16(); ncgr.header.file_size = br.ReadUInt32(); ncgr.header.header_size = br.ReadUInt16(); ncgr.header.nSection = br.ReadUInt16(); // Read the first section: CHAR (CHARacter data) ncgr.rahc.id = br.ReadChars(4); ncgr.rahc.size_section = br.ReadUInt32(); ncgr.rahc.nTilesY = br.ReadUInt16(); ncgr.rahc.nTilesX = br.ReadUInt16(); ncgr.rahc.depth = (ColorFormat)br.ReadUInt32(); ncgr.rahc.unknown1 = br.ReadUInt16(); ncgr.rahc.unknown2 = br.ReadUInt16(); ncgr.rahc.tiledFlag = br.ReadUInt32(); if ((ncgr.rahc.tiledFlag & 0xFF) == 0x0) { ncgr.order = TileForm.Horizontal; } else { ncgr.order = TileForm.Lineal; } ncgr.rahc.size_tiledata = br.ReadUInt32(); ncgr.rahc.unknown3 = br.ReadUInt32(); ncgr.rahc.data = br.ReadBytes((int)ncgr.rahc.size_tiledata); if (ncgr.rahc.nTilesX != 0xFFFF) { ncgr.rahc.nTilesX *= 8; ncgr.rahc.nTilesY *= 8; } if (ncgr.header.nSection == 2 && br.BaseStream.Position < br.BaseStream.Length) // If there isn't SOPC section { // Read the second section: SOPC ncgr.sopc.id = br.ReadChars(4); ncgr.sopc.size_section = br.ReadUInt32(); ncgr.sopc.unknown1 = br.ReadUInt32(); ncgr.sopc.charSize = br.ReadUInt16(); ncgr.sopc.nChar = br.ReadUInt16(); } br.Close(); Set_Tiles(ncgr.rahc.data, ncgr.rahc.nTilesX, ncgr.rahc.nTilesY, ncgr.rahc.depth, ncgr.order, true); if (ncgr.rahc.nTilesX == 0xFFFF) { System.Drawing.Size size = Actions.Get_Size((int)ncgr.rahc.size_tiledata, BPP); ncgr.rahc.nTilesX = (ushort)size.Width; ncgr.rahc.nTilesY = (ushort)size.Height; Height = size.Height; Width = size.Width; } }
public static System.Drawing.PointF Subtract(System.Drawing.PointF pt, System.Drawing.Size sz) { throw null; }
public Rectangle(System.Drawing.Point location, System.Drawing.Size size) { throw null; }
void InitializeComponent() { ClientSize = new System.Drawing.Size(FORM_WIDTH, FORM_HEIGHT); FormBorderStyle = FormBorderStyle.Sizable; Icon = Resources.Icons.Get(Icon.Size); StartPosition = FormStartPosition.CenterScreen; ShowInTaskbar = false; MaximizeBox = false; MinimizeBox = false; KeyPreview = true; Resources.Help.Bind(this, Resources.Help.Paths); TableLayoutPanel mainTableLayoutPanel = InitFactory.Layout.Create(1, 2, 5); mainTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 85F)); mainTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 15F)); Controls.Add(mainTableLayoutPanel); TableLayoutPanel pathTableLayoutPanel = InitFactory.Layout.Create(1, 2, 0); pathTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 85F)); pathTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 15F)); pathTableLayoutPanel.CellBorderStyle = TableLayoutPanelCellBorderStyle.Inset; mainTableLayoutPanel.Controls.Add(pathTableLayoutPanel, 0, 0); m_tabControl = new TabControl(); m_tabControl.Dock = DockStyle.Fill; m_tabControl.Location = new System.Drawing.Point(0, 0); m_tabControl.Margin = new Padding(0); m_tabControl.Selected += new TabControlEventHandler(OnTabControlSelected); pathTableLayoutPanel.Controls.Add(m_tabControl, 0, 0); m_searchTabPage = new TabPage(); m_searchTabPage.Tag = CoreDll.PathType.Search; m_tabControl.Controls.Add(m_searchTabPage); m_toolTip = new ToolTip(); m_toolTip.ShowAlways = true; m_searchCheckedList = InitFactory.CheckedListBox.Create(OnSelectedIndexChanged, OnListBoxDoubleClick, OnItemCheck); m_searchTabPage.Controls.Add(m_searchCheckedList); m_ignoreTabPage = new TabPage(); m_ignoreTabPage.Tag = CoreDll.PathType.Ignore; m_tabControl.Controls.Add(m_ignoreTabPage); m_ignoreListBox = InitFactory.ListBox.Create(OnSelectedIndexChanged, OnListBoxDoubleClick); m_ignoreTabPage.Controls.Add(m_ignoreListBox); m_validTabPage = new TabPage(); m_validTabPage.Tag = CoreDll.PathType.Valid; m_tabControl.Controls.Add(m_validTabPage); m_validListBox = InitFactory.ListBox.Create(OnSelectedIndexChanged, OnListBoxDoubleClick); m_validTabPage.Controls.Add(m_validListBox); m_deleteTabPage = new TabPage(); m_deleteTabPage.Tag = CoreDll.PathType.Delete; m_tabControl.Controls.Add(m_deleteTabPage); m_deleteListBox = InitFactory.ListBox.Create(OnSelectedIndexChanged, OnListBoxDoubleClick); m_deleteTabPage.Controls.Add(m_deleteListBox); TableLayoutPanel pathButtonsTableLayoutPanel = InitFactory.Layout.Create(4, 1); pathButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 30F)); pathButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 30F)); pathButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 20F)); pathButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 20F)); pathTableLayoutPanel.Controls.Add(pathButtonsTableLayoutPanel, 0, 1); m_addFilesButton = new Button(); m_addFilesButton.AutoSize = true; m_addFilesButton.Click += new EventHandler(OnAddFilesButtonClick); pathButtonsTableLayoutPanel.Controls.Add(m_addFilesButton, 0, 0); m_addFolderButton = new Button(); m_addFolderButton.AutoSize = true; m_addFolderButton.Click += new EventHandler(OnAddFolderButtonClick); pathButtonsTableLayoutPanel.Controls.Add(m_addFolderButton, 1, 0); m_changeButton = new Button(); m_changeButton.AutoSize = true; m_changeButton.Click += new EventHandler(OnChangeButtonClick); pathButtonsTableLayoutPanel.Controls.Add(m_changeButton, 2, 0); m_removeButton = new Button(); m_removeButton.AutoSize = true; m_removeButton.Click += new EventHandler(OnRemoveButtonClick); pathButtonsTableLayoutPanel.Controls.Add(m_removeButton, 3, 0); TableLayoutPanel mainButtonsTableLayoutPanel = InitFactory.Layout.Create(3, 1); mainButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 60F)); mainButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 20F)); mainButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 20F)); mainTableLayoutPanel.Controls.Add(mainButtonsTableLayoutPanel, 0, 1); m_okButton = new Button(); m_okButton.Click += new EventHandler(OnOkButtonClick); mainButtonsTableLayoutPanel.Controls.Add(m_okButton, 1, 0); m_cancelButton = new Button(); m_cancelButton.Click += new EventHandler(OnCancelButtonClick); mainButtonsTableLayoutPanel.Controls.Add(m_cancelButton, 2, 0); AllowDrop = true; DragDrop += new DragEventHandler(OnDragDrop); DragEnter += new DragEventHandler(OnDragEnter); KeyDown += new KeyEventHandler(OnKeyDown); }
public static System.Drawing.PointF Add(System.Drawing.PointF pt, System.Drawing.Size sz) { throw null; }
public ConfigureTimeLayout() { InitializeComponent(); Size = new System.Drawing.Size(304, 86); }
/// <summary> /// Возврашает загруженное изображение по заланному пути и заданного размера. /// </summary> /// <param name="size"></param> /// <param name="path"></param> /// <returns></returns> public System.Drawing.Bitmap LoadBitmap(System.Drawing.Size size, string path) { return(LoadBitmap(size.Width, size.Height, path)); }
public static Size ToWpf(this System.Drawing.Size s) { return(new Size(s.Width, s.Height)); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent( ) { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutBox)); tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel(); logoPictureBox = new System.Windows.Forms.PictureBox(); labelProductName = new System.Windows.Forms.Label(); labelVersion = new System.Windows.Forms.Label(); labelCopyright = new System.Windows.Forms.Label(); labelCompanyName = new System.Windows.Forms.Label(); textBoxDescription = new System.Windows.Forms.TextBox(); okButton = new System.Windows.Forms.Button(); tableLayoutPanel.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(logoPictureBox)).BeginInit(); SuspendLayout(); // // tableLayoutPanel // tableLayoutPanel.ColumnCount = 2; tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33F)); tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 67F)); tableLayoutPanel.Controls.Add(logoPictureBox, 0, 0); tableLayoutPanel.Controls.Add(labelProductName, 1, 0); tableLayoutPanel.Controls.Add(labelVersion, 1, 1); tableLayoutPanel.Controls.Add(labelCopyright, 1, 2); tableLayoutPanel.Controls.Add(labelCompanyName, 1, 3); tableLayoutPanel.Controls.Add(textBoxDescription, 1, 4); tableLayoutPanel.Controls.Add(okButton, 1, 5); tableLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill; tableLayoutPanel.Location = new System.Drawing.Point(9, 9); tableLayoutPanel.Name = "tableLayoutPanel"; tableLayoutPanel.RowCount = 6; tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); tableLayoutPanel.Size = new System.Drawing.Size(417, 265); tableLayoutPanel.TabIndex = 0; // // logoPictureBox // logoPictureBox.Dock = System.Windows.Forms.DockStyle.Fill; logoPictureBox.Image = ((System.Drawing.Image)(resources.GetObject("logoPictureBox.Image"))); logoPictureBox.Location = new System.Drawing.Point(3, 3); logoPictureBox.Name = "logoPictureBox"; tableLayoutPanel.SetRowSpan(logoPictureBox, 6); logoPictureBox.Size = new System.Drawing.Size(131, 259); logoPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; logoPictureBox.TabIndex = 12; logoPictureBox.TabStop = false; // // labelProductName // labelProductName.Dock = System.Windows.Forms.DockStyle.Fill; labelProductName.Location = new System.Drawing.Point(143, 0); labelProductName.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0); labelProductName.MaximumSize = new System.Drawing.Size(0, 17); labelProductName.Name = "labelProductName"; labelProductName.Size = new System.Drawing.Size(271, 17); labelProductName.TabIndex = 19; labelProductName.Text = "Product Name"; labelProductName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // labelVersion // labelVersion.Dock = System.Windows.Forms.DockStyle.Fill; labelVersion.Location = new System.Drawing.Point(143, 26); labelVersion.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0); labelVersion.MaximumSize = new System.Drawing.Size(0, 17); labelVersion.Name = "labelVersion"; labelVersion.Size = new System.Drawing.Size(271, 17); labelVersion.TabIndex = 0; labelVersion.Text = "Version"; labelVersion.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // labelCopyright // labelCopyright.Dock = System.Windows.Forms.DockStyle.Fill; labelCopyright.Location = new System.Drawing.Point(143, 52); labelCopyright.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0); labelCopyright.MaximumSize = new System.Drawing.Size(0, 17); labelCopyright.Name = "labelCopyright"; labelCopyright.Size = new System.Drawing.Size(271, 17); labelCopyright.TabIndex = 21; labelCopyright.Text = "Copyright"; labelCopyright.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // labelCompanyName // labelCompanyName.Dock = System.Windows.Forms.DockStyle.Fill; labelCompanyName.Location = new System.Drawing.Point(143, 78); labelCompanyName.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0); labelCompanyName.MaximumSize = new System.Drawing.Size(0, 17); labelCompanyName.Name = "labelCompanyName"; labelCompanyName.Size = new System.Drawing.Size(271, 17); labelCompanyName.TabIndex = 22; labelCompanyName.Text = "Company Name"; labelCompanyName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // textBoxDescription // textBoxDescription.Dock = System.Windows.Forms.DockStyle.Fill; textBoxDescription.Location = new System.Drawing.Point(143, 107); textBoxDescription.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3); textBoxDescription.Multiline = true; textBoxDescription.Name = "textBoxDescription"; textBoxDescription.ReadOnly = true; textBoxDescription.ScrollBars = System.Windows.Forms.ScrollBars.Both; textBoxDescription.Size = new System.Drawing.Size(271, 126); textBoxDescription.TabIndex = 23; textBoxDescription.TabStop = false; textBoxDescription.Text = "Description"; // // okButton // okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); okButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; okButton.Location = new System.Drawing.Point(339, 239); okButton.Name = "okButton"; okButton.Size = new System.Drawing.Size(75, 23); okButton.TabIndex = 24; okButton.Text = "&OK"; // // AboutBox // AcceptButton = okButton; AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; ClientSize = new System.Drawing.Size(435, 283); Controls.Add(tableLayoutPanel); FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; MaximizeBox = false; MinimizeBox = false; Name = "AboutBox"; Padding = new System.Windows.Forms.Padding(9); ShowIcon = false; ShowInTaskbar = false; StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; Text = "About Exoplanet Library"; TopMost = true; tableLayoutPanel.ResumeLayout(false); tableLayoutPanel.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(logoPictureBox)).EndInit(); ResumeLayout(false); }
/// <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(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmSplash)); lblNote = new System.Windows.Forms.Label(); lblDatabase_ = new System.Windows.Forms.Label(); lblWorkgroup_ = new System.Windows.Forms.Label(); lblUsername_ = new System.Windows.Forms.Label(); timStart = new System.Windows.Forms.Timer(components); SuspendLayout(); // // lblNote // lblNote.Font = new System.Drawing.Font("Arial Rounded MT Bold", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); lblNote.Location = new System.Drawing.Point(6, 9); lblNote.Name = "lblNote"; lblNote.Size = new System.Drawing.Size(500, 23); lblNote.TabIndex = 0; lblNote.Text = "Please wait while the database is being updated...."; // // lblDatabase_ // lblDatabase_.AutoSize = true; lblDatabase_.Location = new System.Drawing.Point(209, 14); lblDatabase_.Name = "lblDatabase_"; lblDatabase_.Size = new System.Drawing.Size(30, 13); lblDatabase_.TabIndex = 13; lblDatabase_.Text = "temp"; lblDatabase_.Visible = false; // // lblWorkgroup_ // lblWorkgroup_.AutoSize = true; lblWorkgroup_.Location = new System.Drawing.Point(245, 14); lblWorkgroup_.Name = "lblWorkgroup_"; lblWorkgroup_.Size = new System.Drawing.Size(30, 13); lblWorkgroup_.TabIndex = 12; lblWorkgroup_.Text = "temp"; lblWorkgroup_.Visible = false; // // lblUsername_ // lblUsername_.AutoSize = true; lblUsername_.Location = new System.Drawing.Point(272, 14); lblUsername_.Name = "lblUsername_"; lblUsername_.Size = new System.Drawing.Size(30, 13); lblUsername_.TabIndex = 11; lblUsername_.Text = "temp"; lblUsername_.Visible = false; // // timStart // timStart.Enabled = true; timStart.Interval = 1000; timStart.Tick += new System.EventHandler(timStart_Tick); // // frmSplash // AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; ClientSize = new System.Drawing.Size(502, 33); ControlBox = false; Controls.Add(lblDatabase_); Controls.Add(lblWorkgroup_); Controls.Add(lblUsername_); Controls.Add(lblNote); FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; Icon = ((System.Drawing.Icon)(resources.GetObject("$Icon"))); Name = "frmSplash"; ShowIcon = false; ShowInTaskbar = false; StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; Load += new System.EventHandler(frmSplash_Load); ResumeLayout(false); PerformLayout(); }
// Methods public virtual System.Drawing.Size GetPreferredSize(System.Drawing.Size constrainingSize) { }