private bool ConstructUI() { // check if UI has already been built if (!_uiContructed) { Title = "Welcome!"; UIImageView imgBackground = new UIImageView(new RectangleF(0, 0, 320, 480)); imgBackground.Image = UIImage.FromFile("images/Wallpaper.png"); this.Add(imgBackground); var loc = new PointF(10, 20); var size = new SizeF(300, 44); var rect = new RectangleF(loc, size); GlassButton b = new GlassButton(rect); b.SetTitleColor(UIColor.Black, UIControlState.Normal); b.NormalColor = UIColor.FromRGB(0x62, 0x63, 0x70); b.HorizontalAlignment = UIControlContentHorizontalAlignment.Center; b.SetTitle("Next Screen", UIControlState.Normal); b.TouchUpInside += (o, e) => { MXTouchContainer.Navigate("Dashboard"); }; this.Add(b); // UI construction completed _uiContructed = true; } return(_uiContructed); }
private void createAndSetButtonStyle(FunctionZontButtonInfo button, int posX, int posY) { GlassButton glassButton = new GlassButton(); glassButton.Location = new Point(posX, posY); glassButton.BackColor = Color.CornflowerBlue; glassButton.ShineColor = Color.CornflowerBlue; glassButton.GlowColor = Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); glassButton.Height = m_functionZontBaseInfo.buttonHeigth; glassButton.Width = m_functionZontBaseInfo.buttonWidth; glassButton.Text = button.text; glassButton.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); glassButton.TextAlign = ContentAlignment.MiddleRight; glassButton.Cursor = Cursors.Hand; glassButton.FadeOnFocus = true; glassButton.InnerBorderColor = Color.Transparent; glassButton.Name = button.name; glassButton.OuterBorderColor = Color.Transparent; glassButton.TabIndex = Convert.ToInt32(button.sequence); glassButton.Image = Image.FromFile(m_exeFileRelativePath + button.image); glassButton.ImageAlign = ContentAlignment.MiddleLeft; glassButton.Click += new System.EventHandler(this.ButtonFrom_Click); this.Controls.Add(glassButton); this.ResumeLayout(false); m_buttonList.Add(button.name, glassButton); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { window = new UIWindow(UIScreen.MainScreen.Bounds); dvc = new DialogViewController( new RootElement("Root") { new Section("Main") { (button = new GlassButton(new RectangleF(0, 0, window.Bounds.Width - 20, 60))), (upper = new StringElement("this should become uppercased")), (lower = new StringElement("THIS SHOULD BECOME LOWERCASED")), } } ); button.SetTitle("Test", UIControlState.Normal); button.Tapped += (obj) => { button.Enabled = false; Test(); }; window.RootViewController = dvc; window.MakeKeyAndVisible(); return(true); }
private void Gbtn_Click(object sender, EventArgs e) { GlassButton gbtn = sender as GlassButton; TableLayoutPanel flp = gbtn.Tag as TableLayoutPanel; //FlowLayoutPanel flp = gbtn.Tag as FlowLayoutPanel; Panel panel = flp.Tag as Panel; panel.BringToFront(); flp.BringToFront(); foreach (Control item in flp.Controls) { if (item is TableLayoutPanel) { foreach (var lb in item.Controls) { if (lb is Label) { Label l = lb as Label; if (l.Tag is Field) { (l.Tag as Field).RefreshPanel2(); } } } } } }
Section CreateButtonSection(float labelHeight, float containerWidth) { Section buttonSection = new Section(); GlassButton button = new GlassButton(new RectangleF(0, 0, containerWidth, labelHeight)); button.SetTitleColor(UIColor.FromRGBA(255, 255, 0, 255), UIControlState.Normal); button.HorizontalAlignment = UIControlContentHorizontalAlignment.Center; button.SetTitle("Create Dataset", UIControlState.Normal); button.TouchUpInside += (o, e) => { string name = _name.Summary(); if (string.IsNullOrEmpty(name)) { //show an alert if data is not filled new UIAlertView(string.Empty, "Enter a name", null, "OK", null).Show(); } else { // navigate to next screen MXTouchContainer.Navigate("Dashboard/CreateData/" + name); } }; UIViewElement imageElement = new UIViewElement(string.Empty, button, true); imageElement.Flags = UIViewElement.CellFlags.DisableSelection | UIViewElement.CellFlags.Transparent; buttonSection.Add(imageElement); return(buttonSection); }
private void InitializeSModel() { foreach (SensorModel smodel in ConfigData.SensorModelRoot.SensorModels) { TableLayoutPanel tlp = new TableLayoutPanel(); tlp.AutoScroll = true; tlp.Dock = DockStyle.Fill; tlp.Parent = panelItem; tlp.Padding = new Padding(8); tlp.ColumnCount = 2; tlp.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 11)); tlp.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 89)); tlp.Tag = panelItem; //FlowLayoutPanel flp = new FlowLayoutPanel(); //flp.AutoScroll = true; //flp.Dock = DockStyle.Fill; //flp.Parent = panelItem; //flp.Padding = new Padding(8); //flp.Tag = panelItem; GlassButton gbtn = new GlassButton(); gbtn.CornerRadius = 0; gbtn.Name = smodel.Name; gbtn.ButtonText = smodel.Title; gbtn.Font = new System.Drawing.Font("幼圆", 12, System.Drawing.FontStyle.Regular); gbtn.Size = new System.Drawing.Size(182, 40); gbtn.Margin = new Padding(6); gbtn.Tag = tlp; gbtn.Click += Gbtn_Click; panelLeft.Controls.Add(gbtn); } }
void InitialModelClickSensors() { for (int i = 1; i < panelLeft.Controls.Count; i++) { if (panelLeft.Controls[i] is GlassButton) { GlassButton gb = panelLeft.Controls[i] as GlassButton; //FlowLayoutPanel flp = gb.Tag as FlowLayoutPanel; TableLayoutPanel flp = gb.Tag as TableLayoutPanel; List <Sensor> sensors = ConfigData.allSensors.FindAll(ss => ss.ModelKey == gb.Name); foreach (Sensor ss in sensors) { foreach (Field field in ss.Model.Fields) { if (!field.Realtime) { continue; } TableLayoutPanel spanel = new TableLayoutPanel(); spanel.Margin = new Padding(5); spanel.MinimumSize = new Size(168, 168); spanel.MaximumSize = new Size(168, 168); spanel.ColumnCount = 1; spanel.CellBorderStyle = TableLayoutPanelCellBorderStyle.Single; spanel.Parent = flp; flp.Controls.Add(field.ChartPanel2); spanel.ForeColor = Color.Black; spanel.BackColor = Color.White; spanel.AutoScroll = true; Label lb = new Label(); lb.BackColor = Color.GreenYellow; toolTip1.SetToolTip(lb, ss.GroupName); field.ClickLabel = lb; //if (ss.Model.Fields.FindAll(f => f.Realtime).Count == 1) //{ lb.Font = new Font("微软雅黑", 30, FontStyle.Bold); //} //else if (ss.Model.Fields.FindAll(f => f.Realtime).Count == 2) //{ // lb.Font = new Font("微软雅黑", 20, FontStyle.Bold); //} //else //{ // lb.Font = new Font("微软雅黑", 10, FontStyle.Bold); //} lb.Margin = new Padding(2); spanel.RowStyles.Add(new RowStyle(SizeType.Percent, 50)); lb.Parent = spanel; lb.Dock = DockStyle.Fill; lb.Text = field.CLabelText; lb.Tag = field; //lb.DoubleClick += Lb_DoubleClick; } } } } }
private GlassButton GetGlassButton(float buttonYposition) { var buttonWidth = 300f; var center = (View.Frame.Width / 2) - (buttonWidth / 2); var frame = new RectangleF(center, buttonYposition, 300f, 50f); var glassBtn = new GlassButton(frame); glassBtn.SetTitle("Use", UIControlState.Normal); glassBtn.TouchDown += AddProgressIndicator; glassBtn.TouchUpInside += HandleLoginButtonTouchUpInside; return(glassBtn); }
private void OnGlassbtnEnabledChanged(object sender, EventArgs e) { GlassButton b = (GlassButton)sender; if (b.Enabled) { b.BackColor = Color.Silver; } else { b.BackColor = Color.Transparent; } }
public static GlassButton CreateGlassButton(string buttonTitle, UIColor color, float width, float height, ButtonClickDelegate touchUpInside) { GlassButton button = new GlassButton(new RectangleF(0, 0, width, height)); button.NormalColor = color; button.HighlightedColor = UIColor.LightGray; button.SetTitleColor(UIColor.FromRGBA(255, 255, 255, 255), UIControlState.Normal); button.SetTitleColor(UIColor.FromRGBA(0, 0, 0, 255), UIControlState.Highlighted); button.HorizontalAlignment = UIControlContentHorizontalAlignment.Center; button.SetTitle(buttonTitle, UIControlState.Normal); button.TouchUpInside += (s, e) => { if (touchUpInside != null) touchUpInside(s, e); }; return button; }
UIView CreateTextView(UITextField textField, string placeholderText, string text, RectangleF rectF, GetLocationActions locActions) { UIView uiView = new UIView(rectF); uiView.MultipleTouchEnabled = true; textField.Frame = new RectangleF(20, 0, this.View.Bounds.Width - 110, 30); textField.Font = font12; textField.Placeholder = placeholderText; textField.Text = text; textField.BorderStyle = UITextBorderStyle.RoundedRect; textField.Enabled = true; uiView.AddSubview(textField); GlassButton gbLoc = new GlassButton(new RectangleF(textField.Bounds.Width + 20 + 5, 0, 80, 30)); if (locActions != GetLocationActions.None) { gbLoc.Font = font10; gbLoc.NormalColor = UIColor.Brown; gbLoc.SetTitle("Use Location", UIControlState.Normal); gbLoc.Enabled = true; gbLoc.Tapped += delegate { textField.Enabled = false; if (locActions == GetLocationActions.UpdateTraffic) { gbBlocked.Enabled = false; gbHeavy.Enabled = false; gbNormal.Enabled = false; gbLow.Enabled = false; } else if (locActions == GetLocationActions.SetOrigin) { gbViewTraffic.Enabled = false; } else if (locActions == GetLocationActions.SetDestination) { gbViewTraffic.Enabled = false; } GetLocation(locActions, textField); }; uiView.AddSubview(gbLoc); } return(uiView); }
UIView CreateHeaderView(Dictionary <string, RectangleF> dicRect, int iViewHeight) { UIView uiView = new UIView(new RectangleF(0, 0, this.View.Bounds.Width, iViewHeight)); uiView.MultipleTouchEnabled = true; gbBlocked = new GlassButton(dicRect["blocked"]); gbBlocked.Font = font12; gbBlocked.SetTitle("Blocked", UIControlState.Normal); gbBlocked.NormalColor = UIColor.Red; gbBlocked.Enabled = true; gbBlocked.Tapped += delegate { CheckChannel(TrafficUpdates.TrafficMessage.Blocked); }; uiView.AddSubview(gbBlocked); gbHeavy = new GlassButton(dicRect["heavy"]); gbHeavy.Font = font12; gbHeavy.SetTitle("Heavy", UIControlState.Normal); gbHeavy.Enabled = true; gbHeavy.NormalColor = UIColor.Orange; gbHeavy.Tapped += delegate { CheckChannel(TrafficUpdates.TrafficMessage.Heavy); }; uiView.AddSubview(gbHeavy); gbNormal = new GlassButton(dicRect["normal"]); gbNormal.Font = font12; gbNormal.NormalColor = UIColor.FromRGB(0, 255, 0); gbNormal.SetTitle("Normal", UIControlState.Normal); gbNormal.Enabled = true; gbNormal.Tapped += delegate { CheckChannel(TrafficUpdates.TrafficMessage.Normal); }; uiView.AddSubview(gbNormal); gbLow = new GlassButton(dicRect["low"]); gbLow.Font = font12; gbLow.NormalColor = UIColor.Purple; gbLow.SetTitle("Low", UIControlState.Normal); gbLow.Enabled = true; gbLow.Tapped += delegate { CheckChannel(TrafficUpdates.TrafficMessage.Low); }; uiView.AddSubview(gbLow); return(uiView); }
public static GlassButton CreateGlassButton(string buttonTitle, UIColor color, float width, float height) { GlassButton button = new GlassButton(new RectangleF(0, 0, width, height)); button.NormalColor = color; button.HighlightedColor = UIColor.LightGray; button.SetTitleColor(UIColor.FromRGBA(255, 255, 255, 255), UIControlState.Normal); button.SetTitleColor(UIColor.FromRGBA(0, 0, 0, 255), UIControlState.Highlighted); button.HorizontalAlignment = UIControlContentHorizontalAlignment.Center; button.SetTitle(buttonTitle, UIControlState.Normal); //TODO: Find a away to pass in an TouchUpInside delegate instead of a Uri //button.TouchUpInside += (sender, e) => { }; return button; }
UIView CreateButtonView(RectangleF rectF) { UIView uiView = new UIView(rectF); uiView.MultipleTouchEnabled = true; gbViewTraffic = new GlassButton(new RectangleF((this.View.Bounds.Width - 100) / 2, 0, 100, 35)); gbViewTraffic.Font = font12; gbViewTraffic.NormalColor = UIColor.Blue; gbViewTraffic.SetTitle("View Traffic", UIControlState.Normal); gbViewTraffic.Enabled = true; gbViewTraffic.Tapped += delegate { new TrafficViewDialogViewController(tu, tfOrigin.Text, tfDestination.Text); }; uiView.AddSubview(gbViewTraffic); return(uiView); }
public Button(string title, Action handler) { // Setup the button //var button = new UIButton(UIButtonType.RoundedRect); var button = new GlassButton(); button.SetTitle(title, UIControlState.Normal); View = button; // Attach an event handler and forward the event button.TouchUpInside += (sender, e) => handler(); // Setup the layout parameters LayoutParameters = new LayoutParameters(AutoSize.FillParent, AutoSize.WrapContent); LayoutParameters.MaxWidth = 160; }
private void SetSelectButtonState(GlassButton button) { if (m_selectButton != null) { m_selectButton.BackColor = BUTTON_INIT_BACK_COLOR; m_selectButton.ShineColor = BUTTON_INIT_BACK_COLOR; m_selectButton.ForeColor = BUTTON_INIT_FONT_BACK_COLOR; m_selectButton.Font = new System.Drawing.Font("宋体", 12F); } button.BackColor = BUTTON_SELECT_BACK_COLOR; button.ShineColor = BUTTON_SELECT_BACK_COLOR; button.ForeColor = BUTTON_INIT_SELECT_FONT_BACK_COLOR; button.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold); m_selectButton = button; }
// Create view public override void ViewDidLoad() { base.ViewDidLoad(); image = UIImage.FromFile("image.jpg"); imageView = new GPUImageView(new RectangleF(0, 0, 480, 320)); imageView.ContentMode = UIViewContentMode.ScaleToFill; View = imageView; // Trick to display the image initially // TODO: Have the right size applySepiaFilter(0f); UIButton button = new GlassButton(new RectangleF(0, 0, 96, 32)); button.SetTitle("Sepia!", UIControlState.Normal); button.TouchUpInside += (object sender, EventArgs e) => { applySepiaFilter(0.9f); }; View.AddSubview(button); }
public override void ViewDidLoad() { base.ViewDidLoad(); // Perform any additional setup after loading the view, typically from a nib. this.SetupPicker(); //this.SignInButton.IconImage = Theme.Login; //this.SignUpButton.IconImage = Theme.Register; var b = new GlassButton(new RectangleF(20, 250, 280, 50)) { Font = UIFont.BoldSystemFontOfSize(20), NormalColor = UIColor.Red, HighlightedColor = UIColor.Gray }; b.SetTitle("Send Money", UIControlState.Normal); View.AddSubview(b); // var gradient = new CAGradientLayer(); // gradient.Colors = new MonoTouch.CoreGraphics.CGColor[] // { // UIColor.FromRGB (115, 181, 216).CGColor, // UIColor.FromRGB (35, 101, 136).CGColor // }; // gradient.Locations = new NSNumber[] // { // .5f, // 1f // }; // // gradient.Frame = View.Layer.Bounds; // View.Layer.AddSublayer(gradient); // Perform any additional setup after loading the view, typically from a nib. }
private bool ConstructUI() { // check if UI has already been built if (!_uiContructed) { Title = "Dashboard"; UIImageView imgBackground = new UIImageView(new RectangleF(0, 0, 320, 480)); imgBackground.Image = UIImage.FromFile("images/Wallpaper.png"); this.Add(imgBackground); float yLoc = 0; float labelHeight = 44; var loc = new PointF(10, 75); var size = new SizeF(300, labelHeight); var viewRect = new RectangleF(loc, size); UIView statsView = new UIView(viewRect); statsView.BackgroundColor = UIColor.Clear; var labelSize = new SizeF(150, labelHeight); var rect = new RectangleF(new PointF(0, yLoc), labelSize); var userIdLabel = new UILabel(rect); userIdLabel.Text = "DataSet GUID:"; userIdLabel.Layer.BorderColor = new CGColor(1.0f, 0.0f, 0.0f, 1.0f); userIdLabel.Layer.CornerRadius = 15f; userIdLabel.BackgroundColor = UIColor.FromWhiteAlpha(0.5f, 0.5f); var labelRect = new RectangleF(); var labelStart = labelSize.Width - 20; labelRect.Width = size.Width - labelStart; labelRect.Height = labelHeight; labelRect.Location = new PointF(labelStart, yLoc); _userIdValueLabel = new UILabel(labelRect); _userIdValueLabel.BackgroundColor = UIColor.FromWhiteAlpha(0.5f, 0.5f); _userIdValueLabel.Layer.CornerRadius = 15f; _userIdValueLabel.Text = Model != null ? Model.Name : "NULL"; statsView.Add(userIdLabel); statsView.Add(_userIdValueLabel); this.Add(statsView); //float buttonStart = labelRect.Y + labelHeight + 10; loc = new PointF(10, 20); size = new SizeF(300, 44); rect = new RectangleF(loc, size); GlassButton b = new GlassButton(rect); b.SetTitleColor(UIColor.FromRGBA(255, 255, 0, 255), UIControlState.Normal); b.HorizontalAlignment = UIControlContentHorizontalAlignment.Center; b.SetTitle("Delete Data", UIControlState.Normal); b.TouchUpInside += (o, e) => { string s = !string.IsNullOrEmpty(s) ? Model.Name : s = "NoData"; MXTouchContainer.Navigate("WelcomeScreen/Data/" + s); }; this.Add(b); var button = new UIBarButtonItem(UIBarButtonSystemItem.Refresh); button.Clicked += delegate(object sender, EventArgs e) { MXTouchContainer.Navigate("WelcomeScreen"); }; NavigationItem.SetRightBarButtonItem(button, true); // UI construction completed _uiContructed = true; } return(_uiContructed); }
public static Element CreateGlassButtonElement(GlassButton button) { UIViewElement imageElement = new UIViewElement(null, button, true); imageElement.Flags = UIViewElement.CellFlags.DisableSelection | UIViewElement.CellFlags.Transparent; return imageElement; }
private void InitializeComponent() { this._speciesDataGrid = new System.Windows.Forms.DataGrid(); this._dataGridTableStyle1 = new System.Windows.Forms.DataGridTableStyle(); this._dataGridTextBoxColumn1 = new System.Windows.Forms.DataGridTextBoxColumn(); this._dataGridTextBoxColumn2 = new System.Windows.Forms.DataGridTextBoxColumn(); this._dataGridTextBoxColumn3 = new System.Windows.Forms.DataGridTextBoxColumn(); this._dataGridTextBoxColumn4 = new System.Windows.Forms.DataGridTextBoxColumn(); this._dataGridTextBoxColumn5 = new System.Windows.Forms.DataGridTextBoxColumn(); this._retrievingData = new Terrarium.Glass.GlassLabel(); this._refreshTime = new Terrarium.Glass.GlassLabel(); this._okButton = new Terrarium.Glass.GlassButton(); this._cancelButton = new Terrarium.Glass.GlassButton(); this._serverListButton = new Terrarium.Glass.GlassButton(); this._browseButton = new Terrarium.Glass.GlassButton(); this._bottomPanel.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this._speciesDataGrid)).BeginInit(); this.SuspendLayout(); // // titleBar // this._titleBar.Size = new System.Drawing.Size(456, 32); this._titleBar.Title = "Introduce Creature"; this._titleBar.CloseClicked += new System.EventHandler(this.Cancel_Click); // // bottomPanel // this._bottomPanel.Controls.Add(this._browseButton); this._bottomPanel.Controls.Add(this._serverListButton); this._bottomPanel.Controls.Add(this._cancelButton); this._bottomPanel.Controls.Add(this._okButton); this._bottomPanel.Gradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this._bottomPanel.Gradient.Top = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(96)))), ((int)(((byte)(96))))); this._bottomPanel.Location = new System.Drawing.Point(0, 352); this._bottomPanel.Size = new System.Drawing.Size(456, 40); // // dataGrid1 // this._speciesDataGrid.AlternatingBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this._speciesDataGrid.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this._speciesDataGrid.BackgroundColor = System.Drawing.Color.Gray; this._speciesDataGrid.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this._speciesDataGrid.CaptionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this._speciesDataGrid.CaptionForeColor = System.Drawing.Color.White; this._speciesDataGrid.CaptionVisible = false; this._speciesDataGrid.DataMember = ""; this._speciesDataGrid.FlatMode = true; this._speciesDataGrid.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this._speciesDataGrid.ForeColor = System.Drawing.Color.Black; this._speciesDataGrid.GridLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this._speciesDataGrid.HeaderBackColor = System.Drawing.Color.Gray; this._speciesDataGrid.HeaderForeColor = System.Drawing.Color.White; this._speciesDataGrid.Location = new System.Drawing.Point(8, 71); this._speciesDataGrid.Name = "dataGrid1"; this._speciesDataGrid.ReadOnly = true; this._speciesDataGrid.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this._speciesDataGrid.Size = new System.Drawing.Size(440, 272); this._speciesDataGrid.TabIndex = 8; this._speciesDataGrid.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] { this._dataGridTableStyle1 }); // // dataGridTableStyle1 // this._dataGridTableStyle1.AlternatingBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(216)))), ((int)(((byte)(216))))); this._dataGridTableStyle1.BackColor = System.Drawing.Color.White; this._dataGridTableStyle1.DataGrid = this._speciesDataGrid; this._dataGridTableStyle1.ForeColor = System.Drawing.Color.Black; this._dataGridTableStyle1.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] { this._dataGridTextBoxColumn1, this._dataGridTextBoxColumn2, this._dataGridTextBoxColumn3, this._dataGridTextBoxColumn4, this._dataGridTextBoxColumn5 }); this._dataGridTableStyle1.HeaderBackColor = System.Drawing.Color.Gray; this._dataGridTableStyle1.HeaderForeColor = System.Drawing.Color.White; this._dataGridTableStyle1.MappingName = "Table"; // // dataGridTextBoxColumn1 // this._dataGridTextBoxColumn1.Format = ""; this._dataGridTextBoxColumn1.FormatInfo = null; this._dataGridTextBoxColumn1.HeaderText = "Species Name"; this._dataGridTextBoxColumn1.MappingName = "Name"; this._dataGridTextBoxColumn1.ReadOnly = true; this._dataGridTextBoxColumn1.Width = 150; // // dataGridTextBoxColumn2 // this._dataGridTextBoxColumn2.Format = ""; this._dataGridTextBoxColumn2.FormatInfo = null; this._dataGridTextBoxColumn2.HeaderText = "Type"; this._dataGridTextBoxColumn2.MappingName = "Type"; this._dataGridTextBoxColumn2.ReadOnly = true; this._dataGridTextBoxColumn2.Width = 75; // // dataGridTextBoxColumn3 // this._dataGridTextBoxColumn3.Format = ""; this._dataGridTextBoxColumn3.FormatInfo = null; this._dataGridTextBoxColumn3.HeaderText = "Author"; this._dataGridTextBoxColumn3.MappingName = "Author"; this._dataGridTextBoxColumn3.ReadOnly = true; this._dataGridTextBoxColumn3.Width = 75; // // dataGridTextBoxColumn4 // this._dataGridTextBoxColumn4.Format = "d"; this._dataGridTextBoxColumn4.FormatInfo = null; this._dataGridTextBoxColumn4.HeaderText = "Date Introduced"; this._dataGridTextBoxColumn4.MappingName = "DateAdded"; this._dataGridTextBoxColumn4.ReadOnly = true; this._dataGridTextBoxColumn4.Width = 90; // // dataGridTextBoxColumn5 // this._dataGridTextBoxColumn5.Format = "d"; this._dataGridTextBoxColumn5.FormatInfo = null; this._dataGridTextBoxColumn5.HeaderText = "Last Reintroduction"; this._dataGridTextBoxColumn5.MappingName = "LastReintroduction"; this._dataGridTextBoxColumn5.ReadOnly = true; this._dataGridTextBoxColumn5.Width = 125; // // retrievingData // this._retrievingData.BackColor = System.Drawing.Color.Transparent; this._retrievingData.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this._retrievingData.ForeColor = System.Drawing.Color.White; this._retrievingData.Location = new System.Drawing.Point(72, 195); this._retrievingData.Name = "retrievingData"; this._retrievingData.NoWrap = false; this._retrievingData.Size = new System.Drawing.Size(321, 19); this._retrievingData.TabIndex = 5; this._retrievingData.Text = "retrieving Species List From Server..."; this._retrievingData.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this._retrievingData.Visible = false; // // RefreshTime // this._refreshTime.BackColor = System.Drawing.Color.Transparent; this._refreshTime.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this._refreshTime.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this._refreshTime.Location = new System.Drawing.Point(456, 152); this._refreshTime.Name = "RefreshTime"; this._refreshTime.NoWrap = false; this._refreshTime.Size = new System.Drawing.Size(88, 32); this._refreshTime.TabIndex = 10; this._refreshTime.Text = "label1"; this._refreshTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // okButton // this._okButton.BackColor = System.Drawing.Color.Transparent; this._okButton.BorderColor = System.Drawing.Color.Black; this._okButton.Depth = 3; this._okButton.DisabledGradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this._okButton.DisabledGradient.Top = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this._okButton.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this._okButton.ForeColor = System.Drawing.Color.White; this._okButton.Highlight = false; this._okButton.HighlightGradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(96)))), ((int)(((byte)(96))))); this._okButton.HighlightGradient.Top = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this._okButton.HoverGradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this._okButton.HoverGradient.Top = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(216)))), ((int)(((byte)(0))))); this._okButton.IsGlass = true; this._okButton.Location = new System.Drawing.Point(288, 2); this._okButton.Name = "okButton"; this._okButton.NormalGradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this._okButton.NormalGradient.Top = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(96)))), ((int)(((byte)(96))))); this._okButton.PressedGradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(216)))), ((int)(((byte)(0))))); this._okButton.PressedGradient.Top = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this._okButton.Size = new System.Drawing.Size(75, 36); this._okButton.TabIndex = 16; this._okButton.TabStop = false; this._okButton.Text = "OK"; this._okButton.UseStyles = true; this._okButton.UseVisualStyleBackColor = false; this._okButton.Click += new System.EventHandler(this.OK_Click); // // cancelButton // this._cancelButton.BackColor = System.Drawing.Color.Transparent; this._cancelButton.BorderColor = System.Drawing.Color.Black; this._cancelButton.Depth = 3; this._cancelButton.DisabledGradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this._cancelButton.DisabledGradient.Top = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this._cancelButton.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this._cancelButton.ForeColor = System.Drawing.Color.White; this._cancelButton.Highlight = false; this._cancelButton.HighlightGradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(96)))), ((int)(((byte)(96))))); this._cancelButton.HighlightGradient.Top = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this._cancelButton.HoverGradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this._cancelButton.HoverGradient.Top = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(216)))), ((int)(((byte)(0))))); this._cancelButton.IsGlass = true; this._cancelButton.Location = new System.Drawing.Point(369, 2); this._cancelButton.Name = "cancelButton"; this._cancelButton.NormalGradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this._cancelButton.NormalGradient.Top = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(96)))), ((int)(((byte)(96))))); this._cancelButton.PressedGradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(216)))), ((int)(((byte)(0))))); this._cancelButton.PressedGradient.Top = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this._cancelButton.Size = new System.Drawing.Size(75, 36); this._cancelButton.TabIndex = 17; this._cancelButton.TabStop = false; this._cancelButton.Text = "Cancel"; this._cancelButton.UseStyles = true; this._cancelButton.UseVisualStyleBackColor = false; this._cancelButton.Click += new System.EventHandler(this.Cancel_Click); // // serverListButton // this._serverListButton.BackColor = System.Drawing.Color.Transparent; this._serverListButton.BorderColor = System.Drawing.Color.Black; this._serverListButton.Depth = 3; this._serverListButton.DisabledGradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this._serverListButton.DisabledGradient.Top = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this._serverListButton.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this._serverListButton.ForeColor = System.Drawing.Color.White; this._serverListButton.Highlight = false; this._serverListButton.HighlightGradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(96)))), ((int)(((byte)(96))))); this._serverListButton.HighlightGradient.Top = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this._serverListButton.HoverGradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this._serverListButton.HoverGradient.Top = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(216)))), ((int)(((byte)(0))))); this._serverListButton.IsGlass = true; this._serverListButton.Location = new System.Drawing.Point(12, 2); this._serverListButton.Name = "serverListButton"; this._serverListButton.NormalGradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this._serverListButton.NormalGradient.Top = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(96)))), ((int)(((byte)(96))))); this._serverListButton.PressedGradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(216)))), ((int)(((byte)(0))))); this._serverListButton.PressedGradient.Top = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this._serverListButton.Size = new System.Drawing.Size(100, 36); this._serverListButton.TabIndex = 18; this._serverListButton.TabStop = false; this._serverListButton.Text = "Server List"; this._serverListButton.UseStyles = true; this._serverListButton.UseVisualStyleBackColor = false; this._serverListButton.Click += new System.EventHandler(this.ServerList_Click); // // browseButton // this._browseButton.BackColor = System.Drawing.Color.Transparent; this._browseButton.BorderColor = System.Drawing.Color.Black; this._browseButton.Depth = 3; this._browseButton.DisabledGradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this._browseButton.DisabledGradient.Top = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this._browseButton.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this._browseButton.ForeColor = System.Drawing.Color.White; this._browseButton.Highlight = false; this._browseButton.HighlightGradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(96)))), ((int)(((byte)(96))))); this._browseButton.HighlightGradient.Top = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this._browseButton.HoverGradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this._browseButton.HoverGradient.Top = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(216)))), ((int)(((byte)(0))))); this._browseButton.IsGlass = true; this._browseButton.Location = new System.Drawing.Point(118, 2); this._browseButton.Name = "browseButton"; this._browseButton.NormalGradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this._browseButton.NormalGradient.Top = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(96)))), ((int)(((byte)(96))))); this._browseButton.PressedGradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(216)))), ((int)(((byte)(0))))); this._browseButton.PressedGradient.Top = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this._browseButton.Size = new System.Drawing.Size(80, 36); this._browseButton.TabIndex = 0; this._browseButton.TabStop = false; this._browseButton.Text = "Browse..."; this._browseButton.UseStyles = true; this._browseButton.UseVisualStyleBackColor = false; this._browseButton.Click += new System.EventHandler(this.Browse_Click); // // ReintroduceSpecies // this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.ClientSize = new System.Drawing.Size(456, 392); this.Controls.Add(this._refreshTime); this.Controls.Add(this._retrievingData); this.Controls.Add(this._speciesDataGrid); this.Name = "ReintroduceSpecies"; this.Title = "Reintroduce Species"; this.Paint += new System.Windows.Forms.PaintEventHandler(this.ReintroduceSpecies_Paint); this.Controls.SetChildIndex(this._bottomPanel, 0); this.Controls.SetChildIndex(this._titleBar, 0); this.Controls.SetChildIndex(this._speciesDataGrid, 0); this.Controls.SetChildIndex(this._retrievingData, 0); this.Controls.SetChildIndex(this._refreshTime, 0); this._bottomPanel.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this._speciesDataGrid)).EndInit(); this.ResumeLayout(false); }
UIView CreateHeaderView(Dictionary <string, RectangleF> dicRect, int iViewHeight) { UIView uiView = new UIView(new RectangleF(0, 0, this.View.Bounds.Width, iViewHeight)); uiView.MultipleTouchEnabled = true; //subscribe GlassButton gbSubs = new GlassButton(dicRect["subscribe"]); gbSubs.Font = font13; gbSubs.SetTitle("Subscribe", UIControlState.Normal); gbSubs.Enabled = true; gbSubs.Tapped += delegate { Subscribe(); }; uiView.AddSubview(gbSubs); //subscribe GlassButton gbSubsConnect = new GlassButton(dicRect["subscribeconncallback"]); gbSubsConnect.Font = font13; gbSubsConnect.SetTitle("Subscribe - Connect Callback", UIControlState.Normal); gbSubsConnect.Enabled = true; gbSubsConnect.Tapped += delegate { SubscribeConnectCallback(); }; uiView.AddSubview(gbSubsConnect); //publish GlassButton gbPublish = new GlassButton(dicRect["publish"]); gbPublish.Font = font13; gbPublish.SetTitle("Publish", UIControlState.Normal); gbPublish.Enabled = true; gbPublish.Tapped += delegate { Publish(); }; uiView.AddSubview(gbPublish); //presence GlassButton gbPresence = new GlassButton(dicRect["presence"]); gbPresence.Font = font13; gbPresence.SetTitle("Presence", UIControlState.Normal); gbPresence.Enabled = true; gbPresence.Tapped += delegate { Presence(); }; uiView.AddSubview(gbPresence); //Detailed History GlassButton gbDetailedHis = new GlassButton(dicRect["detailedhis"]); gbDetailedHis.Font = font13; gbDetailedHis.SetTitle("Detailed History", UIControlState.Normal); gbDetailedHis.Enabled = true; gbDetailedHis.Tapped += delegate { DetailedHistory(); }; uiView.AddSubview(gbDetailedHis); //Here Now GlassButton gbHereNow = new GlassButton(dicRect["herenow"]); gbHereNow.Font = font13; gbHereNow.SetTitle("Here Now", UIControlState.Normal); gbHereNow.Enabled = true; gbHereNow.Tapped += delegate { HereNow(); }; uiView.AddSubview(gbHereNow); //Time GlassButton gbTime = new GlassButton(dicRect["time"]); gbTime.Font = font13; gbTime.SetTitle("Time", UIControlState.Normal); gbTime.Enabled = true; gbTime.Tapped += delegate { GetTime(); }; uiView.AddSubview(gbTime); //Unsubscribe GlassButton gbUnsub = new GlassButton(dicRect["unsub"]); gbUnsub.Font = font13; gbUnsub.SetTitle("Unsubscribe", UIControlState.Normal); gbUnsub.Enabled = true; gbUnsub.Tapped += delegate { Unsub(); }; uiView.AddSubview(gbUnsub); //Unsubscribe-Presence GlassButton gbUnsubPres = new GlassButton(dicRect["unsubpres"]); gbUnsubPres.Font = font13; gbUnsubPres.SetTitle("Unsubscribe-Presence", UIControlState.Normal); gbUnsubPres.Enabled = true; gbUnsubPres.Tapped += delegate { UnsubPresence(); }; uiView.AddSubview(gbUnsubPres); return(uiView); }
public UIViewController GetFormService(RootElement rElement) { //if (DetailViewController.QuestionsView != null) //{ // DetailViewController.Title = ""; // DetailViewController.QuestionsView.Clear(); //} var bounds = UIScreen.MainScreen.Bounds; // show the loading overlay on the UI thread using the correct orientation sizing loadingOverlay = new LoadingOverlay(bounds); mvc = (DialogViewController)((UINavigationController)SplitViewController.ViewControllers[0]).TopViewController; mvc.Add(loadingOverlay); var dds = new DynaPadService.DynaPadService(); var dfElemet = (DynaFormRootElement)rElement; string origJson = dds.GetFormQuestions(dfElemet.FormID, dfElemet.PatientID, dfElemet.ApptID, dfElemet.IsDoctorForm); JsonHandler.OriginalFormJsonString = origJson; SelectedAppointment.SelectedQForm = JsonConvert.DeserializeObject <QForm>(origJson); var rootFormSections = new RootElement(SelectedAppointment.SelectedQForm.FormName); var sectionFormSections = new Section(); bool IsDoctorForm = dfElemet.IsDoctorForm; if (IsDoctorForm) { /* * TODO: make presets password protected (maybe not, since for doctors only?)! (maybe component: Passcode) */ var FormPresetNames = dds.GetAnswerPresets(SelectedAppointment.ApptFormId, null, SelectedAppointment.ApptPatientId, true, SelectedAppointment.ApptLocationId); var formPresetSection = new DynaSection("Form Preset Answers"); formPresetSection.Enabled = true; var formPresetGroup = new RadioGroup("FormPresetAnswers", SelectedAppointment.SelectedQForm.FormSelectedTemplateId); var formPresetsRoot = new DynaRootElement("Preset Answers", formPresetGroup); formPresetsRoot.IsPreset = true; foreach (string[] arrPreset in FormPresetNames) { var radioPreset = new MyRadioElement(arrPreset[1], "FormPresetAnswers"); radioPreset.OnSelected += delegate(object sender, EventArgs e) { string presetJson = arrPreset[2]; JsonHandler.OriginalFormJsonString = presetJson; SelectedAppointment.SelectedQForm = JsonConvert.DeserializeObject <QForm>(presetJson); LoadSectionView(SelectedAppointment.SelectedQForm.FormSections[0].SectionId, SelectedAppointment.SelectedQForm.FormSections[0].SectionName, SelectedAppointment.SelectedQForm.FormSections[0], IsDoctorForm); }; formPresetSection.Add(radioPreset); } var btnNewFormPreset = new GlassButton(new RectangleF(0, 0, (float)View.Frame.Width, 50)); btnNewFormPreset.Font = UIFont.BoldSystemFontOfSize(17); btnNewFormPreset.SetTitleColor(UIColor.Black, UIControlState.Normal); btnNewFormPreset.NormalColor = UIColor.FromRGB(224, 238, 240); btnNewFormPreset.SetTitle("Save New Form Preset", UIControlState.Normal); btnNewFormPreset.TouchUpInside += (sender, e) => { /* * TODO: popup to enter preset name (DONE?) */ //Create Alert var SavePresetPrompt = UIAlertController.Create("New Form Preset", "Necesito name", UIAlertControllerStyle.Alert); SavePresetPrompt.AddTextField((field) => { field.Placeholder = "Preset Name"; }); //Add Actions SavePresetPrompt.AddAction(UIAlertAction.Create("OK", UIAlertActionStyle.Default, action => SavePreset(SavePresetPrompt.TextFields[0].Text))); SavePresetPrompt.AddAction(UIAlertAction.Create("Cancel", UIAlertActionStyle.Cancel, null)); //Present Alert PresentViewController(SavePresetPrompt, true, null); }; formPresetSection.Add(btnNewFormPreset); formPresetsRoot.Add(formPresetSection); formPresetsRoot.Enabled = true; sectionFormSections.Add(formPresetsRoot); } foreach (FormSection fSection in SelectedAppointment.SelectedQForm.FormSections) { sectionFormSections.Add(new StringElement(fSection.SectionName, delegate { LoadSectionView(fSection.SectionId, fSection.SectionName, fSection, IsDoctorForm); })); } sectionFormSections.Add(new StringElement("Finalize", delegate { LoadSectionView("Finalize", "Finalize", null, IsDoctorForm); })); rootFormSections.Add(sectionFormSections); var formDVC = new DialogViewController(rootFormSections, true); // TODO pull to refresh: (problamatic scrolling with it) //formDVC.RefreshRequested += delegate //{ // formDVC.ReloadComplete(); //}; if (!IsDoctorForm) { messageLabel = new UILabel(); formDVC.NavigationItem.LeftBarButtonItem = new UIBarButtonItem(UIImage.FromBundle("Lock"), UIBarButtonItemStyle.Bordered, delegate(object sender, EventArgs e) { //Create Alert var BackPrompt = UIAlertController.Create("Exit Form", "Administrative use only. Please enter password to continue or tap Cancel", UIAlertControllerStyle.Alert); BackPrompt.AddTextField((field) => { field.SecureTextEntry = true; field.Placeholder = "Password"; }); BackPrompt.Add(messageLabel); BackPrompt.AddAction(UIAlertAction.Create("OK", UIAlertActionStyle.Default, action => PopBack(BackPrompt.TextFields[0].Text))); BackPrompt.AddAction(UIAlertAction.Create("Cancel", UIAlertActionStyle.Cancel, null)); //Present Alert PresentViewController(BackPrompt, true, null); }); //formDVC.NavigationItem.LeftBarButtonItem.Title = "Back"; } loadingOverlay.Hide(); return(formDVC); }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutForm)); this.lastUpdateLabel = new System.Windows.Forms.Label(); this.updatesEnabledLabel = new System.Windows.Forms.Label(); this.clientVersionLabel = new System.Windows.Forms.Label(); this.nextUpdateLabel = new System.Windows.Forms.Label(); this.glassLabel4 = new Terrarium.Glass.GlassLabel(); this.closeButton = new Terrarium.Glass.GlassButton(); this.GlassLabel3 = new Terrarium.Glass.GlassLabel(); this.GlassLabel2 = new Terrarium.Glass.GlassLabel(); this.GlassLabel1 = new Terrarium.Glass.GlassLabel(); this.SuspendLayout(); // // lastUpdateLabel // this.lastUpdateLabel.BackColor = System.Drawing.Color.Transparent; this.lastUpdateLabel.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lastUpdateLabel.ForeColor = System.Drawing.Color.White; this.lastUpdateLabel.Location = new System.Drawing.Point(137, 224); this.lastUpdateLabel.Name = "lastUpdateLabel"; this.lastUpdateLabel.Size = new System.Drawing.Size(233, 16); this.lastUpdateLabel.TabIndex = 13; this.lastUpdateLabel.Text = "label1"; this.lastUpdateLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // updatesEnabledLabel // this.updatesEnabledLabel.BackColor = System.Drawing.Color.Transparent; this.updatesEnabledLabel.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.updatesEnabledLabel.ForeColor = System.Drawing.Color.White; this.updatesEnabledLabel.Location = new System.Drawing.Point(137, 208); this.updatesEnabledLabel.Name = "updatesEnabledLabel"; this.updatesEnabledLabel.Size = new System.Drawing.Size(128, 16); this.updatesEnabledLabel.TabIndex = 12; this.updatesEnabledLabel.Text = "label1"; this.updatesEnabledLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // clientVersionLabel // this.clientVersionLabel.BackColor = System.Drawing.Color.Transparent; this.clientVersionLabel.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.clientVersionLabel.ForeColor = System.Drawing.Color.White; this.clientVersionLabel.Location = new System.Drawing.Point(137, 192); this.clientVersionLabel.Name = "clientVersionLabel"; this.clientVersionLabel.Size = new System.Drawing.Size(120, 16); this.clientVersionLabel.TabIndex = 11; this.clientVersionLabel.Text = "label1"; this.clientVersionLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // nextUpdateLabel // this.nextUpdateLabel.BackColor = System.Drawing.Color.Transparent; this.nextUpdateLabel.Font = new System.Drawing.Font("Verdana", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.nextUpdateLabel.ForeColor = System.Drawing.Color.White; this.nextUpdateLabel.Location = new System.Drawing.Point(137, 240); this.nextUpdateLabel.Name = "nextUpdateLabel"; this.nextUpdateLabel.Size = new System.Drawing.Size(233, 16); this.nextUpdateLabel.TabIndex = 16; this.nextUpdateLabel.Text = "label1"; this.nextUpdateLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // glassLabel4 // this.glassLabel4.BackColor = System.Drawing.Color.Transparent; this.glassLabel4.Font = new System.Drawing.Font("Verdana", 6.75F); this.glassLabel4.ForeColor = System.Drawing.Color.White; this.glassLabel4.Location = new System.Drawing.Point(12, 240); this.glassLabel4.Name = "glassLabel4"; this.glassLabel4.NoWrap = false; this.glassLabel4.Size = new System.Drawing.Size(121, 16); this.glassLabel4.TabIndex = 15; this.glassLabel4.Text = "Next Update Check:"; this.glassLabel4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // closeButton // this.closeButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.closeButton.BackColor = System.Drawing.Color.Transparent; this.closeButton.BorderColor = System.Drawing.Color.Black; this.closeButton.Depth = 4; this.closeButton.DisabledGradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.closeButton.DisabledGradient.Top = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.closeButton.Highlight = false; this.closeButton.HighlightGradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(96)))), ((int)(((byte)(96))))); this.closeButton.HighlightGradient.Top = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.closeButton.HoverGradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(96)))), ((int)(((byte)(0))))); this.closeButton.HoverGradient.Top = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); this.closeButton.IsGlass = true; this.closeButton.Location = new System.Drawing.Point(393, 224); this.closeButton.Name = "closeButton"; this.closeButton.NormalGradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.closeButton.NormalGradient.Top = System.Drawing.Color.Silver; this.closeButton.PressedGradient.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(216)))), ((int)(((byte)(0))))); this.closeButton.PressedGradient.Top = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this.closeButton.Size = new System.Drawing.Size(75, 36); this.closeButton.TabIndex = 14; this.closeButton.TabStop = false; this.closeButton.Text = "Close"; this.closeButton.UseStyles = false; this.closeButton.UseVisualStyleBackColor = false; this.closeButton.Click += new System.EventHandler(this.closeButton_Click); // // GlassLabel3 // this.GlassLabel3.BackColor = System.Drawing.Color.Transparent; this.GlassLabel3.Font = new System.Drawing.Font("Verdana", 6.75F); this.GlassLabel3.ForeColor = System.Drawing.Color.White; this.GlassLabel3.Location = new System.Drawing.Point(12, 224); this.GlassLabel3.Name = "GlassLabel3"; this.GlassLabel3.NoWrap = false; this.GlassLabel3.Size = new System.Drawing.Size(121, 16); this.GlassLabel3.TabIndex = 10; this.GlassLabel3.Text = "Last Update Check:"; this.GlassLabel3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // GlassLabel2 // this.GlassLabel2.BackColor = System.Drawing.Color.Transparent; this.GlassLabel2.Font = new System.Drawing.Font("Verdana", 6.75F); this.GlassLabel2.ForeColor = System.Drawing.Color.White; this.GlassLabel2.Location = new System.Drawing.Point(12, 208); this.GlassLabel2.Name = "GlassLabel2"; this.GlassLabel2.NoWrap = false; this.GlassLabel2.Size = new System.Drawing.Size(121, 16); this.GlassLabel2.TabIndex = 9; this.GlassLabel2.Text = "Auto Update:"; this.GlassLabel2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // GlassLabel1 // this.GlassLabel1.BackColor = System.Drawing.Color.Transparent; this.GlassLabel1.Font = new System.Drawing.Font("Verdana", 6.75F); this.GlassLabel1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.GlassLabel1.Location = new System.Drawing.Point(12, 192); this.GlassLabel1.Name = "GlassLabel1"; this.GlassLabel1.NoWrap = false; this.GlassLabel1.Size = new System.Drawing.Size(121, 16); this.GlassLabel1.TabIndex = 8; this.GlassLabel1.Text = "Client Version:"; this.GlassLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // AboutForm // this.BackColor = System.Drawing.Color.Black; this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage"))); this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.ClientSize = new System.Drawing.Size(480, 272); this.Controls.Add(this.nextUpdateLabel); this.Controls.Add(this.glassLabel4); this.Controls.Add(this.closeButton); this.Controls.Add(this.lastUpdateLabel); this.Controls.Add(this.updatesEnabledLabel); this.Controls.Add(this.clientVersionLabel); this.Controls.Add(this.GlassLabel3); this.Controls.Add(this.GlassLabel2); this.Controls.Add(this.GlassLabel1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Name = "AboutForm"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "~"; this.ResumeLayout(false); }
/// <summary> /// Handles the Leave event of the glassButtonNextCard control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> /// <remarks>Documented by Dev05, 2009-05-18</remarks> private void glassButtonNextCard_Leave(object sender, EventArgs e) { lastButton = glassButtonNextCard; }