public LevelUp() { InitializeComponent(); //-----( Initialise Variables )-----// skillNames = new Label[8] {label1,label2,label3,label4,label5,label6,label7,label8}; skillRanks = new NumericUpDown[8] { numericUpDown1, numericUpDown2, numericUpDown3, numericUpDown4, numericUpDown5, numericUpDown6, numericUpDown7, numericUpDown8 }; bDataLoaded = false; bLoadOK = true; numberFeatSlots = 12; numberClassFeatureSlots = 23; //-----( Custom Components )-----// newHP = new NumericTextBox(); newHP.Parent = hitPointsPanel; newHP.DecimalValue = 0; newHP.TextAlign = HorizontalAlignment.Center; newHP.Dock = DockStyle.Fill; newHP.TabIndex = 5; newHP.Enabled = false; //-----( Event Handlers )-----// classFeatureEntry.KeyPress += new KeyPressEventHandler(classFeatureEntry_KeyPress); classFeaturesBox.SelectedValueChanged += new EventHandler(classFeaturesBox_SelectedValueChanged); featEntry.KeyPress +=new KeyPressEventHandler(featEntry_KeyPress); featBox.SelectedIndexChanged += new EventHandler(featBox_SelectedIndexChanged); newHP.KeyPress += new KeyPressEventHandler(newHP_KeyPress); createCharacterXML.FileOk += new CancelEventHandler(createCharacterXML_FileOk); }
/// <summary> /// Gets a control to edit the given property</summary> /// <param name="context">Context for property editing control</param> /// <returns>Control to edit the given context</returns> public virtual Control GetEditingControl(PropertyEditorControlContext context) { NumericTextBox editingControl = new NumericTextBox(m_numericType, context); editingControl.ScaleFactor = m_scaleFactor; SkinService.ApplyActiveSkin(editingControl); return(editingControl); }
protected override TextBox CreateTextBox() { NumericTextBox textBox = new NumericTextBox(); textBox.AllowDecimalSeparator = AllowDecimalSeparator; textBox.AllowNegativeSign = AllowNegativeSign; return(textBox); }
public void Delimiter_DefaultValue() { // Arrange using (var testObject = new NumericTextBox()) { // Act, Assert testObject.Delimiter.ShouldBe(DelimiterSymbolDefault); } }
public void CurrencySymbol_DefaultValue() { // Arrange using (var testObject = new NumericTextBox()) { // Act, Assert testObject.CurrencySymbol.ShouldBeEmpty(); } }
protected virtual MvcDynamicForms.Fields.Field GetNumericTextBox(FieldAttributes fieldAttributes, double formWidth, double formHeight, string controlValue) { var numericTextBox = new NumericTextBox(fieldAttributes, formWidth, formHeight) { Value = controlValue }; return(numericTextBox); }
/// <summary> /// Generate panel with textboxes for user input /// </summary> void GenerateTestPanel() { int S = 0; Font F = new Font(label1.Font.Name, label1.Font.Size + 3); for (int i = 0; i < Database.G.N; i++) { for (int j = 0; j < Database.G.N; j++) { if (i != j) { S = Math.Max(S, TextRenderer.MeasureText(D[j, i].Value.ToString(), D.Font).Width); } } } blocks.Add(new UI.ControlsAligner(testPanel)); for (int i = 0; i < Database.G.N + 1; i++) { Label l = new Label(); if (i == Database.G.N) { l.Text = "v(N) = "; } else { l.Text = "v(" + (i + 1) + ") = "; } l.Font = F; l.ForeColor = this.ForeColor; l.Size = TextRenderer.MeasureText(l.Text, l.Font); NumericTextBox t = new NumericTextBox(); t.Font = new System.Drawing.Font(F.Name, F.Size + 2); t.Width = S + 40; t.NumericTB.TextAlign = HorizontalAlignment.Center; if ((i == 0) || (i == Database.G.N)) { blocks.Last().AddElement(l); } else { blocks.Last().AddElement(l, false); } blocks.Last().AddElement(t, false, "HorBind"); testPanel.Controls.Add(l); TB.Add(t); testPanel.Controls.Add(t); } blocks.Last().VerticalInterval *= 2; testPanel.Show(); outerblocks.Add(blocks.Last(), navigationPanel.Name); }
public SharedPropertiesController(IWin32Window parentFrame, Label labelCategory, CategoryDropDownControlM1 categoryDropDown, Label labelTags, AutoCompleteTextbox textTags, Label labelPageOrder, NumericTextBox textPageOrder, Label labelPageParent, PageParentComboBox comboPageParent, Label labelPublishDate, PublishDateTimePicker datePublishDate, List <PropertyField> fields, CategoryContext categoryContext) { this.parentFrame = parentFrame; this.labelCategory = labelCategory; this.categoryDropDown = categoryDropDown; this.labelPublishDate = labelPublishDate; this.datePublishDate = datePublishDate; this.fields = fields; this.labelTags = labelTags; this.textTags = textTags; this.labelPageOrder = labelPageOrder; this.textPageOrder = textPageOrder; this.labelPageParent = labelPageParent; this.comboPageParent = comboPageParent; this.categoryDropDown.AccessibleName = Res.Get(StringId.CategoryControlCategories).Replace("{0}", " ").Trim(); this.datePublishDate.AccessibleName = Res.Get(StringId.PropertiesPublishDate); textTags.TextChanged += MakeDirty; textTags.ButtonClicked += (sender, args) => { _targetBlog.RefreshKeywords(); LoadTagValues(); }; comboPageParent.SelectedIndexChanged += MakeDirty; textPageOrder.TextChanged += MakeDirty; datePublishDate.ValueChanged += MakeDirty; DATETIME_PICKER_PROMPT = "'" + Res.Get(StringId.PublishDatePrompt).Replace("'", "''") + "'"; // HACK ALERT - WinLive 209226: For RTL languages, we need to reverse the string, so it displays in the right direction // when right aligned. We need this hack because we are essentially using the CustomFormat string to display // the cue text. The control assumes this to be a valid format string and does a blind reverse on RTL languages // to mirror the date formatting. Unfortunately we don't need that mirroring for the cue text. // We reverse only if either the system (control panel setting) or UI is RTL, not if both are RTL. bool isUIRightToLeft = BidiHelper.IsRightToLeft; bool isSystemRightToLeft = System.Threading.Thread.CurrentThread.CurrentCulture.TextInfo.IsRightToLeft; if ((isUIRightToLeft && !isSystemRightToLeft) || (!isUIRightToLeft && isSystemRightToLeft)) { // Reverse the string char[] charArray = DATETIME_PICKER_PROMPT.ToCharArray(); Array.Reverse(charArray); DATETIME_PICKER_PROMPT = new string(charArray); } datePublishDate.CustomFormat = DATETIME_PICKER_PROMPT; categoryDropDown.Initialize(parentFrame, categoryContext); InitializeFields(); InitializeSync(); }
public SharedPropertiesController(IWin32Window parentFrame, Label labelCategory, CategoryDropDownControlM1 categoryDropDown, Label labelTags, AutoCompleteTextbox textTags, Label labelPageOrder, NumericTextBox textPageOrder, Label labelPageParent, PageParentComboBox comboPageParent, Label labelPublishDate, PublishDateTimePicker datePublishDate, List<PropertyField> fields, CategoryContext categoryContext) { this.parentFrame = parentFrame; this.labelCategory = labelCategory; this.categoryDropDown = categoryDropDown; this.labelPublishDate = labelPublishDate; this.datePublishDate = datePublishDate; this.fields = fields; this.labelTags = labelTags; this.textTags = textTags; this.labelPageOrder = labelPageOrder; this.textPageOrder = textPageOrder; this.labelPageParent = labelPageParent; this.comboPageParent = comboPageParent; this.categoryDropDown.AccessibleName = Res.Get(StringId.CategoryControlCategories).Replace("{0}", " ").Trim(); this.datePublishDate.AccessibleName = Res.Get(StringId.PropertiesPublishDate); textTags.TextChanged += MakeDirty; textTags.ButtonClicked += (sender, args) => { _targetBlog.RefreshKeywords(); LoadTagValues(); }; comboPageParent.SelectedIndexChanged += MakeDirty; textPageOrder.TextChanged += MakeDirty; datePublishDate.ValueChanged += MakeDirty; DATETIME_PICKER_PROMPT = "'" + Res.Get(StringId.PublishDatePrompt).Replace("'", "''") + "'"; // HACK ALERT - WinLive 209226: For RTL languages, we need to reverse the string, so it displays in the right direction // when right aligned. We need this hack because we are essentially using the CustomFormat string to display // the cue text. The control assumes this to be a valid format string and does a blind reverse on RTL languages // to mirror the date formatting. Unfortunately we don't need that mirroring for the cue text. // We reverse only if either the system (control panel setting) or UI is RTL, not if both are RTL. bool isUIRightToLeft = BidiHelper.IsRightToLeft; bool isSystemRightToLeft = System.Threading.Thread.CurrentThread.CurrentCulture.TextInfo.IsRightToLeft; if ((isUIRightToLeft && !isSystemRightToLeft) || (!isUIRightToLeft && isSystemRightToLeft)) { // Reverse the string char[] charArray = DATETIME_PICKER_PROMPT.ToCharArray(); Array.Reverse(charArray); DATETIME_PICKER_PROMPT = new string(charArray); } datePublishDate.CustomFormat = DATETIME_PICKER_PROMPT; categoryDropDown.Initialize(parentFrame, categoryContext); InitializeFields(); InitializeSync(); }
public FrameworkElement CreateDoubleEditor() { NodePropertyPort port = ViewModel.Model as NodePropertyPort; NumericTextBox textBox = new NumericTextBox(); textBox.IsInteger = false; textBox.Text = port.Value.ToString(); textBox.SetBinding(TextBox.TextProperty, CreateBinding(port, "Value", new DoubleToStringConverter())); return(textBox); }
void numText_Validating(object sender, CancelEventArgs e) { NumericTextBox miTxt = (NumericTextBox)sender; string msjError = dicMsjError.First(item => item.Key == miTxt.Name).Value; if (string.IsNullOrEmpty(miTxt.Text)) { e.Cancel = true; miTxt.Select(0, miTxt.Text.Length); this.errProvider.SetError(miTxt, msjError); } }
private Control CreateSettingControl(Object settingsObject, String labelText, out Panel panel, int minValue, int maxValue) { // create the label Label label = new Label(); label.Text = labelText + ":"; label.Anchor = System.Windows.Forms.AnchorStyles.Left; label.Size = new System.Drawing.Size( TextRenderer.MeasureText(label.Text, label.Font).Width, TextRenderer.MeasureText(label.Text, label.Font).Height); // create the settings control Control control; if ((settingsObject.GetType() == typeof(int)) || (settingsObject.GetType() == typeof(byte))) { control = new NumericTextBox(minValue, maxValue, labelText); control.Width = TextRenderer.MeasureText(maxValue.ToString(), control.Font).Width; control.Text = "" + settingsObject; } else if (settingsObject.GetType() == typeof(String)) { control = new TextBox(); control.Text = "" + settingsObject; control.Width = Math.Max( TextRenderer.MeasureText(control.Text, control.Font).Width, TextRenderer.MeasureText(Settings.Default.channelSettingsLinkTextfieldSize, control.Font).Width); (control as TextBox).TextAlign = HorizontalAlignment.Left; } else if (settingsObject.GetType() == typeof(bool)) { control = new CheckBox(); ((CheckBox)control).Checked = (bool)settingsObject; } else { throw new Exception("Internal error: Illegal settings data type"); } //control.Anchor = AnchorStyles.Right; control.Dock = DockStyle.Right; control.AutoSize = true; // create the panel panel = new Panel(); label.Location = new System.Drawing.Point(0, Math.Max((control.Height - label.Height) / 2, 0)); panel.Size = new System.Drawing.Size(label.Width + control.Width + 5, Math.Max(label.Height, control.Height)); panel.Anchor = AnchorStyles.Left | AnchorStyles.Right; panel.Controls.Add(label); panel.Controls.Add(control); return(control); }
public BackupTask(Collection <RegionEntry> regions, FolderPicker targetPath, NumericTextBox hours, NumericTextBox minutes, NumericTextBox changes, Label nextBackup) { this.regions = regions; this.targetPath = targetPath; this.hours = hours; this.minutes = minutes; this.changes = changes; this.nextBackup = nextBackup; runner = new Task(Run); runner.Start(); }
/// <summary> /// Incrementes numeric TextBox value. /// </summary> /// <param name="textBox">Numeric TextBox to update.</param> private void _IncrementDelay(NumericTextBox textBox) { Debug.Assert(null != textBox); var value = (UInt32)textBox.Value; var maxValue = (UInt32)textBox.MaxValue; if (value < maxValue) { textBox.Value = value + 1; } }
void AddIntBox(string value) { var textBox = new NumericTextBox(); textBox.Text = value; textBox.TextChanged += (s, e) => { Property.Value = textBox.Text; onPropertyChanged(); }; mainGrid.Children.Add(textBox); }
public void Delimiter_SetAndGetValue() { // Arrange using (var testObject = new NumericTextBox()) { // Act testObject.Delimiter = TestSymbol; // Assert testObject.Delimiter.ShouldBe(TestSymbol); } }
public void CurrencySymbol_SetAndGetValue() { // Arrange using (var testObject = new NumericTextBox()) { // Act testObject.CurrencySymbol = TestSymbol; // Assert testObject.CurrencySymbol.ShouldBe(TestSymbol); } }
public NumericTextBoxRenderingTests() { textWriter = new Mock<TextWriter>(); tagBuilder = new Mock<ITextBoxBaseHtmlBuilder>(); rootTag = new Mock<IHtmlNode>(); rootTag.SetupGet(t => t.Children).Returns(() => new List<IHtmlNode>()); tagBuilder.Setup(t => t.Build("t-numerictextbox")).Returns(rootTag.Object); input = TextBoxBaseTestHelper.CreateNumericTextBox<double>(tagBuilder.Object); input.Name = "NumericTextBox"; }
public NumericTextBoxRenderingTests() { textWriter = new Mock <TextWriter>(); tagBuilder = new Mock <ITextBoxBaseHtmlBuilder>(); rootTag = new Mock <IHtmlNode>(); rootTag.SetupGet(t => t.Children).Returns(() => new List <IHtmlNode>()); tagBuilder.Setup(t => t.Build("t-numerictextbox")).Returns(rootTag.Object); input = TextBoxBaseTestHelper.CreateNumericTextBox <double>(tagBuilder.Object); input.Name = "NumericTextBox"; }
/// <summary> /// Generates code /// </summary> /// <param name="source">The dependence object</param> /// <param name="classType">Type of the class.</param> /// <param name="initMethod">The initialize method.</param> /// <param name="generateField">if set to <c>true</c> [generate field].</param> /// <returns></returns> public override CodeExpression Generate(DependencyObject source, CodeTypeDeclaration classType, CodeMemberMethod initMethod, bool generateField) { CodeExpression fieldReference = base.Generate(source, classType, initMethod, generateField); NumericTextBox numeric = source as NumericTextBox; CodeComHelper.GenerateField <float>(initMethod, fieldReference, source, NumericTextBox.ValueProperty); CodeComHelper.GenerateField <float>(initMethod, fieldReference, source, NumericTextBox.MinimumProperty); CodeComHelper.GenerateField <float>(initMethod, fieldReference, source, NumericTextBox.MaximumProperty); CodeComHelper.GenerateField <float>(initMethod, fieldReference, source, NumericTextBox.IncrementProperty); return(fieldReference); }
public void SetUI() { this.DoubleBuffered = true; this.Size = new Size(562, 40); this.BackgroundImage = global::BackPropagationNetwork.Properties.Resources.scb; Label labFrom = new Label(); labFrom.BackColor = Color.Transparent; labFrom.AutoSize = true; labFrom.Text = Synapsis.From.Layer.Name + ": Neuron " + Synapsis.From.Index.ToString(); labFrom.ForeColor = Color.DarkCyan; this.Controls.Add(labFrom); labFrom.Location = new Point(22, 16); Label labTo = new Label(); labTo.BackColor = Color.Transparent; labTo.AutoSize = true; labTo.Text = Synapsis.To.Layer.Name + ": Neuron " + Synapsis.To.Index.ToString(); labTo.ForeColor = Color.DarkCyan; this.Controls.Add(labTo); labTo.Location = new Point(192, 16); numWeight = new NumericTextBox(); numWeight.BackColor = Color.WhiteSmoke; numWeight.BorderStyle = BorderStyle.None; numWeight.Size = new Size(95, 13); numWeight.ForeColor = Color.FromArgb(75, 75, 75); numWeight.TextChanged += new EventHandler(numWeight_TextChanged); numWeight.Text = Synapsis.Weight.ToString(); this.Controls.Add(numWeight); numWeight.Location = new Point(400, 15); PictureBox picRandomize = new PictureBox(); picRandomize.Image = global::BackPropagationNetwork.Properties.Resources.Randomize; picRandomize.Cursor = Cursors.Hand; picRandomize.Size = new Size(21, 21); this.Controls.Add(picRandomize); picRandomize.Location = new Point(504, 12); Tooltip.SetToolTip(picRandomize, "Randomize synapsis weight"); picRandomize.Click += new EventHandler(picRandomize_Click); PictureBox picRemove = new PictureBox(); picRemove.Image = global::BackPropagationNetwork.Properties.Resources.delete; picRemove.Cursor = Cursors.Hand; picRemove.Size = new Size(21, 21); this.Controls.Add(picRemove); picRemove.Location = new Point(525, 12); Tooltip.SetToolTip(picRemove, "Remove this synapsis"); picRemove.Click += new EventHandler(picRemove_Click); }
private void txtMargin_TextChanged(object sender, EventArgs e) { NumericTextBox txt = (NumericTextBox)sender; decimal d = txt.Value; if (radioInches.Checked) { txt.Tag = (int)(d * 100m); } else { txt.Tag = (int)(d * 100m / 2.54m); } }
private void ntbWorkGroupCode_TextChanged(object sender, EventArgs e) { NumericTextBox ntbNumericTextBox = sender as NumericTextBox; ComboBox cbComboBox = gbDetails.Controls["cb" + ntbNumericTextBox.Name.Substring(3).Trim()] as ComboBox; if (ntbNumericTextBox.Text.Trim() == string.Empty) { cbComboBox.SelectedIndex = -1; } else { cbComboBox.SelectedValue = ntbNumericTextBox.Text.Trim(); } }
public void SetUI() { this.DoubleBuffered = true; this.Size = new Size(562, 40); this.BackgroundImage = global::BackPropagationNetwork.Properties.Resources.scb; Label labFrom = new Label(); labFrom.BackColor = Color.Transparent; labFrom.AutoSize = true; labFrom.Text = Synapsis.From.Layer.Name + ": Neuron " + Synapsis.From.Index.ToString(); labFrom.ForeColor = Color.DarkCyan; this.Controls.Add(labFrom); labFrom.Location = new Point(22, 16); Label labTo = new Label(); labTo.BackColor = Color.Transparent; labTo.AutoSize = true; labTo.Text = Synapsis.To.Layer.Name + ": Neuron " + Synapsis.To.Index.ToString(); labTo.ForeColor = Color.DarkCyan; this.Controls.Add(labTo); labTo.Location = new Point(192, 16); numWeight = new NumericTextBox(); numWeight.BackColor = Color.WhiteSmoke; numWeight.BorderStyle = BorderStyle.None; numWeight.Size = new Size(95, 13); numWeight.ForeColor = Color.FromArgb(75, 75, 75); numWeight.TextChanged +=new EventHandler(numWeight_TextChanged); numWeight.Text = Synapsis.Weight.ToString(); this.Controls.Add(numWeight); numWeight.Location = new Point(400, 15); PictureBox picRandomize = new PictureBox(); picRandomize.Image = global::BackPropagationNetwork.Properties.Resources.Randomize; picRandomize.Cursor = Cursors.Hand; picRandomize.Size = new Size(21, 21); this.Controls.Add(picRandomize); picRandomize.Location = new Point(504, 12); Tooltip.SetToolTip(picRandomize, "Randomize synapsis weight"); picRandomize.Click += new EventHandler(picRandomize_Click); PictureBox picRemove = new PictureBox(); picRemove.Image = global::BackPropagationNetwork.Properties.Resources.delete; picRemove.Cursor = Cursors.Hand; picRemove.Size = new Size(21, 21); this.Controls.Add(picRemove); picRemove.Location = new Point(525, 12); Tooltip.SetToolTip(picRemove, "Remove this synapsis"); picRemove.Click += new EventHandler(picRemove_Click); }
/// <summary> /// Constructor with initial and bounding values</summary> /// <param name="value">Initial value</param> /// <param name="min">Minimum value</param> /// <param name="max">Maximum value</param> public FloatInputControl(float value, float min, float max) { if (min >= max) throw new ArgumentException("min must be less than max"); DoubleBuffered = true; m_min = min; m_max = max; m_value = MathUtil.Clamp(value, m_min, m_max); m_lastChange = m_value; m_lastEdit = m_value; m_textBox = new NumericTextBox(); m_textBox.BorderStyle = BorderStyle.None; m_textBox.Name = "m_textBox"; m_spinner = new CompactSpinner(); m_spinner.BackColor = m_textBox.BackColor; SuspendLayout(); UpdateTextBox(); Controls.Add(m_textBox); Controls.Add(m_spinner); ResumeLayout(false); PerformLayout(); m_textBox.ValueEdited += (sender, e) => { float val = (float)m_textBox.Value; SetValue(val, false); EndEdit(true); }; m_spinner.Changed += (sender, e) => { // might be better to expose delta as property float delta = (m_max - m_min) / 100.0f; float newValue = Value + (float)e.Value * delta; SetValue(newValue, false); }; m_textBox.SizeChanged += (sender, e) => Height = m_textBox.Height + 3; SizeChanged += (sender, e) => { m_spinner.Bounds = new Rectangle(0, 0, Height, Height); m_textBox.Bounds = new Rectangle(m_spinner.Width, 0, Width - m_spinner.Width, m_textBox.Height); }; }
/// <summary> /// Sets the tuple coordinate names and the dimension of the tuple</summary> /// <param name="numericType">Numeric type of tuple coordinates</param> /// <param name="names">Array of tuple coordinate names; vector length (dimension) is array length</param> /// <remarks>All numeric types, except Decimal, are supported</remarks> public void Define(Type numericType, string[] names) { if (!typeof(UrhoBackend.MathVector).IsAssignableFrom(numericType)) { throw new ArgumentException("Unsupported numeric type"); } if (names == null || names.Length == 0) { throw new ArgumentException("Must have at least 1 coordinate in the tuple"); } DoubleBuffered = true; m_numericType = numericType; while (Controls.Count > 0) { Controls[0].Dispose(); } if (s_lblFormat == null) { s_lblFormat = new StringFormat(); s_lblFormat.Alignment = StringAlignment.Center; s_lblFormat.LineAlignment = StringAlignment.Near; s_lblFormat.Trimming = StringTrimming.Character; } m_labelWidth = new int[names.Length]; m_labelWidth[0] = -1; // to indicate uninitialized state. SuspendLayout(); // custom tab handling. TabStop = false; for (int i = 0; i < names.Length; i++) { var textBox = new NumericTextBox(typeof(float)); textBox.BorderStyle = BorderStyle.None; textBox.TabStop = false; textBox.Name = names[i]; textBox.ScaleFactor = m_scaleFactor; textBox.ValueEdited += textBox_ValueEdited; Controls.Add(textBox); } ResumeLayout(); }
public override void DetachEditingControl() { System.Windows.Forms.DataGridView dataGridView = this.DataGridView; if (dataGridView == null || dataGridView.EditingControl == null) { throw new InvalidOperationException("Cell is detached or its grid has no editing control."); } NumericTextBox editBox = dataGridView.EditingControl as NumericTextBox; if (editBox != null) { editBox.ClearUndo(); // avoid interferences between the editing sessions } base.DetachEditingControl(); }
/// <summary> /// Decrementes numeric TextBox value. /// </summary> /// <param name="textBox">Numeric TextBox to update.</param> private void _DecrementDelay(NumericTextBox textBox) { Debug.Assert(null != textBox); if (textBox.HasValidationError) { return; } var value = (UInt32)textBox.Value; var minValue = (UInt32)textBox.MinValue; if (minValue < value) { textBox.Value = value - 1; } }
/// <summary> /// Constructor with initial and bounding values</summary> /// <param name="value">Initial value</param> /// <param name="min">Minimum value</param> /// <param name="max">Maximum value</param> public IntInputControl(int value, int min, int max) { if (min >= max) throw new ArgumentException("min must be less than max"); DoubleBuffered = true; m_min = min; m_max = max; m_value = MathUtil.Clamp(value, m_min, m_max); m_lastChange = m_value; m_lastEdit = m_value; m_textBox = new NumericTextBox(typeof(int)); m_textBox.BorderStyle = BorderStyle.None; m_textBox.Name = "m_textBox"; m_spinner = new CompactSpinner(); m_spinner.BackColor = m_textBox.BackColor; SuspendLayout(); UpdateTextBox(); Controls.Add(m_textBox); Controls.Add(m_spinner); ResumeLayout(false); PerformLayout(); m_textBox.ValueEdited += (sender, e) => { int val = (int)m_textBox.Value; SetValue(val, false); EndEdit(true); }; m_spinner.Changed += (sender, e) => { int newValue = Value + e.Value; SetValue(newValue, false); }; m_textBox.SizeChanged += (sender, e) => this.Height = m_textBox.Height + 3; SizeChanged += (sender, e) => { m_spinner.Bounds = new Rectangle(0, 0, Height, Height); m_textBox.Bounds = new Rectangle(m_spinner.Width, 0, Width - m_spinner.Width, m_textBox.Height); }; }
public BlockOctagon(string strOperator, SolidColorBrush color) : base() { // draw block shape path = new Path(); path.Name = "Path"; path.Data = StreamGeometry.Parse(GetOctagonPath()); path.Stroke = color; path.StrokeThickness = 1; path.Fill = color; myCanvas.Children.Add(path); m_tbLeft = new NumericTextBox(); Canvas.SetLeft(m_tbLeft, dGapOfLeft); Canvas.SetTop(m_tbLeft, dGapOfTop); Canvas.SetRight(m_tbLeft, dGapOfLeft + m_tbLeft.Width); Canvas.SetBottom(m_tbLeft, dGapOfTop + m_tbLeft.Height); myCanvas.Children.Add(m_tbLeft); m_textOper = new TextBlock(); m_textOper.Text = strOperator; m_textOper.FontWeight = FontWeights.Bold; m_textOper.FontSize = 15.0; m_textOper.Width = 15; m_textOper.Height = 20; Canvas.SetLeft(m_textOper, Canvas.GetRight(m_tbLeft)); Canvas.SetTop(m_textOper, 0); Canvas.SetRight(m_textOper, Canvas.GetLeft(m_textOper) + m_textOper.Width); Canvas.SetBottom(m_textOper, Canvas.GetTop(m_textOper) + m_textOper.Height); myCanvas.Children.Add(m_textOper); m_tbRight = new NumericTextBox(); Canvas.SetLeft(m_tbRight, Canvas.GetRight(m_textOper) + dGapOfLeft); Canvas.SetTop(m_tbRight, dGapOfTop); Canvas.SetRight(m_tbRight, Canvas.GetRight(m_tbRight) + m_tbRight.Width); Canvas.SetBottom(m_tbRight, Canvas.GetTop(m_tbRight) + m_tbRight.Height); myCanvas.Children.Add(m_tbRight); this.Width = 60; this.Height = 25; myCanvas.Width = this.Width; myCanvas.Height = this.Height; myCanvas.SizeChanged += new SizeChangedEventHandler(myCanvas_SizeChanged); }
private void textBox_ValueEdited(object sender, EventArgs e) { NumericTextBox textbox = (NumericTextBox)sender; m_component = Controls.IndexOf(textbox); UrhoBackend.MathVector value = Value as UrhoBackend.MathVector; m_editing = true; OnValueChanged(EventArgs.Empty); m_lastChange = value; if (!ContainsFocus && m_editing) { OnValueEdited(EventArgs.Empty); m_lastEdit = value; m_editing = false; } }
//method to read the contents of a textbox, based on its location within the block public static String textReader(Block source, int location) { String text = ""; List <System.Windows.UIElement> components = source.innerPane.Children.ToList(); //handling the differences between a numeric box and standard text if (components.ElementAt(location) is NumericTextBox) { NumericTextBox box = (NumericTextBox)components.ElementAt(location); text = box.Text; } else if (components.ElementAt(location) is TextBox) { TextBox box = (TextBox)components.ElementAt(location); text = box.Text; } return(text); }
public ItemControl(int index, object item, int indexColumnWidth) { m_index = index; m_editControl = new NumericTextBox(item.GetType()) { Dock = DockStyle.Fill, BorderStyle = System.Windows.Forms.BorderStyle.None }; m_editControl.Width = Width - indexColumnWidth; m_editControl.Value = item; m_editControl.Invalidated += editControl_Invalidated; m_editControl.ValueEdited += m_editControl_ValueChanged; m_selectButton = new Label { Width = indexColumnWidth, Dock = DockStyle.Left, Text = Index.ToString(), TextAlign = ContentAlignment.MiddleCenter, BackColor = UnselectedColor, FlatStyle = FlatStyle.Flat, Font = s_regularFont }; m_selectButton.MouseDown += selectButton_MouseDown; Height = m_editControl.Height; Controls.Add(m_editControl); Controls.Add(m_selectButton); m_editControl.SizeChanged += (sender, e) => { Height = m_editControl.Height; }; GotFocus += (sender, e) => m_editControl.Focus(); m_editControl.GotFocus += (sender, e) => UpdateSelection(); }
private int AddNumericCounter(int newctrlpos) { int width = 0; string text = "0123456789"; numericCounterCtrl = new NumericTextBox(); numericCounterCtrl.Location = new Point(newctrlpos, 0); numericCounterCtrl.Text = GetStartValue(); width = (int)Math.Floor(graphics.MeasureString(text.Substring(1, CounterLen), this.Font).Width + 4); numericCounterCtrl.Size = new Size(width, 23); numericCounterCtrl.MaxDecimalPlaces = 0; numericCounterCtrl.MaxWholeDigits = CounterLen; numericCounterCtrl.AllowNegative = false; numericCounterCtrl.TextChanged += new EventHandler(numericCounterCtrl_TextChanged); this.Controls.Add(numericCounterCtrl); newctrlpos += width; return(newctrlpos); }
public override void InitializeEditingControl(int rowIndex, object initialFormattedValue, DataGridViewCellStyle dataGridViewCellStyle) { base.InitializeEditingControl(rowIndex, initialFormattedValue, dataGridViewCellStyle); NumericTextBox editBox = this.DataGridView.EditingControl as NumericTextBox; if (editBox != null) { editBox.BorderStyle = BorderStyle.None; string initialFormattedValueStr = initialFormattedValue as string; if (string.IsNullOrEmpty(initialFormattedValueStr)) { editBox.Text = ""; } else { editBox.Text = initialFormattedValueStr; } } }
public NumericBox() { this.SetStyle( ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw | ControlStyles.EnableNotifyMessage| ControlStyles.UserPaint , true); _onError = false; _hasComma = false; _hasNumbers = false; _onFlashing = false; _flashCount = 0; _value = new decimal(); _allowError = true; _timer = new System.Timers.Timer(25); _timer.Elapsed+=new System.Timers.ElapsedEventHandler(_timer_Elapsed); _ranges = new LightCollection<NumericRange>(); _numBox = new NumericTextBox(this); _numBox.BorderStyle = BorderStyle.None; _numBox.Multiline = false; _numBox.TextChanged += new EventHandler(_textBox_TextChanged); _numBox.KeyPress += new KeyPressEventHandler(_textBox_KeyPress); this.Height = _numBox.Height + 4; this.Width = _numBox.Width + 2; _numBox.Location = new Point(1, 1); this.Controls.Add(_numBox); }
public static NumericTextBox <T> CreateNumericTextBox <T>(ITextBoxBaseHtmlBuilder renderer) where T : struct { Mock <HttpContextBase> httpContext = TestHelper.CreateMockedHttpContext(); httpContext.Setup(c => c.Request.Browser.CreateHtmlTextWriter(It.IsAny <TextWriter>())).Returns(new HtmlTextWriter(TextWriter.Null)); Mock <ITextBoxBaseHtmlBuilderFactory <T> > inputRendererFactory = new Mock <ITextBoxBaseHtmlBuilderFactory <T> >(); Mock <IClientSideObjectWriterFactory> clientSideObjectWriterFactory = new Mock <IClientSideObjectWriterFactory>(); clientSideObjectWriter = new Mock <IClientSideObjectWriter>(); ViewContext viewContext = TestHelper.CreateViewContext(); clientSideObjectWriterFactory.Setup(c => c.Create(It.IsAny <string>(), It.IsAny <string>(), It.IsAny <TextWriter>())).Returns(clientSideObjectWriter.Object); NumericTextBox <T> input = new NumericTextBox <T>(viewContext, clientSideObjectWriterFactory.Object, inputRendererFactory.Object); renderer = renderer ?? new TextBoxBaseHtmlBuilder <T>(input); inputRendererFactory.Setup(f => f.Create(It.IsAny <NumericTextBox <T> >())).Returns(renderer); return(input); }
protected override void CreateChildControls() { base.CreateChildControls(); this.txtKeyId = new ValidatingTextBox { Required = true, Width = 300 }; this.txtSecretKey = new PasswordTextBox { Required = true, Width = 250 }; this.txtPartSize = new NumericTextBox { MinValue = 5, MaxValue = 20 }; CUtil.Add(this, new FormFieldGroup( "Credentials", "Specifies the credentials used to authenticate with Amazon Web Services. " + "For more information about EC2 security credentials, visit " + "<a href=\"http://docs.amazonwebservices.com/AWSSecurityCredentials/1.0/AboutAWSCredentials.html\" target=\"_blank\">" + "Amazon's documentation</a>.", false, new StandardFormField( "Access Key ID:", this.txtKeyId ), new StandardFormField( "Secret Access Key:", this.txtSecretKey ) ), new FormFieldGroup( "S3 Part Size", "Files larger than the value specified here will be split into multiple parts and " + "uploaded using a multipart transfer.", true, new StandardFormField( "Part Size (MB):", this.txtPartSize ) ) ); }
/// <summary> /// Processes a dialog key</summary> /// <param name="keyData">One of the System.Windows.Forms.Keys values that represents the key to process</param> /// <returns>True iff the key was processed by the control</returns> protected override bool ProcessDialogKey(Keys keyData) { NumericTextBox focusTextBox = null; foreach (NumericTextBox ctrl in Controls) { if (ctrl.Focused) { focusTextBox = ctrl; break; } } int index = focusTextBox == null ? -1 : Controls.IndexOf(focusTextBox); if (keyData == Keys.Tab || keyData == Keys.Enter) { // if on last NumericTextBox then don't process tab NumericTextBox last = (NumericTextBox)Controls[Controls.Count - 1]; if (focusTextBox != last) { Controls[index + 1].Focus(); return(true); } } else if (keyData == (Keys.Tab | Keys.Shift)) { NumericTextBox first = (NumericTextBox)Controls[0]; if (focusTextBox != first && index != -1) { Controls[index - 1].Focus(); return(true); } } return(base.ProcessDialogKey(keyData)); }
public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value) { // Uses the IWindowsFormsEditorService to display a // drop-down UI in the Properties window. IWindowsFormsEditorService edSvc = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService)); if (edSvc != null) { NumericTextBox tb = new NumericTextBox(); tb.BorderStyle = BorderStyle.FixedSingle; tb.Text = (string)value; return tb.Text; } return value; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.comboBoxChannels = new System.Windows.Forms.ComboBox(); this.comboBoxBitsPerSample = new System.Windows.Forms.ComboBox(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.textBoxSampleRate = new NumericTextBox(); this.label1 = new System.Windows.Forms.Label(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.errorProvider1 = new System.Windows.Forms.ErrorProvider(); this.SuspendLayout(); // // comboBoxChannels // this.comboBoxChannels.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxChannels.Items.AddRange(new object[] { "MONO", "STEREO"}); this.comboBoxChannels.Location = new System.Drawing.Point(96, 56); this.comboBoxChannels.Name = "comboBoxChannels"; this.comboBoxChannels.Size = new System.Drawing.Size(112, 21); this.comboBoxChannels.TabIndex = 13; this.comboBoxChannels.SelectedIndexChanged += new System.EventHandler(this.comboBoxChannels_SelectedIndexChanged); // // comboBoxBitsPerSample // this.comboBoxBitsPerSample.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxBitsPerSample.Items.AddRange(new object[] { "8 bits per sample", "16 bits per sample"}); this.comboBoxBitsPerSample.Location = new System.Drawing.Point(96, 96); this.comboBoxBitsPerSample.Name = "comboBoxBitsPerSample"; this.comboBoxBitsPerSample.Size = new System.Drawing.Size(112, 21); this.comboBoxBitsPerSample.TabIndex = 12; this.comboBoxBitsPerSample.SelectedIndexChanged += new System.EventHandler(this.comboBoxBitsPerSample_SelectedIndexChanged); // // label3 // this.label3.Location = new System.Drawing.Point(16, 96); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(88, 23); this.label3.TabIndex = 11; this.label3.Text = "Bits per sample:"; // // label2 // this.label2.Location = new System.Drawing.Point(16, 56); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(72, 16); this.label2.TabIndex = 10; this.label2.Text = "Audio mode:"; // // textBoxSampleRate // this.textBoxSampleRate.Location = new System.Drawing.Point(96, 16); this.textBoxSampleRate.Name = "textBoxSampleRate"; this.textBoxSampleRate.Size = new System.Drawing.Size(112, 20); this.textBoxSampleRate.TabIndex = 8; this.textBoxSampleRate.Text = "44100"; this.toolTip1.SetToolTip(this.textBoxSampleRate, "Sample rate, in samples per second. "); this.textBoxSampleRate.Value = 44100; this.textBoxSampleRate.FormatValid += new System.EventHandler(this.textBoxSampleRate_FormatValid); this.textBoxSampleRate.FormatError += new System.EventHandler(this.textBoxSampleRate_FormatError); this.textBoxSampleRate.TextChanged += new System.EventHandler(this.textBoxSampleRate_TextChanged); // // label1 // this.label1.Location = new System.Drawing.Point(16, 16); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(72, 16); this.label1.TabIndex = 9; this.label1.Text = "Sample rate:"; // // errorProvider1 // this.errorProvider1.ContainerControl = this; // // EditFormat // this.Controls.Add(this.comboBoxChannels); this.Controls.Add(this.comboBoxBitsPerSample); this.Controls.Add(this.label3); this.Controls.Add(this.label2); this.Controls.Add(this.textBoxSampleRate); this.Controls.Add(this.label1); this.Name = "EditFormat"; this.Size = new System.Drawing.Size(288, 200); this.ResumeLayout(false); }
public FindDialog() : base(!INCLUDE_BUTTONS) { Text = StringParser.Parse("${res:ComponentInspector.FindDialog.Title}"); FormBorderStyle = FormBorderStyle.SizableToolWindow; ControlBox = false; StartPosition = FormStartPosition.CenterParent; ShowInTaskbar = false; Label label; Panel panel; AutoScaleBaseSize = new Size(5, 13); ClientSize = new Size(540, 333); MinimumSize = new Size(536, 296); _nodeFound = new SearchNodeDelegate(NodeFound); _nodeLooking = new SearchNodeDelegate(NodeLooking); _searchStatus = new SearchStatusDelegate(SearchStatus); _searchInvalidate = new SearchInvalidateDelegate(SearchInvalidate); SuspendLayout(); // So we can make the list column change when the form // is resized Layout += new LayoutEventHandler(LayoutHandler); Activated += new EventHandler(ActivateHandler); // // Current tree node // label = new Label(); label.Location = new Point(8, 16); label.Size = new Size(72, 30); label.Text = StringParser.Parse("${res:ComponentInspector.FindDialog.StartingWithLabel}"); label.TextAlign = ContentAlignment.TopRight; Controls.Add(label); _startingNode = new Label(); _startingNode.Location = new Point(80, 16); _startingNode.Size = new Size(360, 30); _startingNode.TextAlign = ContentAlignment.TopLeft; _startingNode.Font = new Font(_startingNode.Font, FontStyle.Bold); _startingNode.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; Controls.Add(_startingNode); // // Find text combo // label = new Label(); label.Location = new Point(8, 48); label.Size = new Size(72, 13); label.Text = StringParser.Parse("${res:ComponentInspector.FindDialog.FindWhatLabel}"); label.TextAlign = ContentAlignment.MiddleRight; Controls.Add(label); _findWhat = new ComboBox(); _findWhat.Location = new Point(80, 48); _findWhat.Size = new Size(304, 21); _findWhat.TabIndex = 0; _findWhat.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; _findWhat.KeyPress += new KeyPressEventHandler(FindWhatKeyHandler); Controls.Add(_findWhat); Panel selectionPanel = new Panel(); selectionPanel.Location = new Point(8, 80); selectionPanel.Size = new Size(430, 75); Controls.Add(selectionPanel); // // Tree selection panel // label = new Label(); label.AutoSize = true; label.Location = new Point(10, 0); label.Size = new Size(40, 13); label.Text = StringParser.Parse("${res:ComponentInspector.FindDialog.FindIn}"); label.TextAlign = ContentAlignment.MiddleRight; selectionPanel.Controls.Add(label); panel = new Panel(); panel.Location = new Point(0, 8); panel.Size = new Size(120, 64); panel.BorderStyle = BorderStyle.Fixed3D; panel.TabIndex = 30; selectionPanel.Controls.Add(panel); _treeObj = new RadioButton(); _treeObj.Location = new Point(5, 8); _treeObj.Size = new Size(120, 15); _treeObj.Text = StringParser.Parse("${res:ComponentInspector.FindDialog.ObjectTreeRadioButtonText}"); _treeObj.TabIndex = 0; _treeObj.Click += new EventHandler(TreeSelectClick); panel.Controls.Add(_treeObj); _treeAssy = new RadioButton(); _treeAssy.Location = new Point(5, 23); _treeAssy.Size = new Size(120, 15); _treeAssy.Text = StringParser.Parse("${res:ComponentInspector.FindDialog.AssembliesRadioButton}"); _treeAssy.TabIndex = 0; _treeAssy.Click += new EventHandler(TreeSelectClick); panel.Controls.Add(_treeAssy); _treeAx = new RadioButton(); _treeAx.Location = new Point(5, 38); _treeAx.Size = new Size(120, 15); _treeAx.Text = "ActiveX/COM"; _treeAx.TabIndex = 0; _treeAx.Click += new EventHandler(TreeSelectClick); panel.Controls.Add(_treeAx); // // Level selection panel // label = new Label(); label.AutoSize = true; label.Location = new Point(135, 0); label.Size = new Size(40, 13); label.Text = StringParser.Parse("${res:ComponentInspector.FindDialog.LevelsLabel}"); label.TextAlign = ContentAlignment.MiddleRight; selectionPanel.Controls.Add(label); panel = new Panel(); panel.Location = new Point(125, 8); panel.Size = new Size(110, 64); panel.BorderStyle = BorderStyle.Fixed3D; panel.TabIndex = 35; selectionPanel.Controls.Add(panel); _levelAll = new RadioButton(); _levelAll.Location = new Point(5, 8); _levelAll.Size = new Size(110, 15); _levelAll.Text = StringParser.Parse("${res:ComponentInspector.FindDialog.AllLevelsLabel}"); _levelAll.Checked = true; _levelAll.TabIndex = 0; panel.Controls.Add(_levelAll); _levelSelect = new RadioButton(); _levelSelect.Location = new Point(5, 23); _levelSelect.Size = new Size(80, 15); _levelSelect.Text = StringParser.Parse("${res:ComponentInspector.FindDialog.LevelSelectOnlyDownLabel}"); _levelSelect.TabIndex = 1; panel.Controls.Add(_levelSelect); _levelSelectNum = new NumericTextBox(); _levelSelectNum.Location = new Point(20, 38); _levelSelectNum.Width = 25; _levelSelectNum.Height = 25; _levelSelectNum.Text = "2"; panel.Controls.Add(_levelSelectNum); label = new Label(); label.Location = new Point(48, 38); label.Text = StringParser.Parse("${res:ComponentInspector.FindDialog.LevelsLabel}"); panel.Controls.Add(label); // // Object tree options // _objTreeLabel = new Label(); _objTreeLabel.Location = new Point(250, 0); _objTreeLabel.Size = new Size(64, 16); _objTreeLabel.TabIndex = 17; _objTreeLabel.Text = StringParser.Parse("${res:ComponentInspector.FindDialog.ObjectTreeRadioButtonText}"); selectionPanel.Controls.Add(_objTreeLabel); _objTreePanel = new Panel(); _objTreePanel.Location = new Point(240, 8); _objTreePanel.Size = new Size(88, 64); _objTreePanel.TabIndex = 16; _objTreePanel.BorderStyle = BorderStyle.Fixed3D; _objTreePanel.TabIndex = 40; selectionPanel.Controls.Add(_objTreePanel); _objTreeName = new CheckBox(); _objTreeName.Location = new Point(5, 8); _objTreeName.Size = new Size(110, 15); _objTreeName.Text = StringParser.Parse("${res:ComponentInspector.FindDialog.ObjectTreeNameCheckBox}"); _objTreeName.Checked = true; _objTreeName.TabIndex = 0; _objTreePanel.Controls.Add(_objTreeName); _objTreeValue = new CheckBox(); _objTreeValue.Location = new Point(5, 23); _objTreeValue.Size = new Size(110, 15); _objTreeValue.Text = StringParser.Parse("${res:ComponentInspector.FindDialog.ObjectTreeValueCheckBox}"); _objTreeValue.TabIndex = 1; _objTreePanel.Controls.Add(_objTreeValue); // // Matching options panel // label = new Label(); label.AutoSize = true; label.Location = new Point(343, 0); label.Size = new Size(35, 13); label.TabIndex = 7; label.Text = StringParser.Parse("${res:ComponentInspector.FindDialog.MatchLabel}"); selectionPanel.Controls.Add(label); panel = new Panel(); panel.BorderStyle = BorderStyle.Fixed3D; panel.Location = new Point(333, 8); panel.Size = new Size(96, 64); panel.TabIndex = 45; selectionPanel.Controls.Add(panel); _fullName = new RadioButton(); _fullName.Location = new Point(5, 8); _fullName.Size = new Size(110, 15); _fullName.Checked = true; _fullName.Text = StringParser.Parse("${res:ComponentInspector.FindDialog.FullNameLabel}"); _fullName.TabIndex = 1; panel.Controls.Add(_fullName); _startsWith = new RadioButton(); _startsWith.Location = new Point(5, 23); _startsWith.Size = new Size(110, 15); _startsWith.Text = StringParser.Parse("${res:ComponentInspector.FindDialog.StartsWithRadioButton}"); _startsWith.TabIndex = 1; panel.Controls.Add(_startsWith); _contains = new RadioButton(); _contains.Location = new Point(5, 38); _contains.Size = new Size(110, 15); _contains.Text = StringParser.Parse("${res:ComponentInspector.FindDialog.ContainsRadioButton}"); _contains.TabIndex = 1; panel.Controls.Add(_contains); // Border label = new Label(); label.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; label.Location = new Point(8, 158); label.Size = new Size(ClientSize.Width - 16, 2); label.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; label.TabIndex = 10; Controls.Add(label); // Found list _foundList = new ListView(); _foundList.Location = new Point(8, 166); _foundList.Size = new Size(ClientSize.Width - 16, ClientSize.Height - 166 - 8 - 21); _foundList.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; _foundList.TabIndex = 50; _foundList.FullRowSelect = true; _foundList.MultiSelect = false; _foundList.SmallImageList = PresentationMap.ImageList; _foundList.View = View.Details; _foundList.ItemActivate += new EventHandler(ShowClick); MenuItem mi = new MenuItem(); mi.Text = StringParser.Parse("${res:ComponentInspector.FindDialog.ShowItemMenuItem}"); mi.Click += new EventHandler(ShowClick); _foundList.ContextMenu = new ContextMenu(); _foundList.ContextMenu.MenuItems.Add(mi); _foundListColumn = new ColumnHeader(); _foundListColumn.Text = StringParser.Parse("${res:ComponentInspector.FindDialog.FoundListColumnHeader}"); _foundListColumn.TextAlign = HorizontalAlignment.Left; _foundListColumn.Width = _foundList.ClientSize.Width; _foundList.Columns.Add(_foundListColumn); Controls.Add(_foundList); // // Current tree node // _lookingLabel = new Label(); _lookingLabel.Location = new Point(8, ClientSize.Height - 21); _lookingLabel.Size = new Size(72, 13); _lookingLabel.TextAlign = ContentAlignment.MiddleLeft; _lookingLabel.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; Controls.Add(_lookingLabel); _lookingNode = new Label(); _lookingNode.Location = new Point(80, ClientSize.Height - 21); _lookingNode.Size = new Size(360, 13); _lookingNode.TextAlign = ContentAlignment.MiddleLeft; _lookingNode.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; Controls.Add(_lookingNode); // // Buttons // _findButton = new Button(); _findButton.Location = new Point(ClientSize.Width - _findButton.Width - 8, 16); _findButton.Anchor = AnchorStyles.Top | AnchorStyles.Right; _findButton.TabIndex = 5; _findButton.Text = StringParser.Parse("${res:ComponentInspector.FindDialog.FindButton}"); _findButton.Click += new EventHandler(FindClick); Controls.Add(_findButton); _closeButton = new Button(); _closeButton.Location = new Point(ClientSize.Width - _closeButton.Width - 8, 48); _closeButton.Anchor = AnchorStyles.Top | AnchorStyles.Right; _closeButton.TabIndex = 10; _closeButton.Text = StringParser.Parse("${res:Global.CloseButtonText}"); _closeButton.Click += new EventHandler(CloseClick); Controls.Add(_closeButton); _cancelButton = new Button(); _cancelButton.Location = new Point(ClientSize.Width - _cancelButton.Width - 8, 80); _cancelButton.Anchor = AnchorStyles.Top | AnchorStyles.Right; _cancelButton.TabIndex = 15; _cancelButton.Text = StringParser.Parse("${res:Global.CloseButtonText}"); _cancelButton.Click += new EventHandler(CancelClick); Controls.Add(_cancelButton); _helpButton = new Button(); _helpButton.Location = new Point(ClientSize.Width - _helpButton.Width - 8, 112); _helpButton.Anchor = AnchorStyles.Top | AnchorStyles.Right; _helpButton.TabIndex = 20; _helpButton.Text = StringParser.Parse("${res:Global.HelpButtonText}"); _helpButton.Click += new EventHandler(HelpClick); Controls.Add(_helpButton); ResumeLayout(); }
private void NewMapForm_Load(object sender, EventArgs e) { // Create an instance of NumericTextBox. mapWidth = new NumericTextBox(); mapWidth.Parent = this; mapHeight = new NumericTextBox(); mapHeight.Parent = this; //Draw the bounds of the NumericTextBox. mapWidth.Bounds = new Rectangle(100, 100, 150, 100); mapHeight.Bounds = new Rectangle(100, 150, 150, 100); this.CenterToScreen(); }
/// <summary> /// Incrementes numeric TextBox value. /// </summary> /// <param name="textBox">Numeric TextBox to update.</param> private void _IncrementDelay(NumericTextBox textBox) { Debug.Assert(null != textBox); var value = (UInt32)textBox.Value; var maxValue = (UInt32)textBox.MaxValue; if (value < maxValue) textBox.Value = value + 1; }
/// <summary> /// Decrementes numeric TextBox value. /// </summary> /// <param name="textBox">Numeric TextBox to update.</param> private void _DecrementDelay(NumericTextBox textBox) { Debug.Assert(null != textBox); if (textBox.HasValidationError) return; var value = (UInt32)textBox.Value; var minValue = (UInt32)textBox.MinValue; if (minValue < value) textBox.Value = value - 1; }
private static System.Collections.ObjectModel.ObservableCollection<object> Get_TabControl_Items() { System.Collections.ObjectModel.ObservableCollection<object> items = new System.Collections.ObjectModel.ObservableCollection<object>(); // e_3 element TabItem e_3 = new TabItem(); e_3.Name = "e_3"; e_3.HorizontalContentAlignment = HorizontalAlignment.Stretch; e_3.Header = "Controls"; // e_4 element Grid e_4 = new Grid(); e_3.Content = e_4; e_4.Name = "e_4"; RowDefinition row_e_4_0 = new RowDefinition(); row_e_4_0.Height = new GridLength(1F, GridUnitType.Auto); e_4.RowDefinitions.Add(row_e_4_0); RowDefinition row_e_4_1 = new RowDefinition(); row_e_4_1.Height = new GridLength(1F, GridUnitType.Auto); e_4.RowDefinitions.Add(row_e_4_1); RowDefinition row_e_4_2 = new RowDefinition(); row_e_4_2.Height = new GridLength(1F, GridUnitType.Auto); e_4.RowDefinitions.Add(row_e_4_2); RowDefinition row_e_4_3 = new RowDefinition(); row_e_4_3.Height = new GridLength(1F, GridUnitType.Auto); e_4.RowDefinitions.Add(row_e_4_3); RowDefinition row_e_4_4 = new RowDefinition(); row_e_4_4.Height = new GridLength(1F, GridUnitType.Auto); e_4.RowDefinitions.Add(row_e_4_4); RowDefinition row_e_4_5 = new RowDefinition(); row_e_4_5.Height = new GridLength(1F, GridUnitType.Auto); e_4.RowDefinitions.Add(row_e_4_5); RowDefinition row_e_4_6 = new RowDefinition(); row_e_4_6.Height = new GridLength(1F, GridUnitType.Auto); e_4.RowDefinitions.Add(row_e_4_6); RowDefinition row_e_4_7 = new RowDefinition(); row_e_4_7.Height = new GridLength(1F, GridUnitType.Auto); e_4.RowDefinitions.Add(row_e_4_7); RowDefinition row_e_4_8 = new RowDefinition(); row_e_4_8.Height = new GridLength(1F, GridUnitType.Auto); e_4.RowDefinitions.Add(row_e_4_8); RowDefinition row_e_4_9 = new RowDefinition(); row_e_4_9.Height = new GridLength(1F, GridUnitType.Auto); e_4.RowDefinitions.Add(row_e_4_9); RowDefinition row_e_4_10 = new RowDefinition(); row_e_4_10.Height = new GridLength(1F, GridUnitType.Auto); e_4.RowDefinitions.Add(row_e_4_10); RowDefinition row_e_4_11 = new RowDefinition(); row_e_4_11.Height = new GridLength(1F, GridUnitType.Auto); e_4.RowDefinitions.Add(row_e_4_11); ColumnDefinition col_e_4_0 = new ColumnDefinition(); col_e_4_0.Width = new GridLength(1F, GridUnitType.Auto); e_4.ColumnDefinitions.Add(col_e_4_0); ColumnDefinition col_e_4_1 = new ColumnDefinition(); e_4.ColumnDefinitions.Add(col_e_4_1); // e_5 element TextBlock e_5 = new TextBlock(); e_4.Children.Add(e_5); e_5.Name = "e_5"; e_5.VerticalAlignment = VerticalAlignment.Center; e_5.Text = "Button"; // button1 element Button button1 = new Button(); e_4.Children.Add(button1); button1.Name = "button1"; button1.Height = 30F; button1.Width = 200F; button1.Margin = new Thickness(5F, 5F, 5F, 5F); button1.HorizontalAlignment = HorizontalAlignment.Left; button1.TabIndex = 1; button1.Content = "Button 1"; button1.CommandParameter = "Click Button 1"; Grid.SetColumn(button1, 1); Grid.SetRow(button1, 0); Binding binding_button1_Command = new Binding("ButtonCommand"); button1.SetBinding(Button.CommandProperty, binding_button1_Command); // button2 element Button button2 = new Button(); e_4.Children.Add(button2); button2.Name = "button2"; button2.Height = 30F; button2.Width = 200F; button2.Margin = new Thickness(5F, 5F, 5F, 5F); button2.HorizontalAlignment = HorizontalAlignment.Left; button2.TabIndex = 2; button2.Content = "Button 2"; button2.CommandParameter = "Click Button 2"; Grid.SetColumn(button2, 1); Grid.SetRow(button2, 1); Binding binding_button2_IsEnabled = new Binding("ButtonEnabled"); button2.SetBinding(Button.IsEnabledProperty, binding_button2_IsEnabled); Binding binding_button2_Command = new Binding("ButtonCommand"); button2.SetBinding(Button.CommandProperty, binding_button2_Command); // buttonResult element TextBlock buttonResult = new TextBlock(); e_4.Children.Add(buttonResult); buttonResult.Name = "buttonResult"; buttonResult.HorizontalAlignment = HorizontalAlignment.Left; Grid.SetColumn(buttonResult, 1); Grid.SetRow(buttonResult, 2); Binding binding_buttonResult_Text = new Binding("ButtonResult"); buttonResult.SetBinding(TextBlock.TextProperty, binding_buttonResult_Text); // e_6 element TextBlock e_6 = new TextBlock(); e_4.Children.Add(e_6); e_6.Name = "e_6"; e_6.VerticalAlignment = VerticalAlignment.Center; e_6.Text = "CheckBox"; Grid.SetRow(e_6, 3); // checkBox element CheckBox checkBox = new CheckBox(); e_4.Children.Add(checkBox); checkBox.Name = "checkBox"; checkBox.Margin = new Thickness(5F, 5F, 5F, 5F); checkBox.HorizontalAlignment = HorizontalAlignment.Left; checkBox.TabIndex = 3; checkBox.Content = "Check Box"; Grid.SetColumn(checkBox, 1); Grid.SetRow(checkBox, 3); // e_7 element TextBlock e_7 = new TextBlock(); e_4.Children.Add(e_7); e_7.Name = "e_7"; e_7.VerticalAlignment = VerticalAlignment.Center; e_7.Text = "ProgressBar"; Grid.SetRow(e_7, 4); // e_8 element ProgressBar e_8 = new ProgressBar(); e_4.Children.Add(e_8); e_8.Name = "e_8"; e_8.Height = 30F; e_8.Width = 200F; e_8.Margin = new Thickness(5F, 5F, 5F, 5F); e_8.HorizontalAlignment = HorizontalAlignment.Left; Grid.SetColumn(e_8, 1); Grid.SetRow(e_8, 4); Binding binding_e_8_Value = new Binding("ProgressValue"); e_8.SetBinding(ProgressBar.ValueProperty, binding_e_8_Value); // e_9 element TextBlock e_9 = new TextBlock(); e_4.Children.Add(e_9); e_9.Name = "e_9"; e_9.VerticalAlignment = VerticalAlignment.Center; e_9.Text = "Slider"; Grid.SetRow(e_9, 5); // slider element Slider slider = new Slider(); e_4.Children.Add(slider); slider.Name = "slider"; slider.Width = 200F; slider.HorizontalAlignment = HorizontalAlignment.Left; slider.TabIndex = 4; slider.Minimum = 5F; slider.Maximum = 20F; Grid.SetColumn(slider, 1); Grid.SetRow(slider, 5); Binding binding_slider_Value = new Binding("SliderValue"); slider.SetBinding(Slider.ValueProperty, binding_slider_Value); // e_10 element TextBlock e_10 = new TextBlock(); e_4.Children.Add(e_10); e_10.Name = "e_10"; e_10.VerticalAlignment = VerticalAlignment.Center; e_10.Text = "TextBox"; Grid.SetRow(e_10, 6); // textBox element TextBox textBox = new TextBox(); e_4.Children.Add(textBox); textBox.Name = "textBox"; textBox.Width = 200F; textBox.Margin = new Thickness(5F, 5F, 5F, 5F); textBox.HorizontalAlignment = HorizontalAlignment.Left; textBox.TabIndex = 5; textBox.SelectionBrush = new SolidColorBrush(new ColorW(255, 0, 0, 255)); textBox.UndoLimit = 20; Grid.SetColumn(textBox, 1); Grid.SetRow(textBox, 6); Binding binding_textBox_Text = new Binding("TextBoxText"); textBox.SetBinding(TextBox.TextProperty, binding_textBox_Text); // e_11 element TextBlock e_11 = new TextBlock(); e_4.Children.Add(e_11); e_11.Name = "e_11"; e_11.VerticalAlignment = VerticalAlignment.Center; e_11.Text = "Numeric"; Grid.SetRow(e_11, 7); // numTextBox element NumericTextBox numTextBox = new NumericTextBox(); e_4.Children.Add(numTextBox); numTextBox.Name = "numTextBox"; numTextBox.Width = 200F; numTextBox.Margin = new Thickness(5F, 5F, 5F, 5F); numTextBox.HorizontalAlignment = HorizontalAlignment.Left; numTextBox.TabIndex = 6; numTextBox.ValueFormat = "F0"; numTextBox.ValueStyle = ((System.Globalization.NumberStyles)(7)); Grid.SetColumn(numTextBox, 1); Grid.SetRow(numTextBox, 7); Binding binding_numTextBox_Value = new Binding("NumericTextBoxValue"); numTextBox.SetBinding(NumericTextBox.ValueProperty, binding_numTextBox_Value); // e_12 element TextBlock e_12 = new TextBlock(); e_4.Children.Add(e_12); e_12.Name = "e_12"; e_12.VerticalAlignment = VerticalAlignment.Center; e_12.Text = "PasswordBox"; Grid.SetRow(e_12, 8); // e_13 element PasswordBox e_13 = new PasswordBox(); e_4.Children.Add(e_13); e_13.Name = "e_13"; e_13.Width = 200F; e_13.Margin = new Thickness(5F, 5F, 5F, 5F); e_13.HorizontalAlignment = HorizontalAlignment.Left; e_13.TabIndex = 7; Grid.SetColumn(e_13, 1); Grid.SetRow(e_13, 8); Binding binding_e_13_Password = new Binding("Password"); e_13.SetBinding(PasswordBox.PasswordProperty, binding_e_13_Password); // e_14 element TextBlock e_14 = new TextBlock(); e_4.Children.Add(e_14); e_14.Name = "e_14"; e_14.VerticalAlignment = VerticalAlignment.Center; e_14.Text = "ComboBox"; Grid.SetRow(e_14, 9); // combo element ComboBox combo = new ComboBox(); e_4.Children.Add(combo); combo.Name = "combo"; combo.Width = 200F; combo.Margin = new Thickness(5F, 5F, 5F, 5F); combo.HorizontalAlignment = HorizontalAlignment.Left; combo.TabIndex = 8; combo.ItemsSource = Get_combo_Items(); combo.SelectedIndex = 2; Grid.SetColumn(combo, 1); Grid.SetRow(combo, 9); // e_15 element TextBlock e_15 = new TextBlock(); e_4.Children.Add(e_15); e_15.Name = "e_15"; e_15.VerticalAlignment = VerticalAlignment.Center; e_15.Text = "ListBox"; Grid.SetRow(e_15, 10); // e_16 element Grid e_16 = new Grid(); e_4.Children.Add(e_16); e_16.Name = "e_16"; ColumnDefinition col_e_16_0 = new ColumnDefinition(); e_16.ColumnDefinitions.Add(col_e_16_0); ColumnDefinition col_e_16_1 = new ColumnDefinition(); e_16.ColumnDefinitions.Add(col_e_16_1); Grid.SetColumn(e_16, 1); Grid.SetRow(e_16, 10); // e_17 element ListBox e_17 = new ListBox(); e_16.Children.Add(e_17); e_17.Name = "e_17"; e_17.TabIndex = 9; DragDrop.SetIsDragSource(e_17, true); DragDrop.SetIsDropTarget(e_17, true); Binding binding_e_17_ItemsSource = new Binding("DataOne"); e_17.SetBinding(ListBox.ItemsSourceProperty, binding_e_17_ItemsSource); // e_18 element ListBox e_18 = new ListBox(); e_16.Children.Add(e_18); e_18.Name = "e_18"; e_18.TabIndex = 10; Grid.SetColumn(e_18, 1); DragDrop.SetIsDragSource(e_18, true); DragDrop.SetIsDropTarget(e_18, true); Binding binding_e_18_ItemsSource = new Binding("DataTwo"); e_18.SetBinding(ListBox.ItemsSourceProperty, binding_e_18_ItemsSource); // e_19 element TextBlock e_19 = new TextBlock(); e_4.Children.Add(e_19); e_19.Name = "e_19"; e_19.VerticalAlignment = VerticalAlignment.Center; e_19.Text = "RadioButton"; Grid.SetRow(e_19, 11); // e_20 element StackPanel e_20 = new StackPanel(); e_4.Children.Add(e_20); e_20.Name = "e_20"; e_20.Orientation = Orientation.Horizontal; Grid.SetColumn(e_20, 1); Grid.SetRow(e_20, 11); // e_21 element RadioButton e_21 = new RadioButton(); e_20.Children.Add(e_21); e_21.Name = "e_21"; e_21.Margin = new Thickness(5F, 5F, 5F, 5F); e_21.Content = "Radio Button 1"; e_21.GroupName = "testGroup1"; // e_22 element RadioButton e_22 = new RadioButton(); e_20.Children.Add(e_22); e_22.Name = "e_22"; e_22.Margin = new Thickness(5F, 5F, 5F, 5F); e_22.Content = "Radio Button 2"; e_22.GroupName = "testGroup1"; // e_23 element RadioButton e_23 = new RadioButton(); e_20.Children.Add(e_23); e_23.Name = "e_23"; e_23.Margin = new Thickness(5F, 5F, 5F, 5F); e_23.Content = "Radio Button 3"; e_23.GroupName = "testGroup1"; // e_24 element RadioButton e_24 = new RadioButton(); e_20.Children.Add(e_24); e_24.Name = "e_24"; e_24.Margin = new Thickness(5F, 5F, 5F, 5F); e_24.Content = "Radio Button 4"; e_24.GroupName = "testGroup2"; // e_25 element RadioButton e_25 = new RadioButton(); e_20.Children.Add(e_25); e_25.Name = "e_25"; e_25.Margin = new Thickness(5F, 5F, 5F, 5F); e_25.Content = "Radio Button 5"; e_25.GroupName = "testGroup2"; // e_26 element RadioButton e_26 = new RadioButton(); e_20.Children.Add(e_26); e_26.Name = "e_26"; e_26.Margin = new Thickness(5F, 5F, 5F, 5F); e_26.Content = "Radio Button 6"; e_26.GroupName = "testGroup2"; items.Add(e_3); // e_27 element TabItem e_27 = new TabItem(); e_27.Name = "e_27"; e_27.Header = "DataGrid"; // e_28 element DataGrid e_28 = new DataGrid(); e_27.Content = e_28; e_28.Name = "e_28"; e_28.AutoGenerateColumns = false; DataGridTextColumn e_28_Col0 = new DataGridTextColumn(); e_28_Col0.Header = "#"; Binding e_28_Col0_b = new Binding("Number"); e_28_Col0.Binding = e_28_Col0_b; e_28.Columns.Add(e_28_Col0); DataGridTextColumn e_28_Col1 = new DataGridTextColumn(); e_28_Col1.Width = 200F; e_28_Col1.Header = "Text"; Style e_28_Col1_e_s = new Style(typeof(DataGridCell)); Setter e_28_Col1_e_s_S_0 = new Setter(DataGridCell.BackgroundProperty, new SolidColorBrush(new ColorW(128, 128, 128, 255))); e_28_Col1_e_s.Setters.Add(e_28_Col1_e_s_S_0); Setter e_28_Col1_e_s_S_1 = new Setter(DataGridCell.HorizontalAlignmentProperty, HorizontalAlignment.Center); e_28_Col1_e_s.Setters.Add(e_28_Col1_e_s_S_1); Setter e_28_Col1_e_s_S_2 = new Setter(DataGridCell.VerticalAlignmentProperty, VerticalAlignment.Center); e_28_Col1_e_s.Setters.Add(e_28_Col1_e_s_S_2); e_28_Col1.ElementStyle = e_28_Col1_e_s; Binding e_28_Col1_b = new Binding("Text"); e_28_Col1.Binding = e_28_Col1_b; e_28.Columns.Add(e_28_Col1); DataGridCheckBoxColumn e_28_Col2 = new DataGridCheckBoxColumn(); e_28_Col2.Width = DataGridLength.SizeToHeader; e_28_Col2.Header = "Bool"; Binding e_28_Col2_b = new Binding("Boolean"); e_28_Col2.Binding = e_28_Col2_b; e_28.Columns.Add(e_28_Col2); DataGridTemplateColumn e_28_Col3 = new DataGridTemplateColumn(); e_28_Col3.Width = new DataGridLength(1F, DataGridLengthUnitType.Star); // e_29 element TextBlock e_29 = new TextBlock(); e_29.Name = "e_29"; e_29.Text = "Template Column"; e_28_Col3.Header = e_29; Style e_28_Col3_h_s = new Style(typeof(DataGridColumnHeader)); Setter e_28_Col3_h_s_S_0 = new Setter(DataGridColumnHeader.ForegroundProperty, new SolidColorBrush(new ColorW(255, 165, 0, 255))); e_28_Col3_h_s.Setters.Add(e_28_Col3_h_s_S_0); e_28_Col3.HeaderStyle = e_28_Col3_h_s; Func<UIElement, UIElement> e_28_Col3_ct_dtFunc = e_28_Col3_ct_dtMethod; e_28_Col3.CellTemplate = new DataTemplate(e_28_Col3_ct_dtFunc); e_28.Columns.Add(e_28_Col3); Binding binding_e_28_ItemsSource = new Binding("GridData"); e_28.SetBinding(DataGrid.ItemsSourceProperty, binding_e_28_ItemsSource); items.Add(e_27); // e_35 element TabItem e_35 = new TabItem(); e_35.Name = "e_35"; e_35.Header = "TreeView"; // e_36 element TreeView e_36 = new TreeView(); e_35.Content = e_36; e_36.Name = "e_36"; Binding binding_e_36_ItemsSource = new Binding("TreeItems"); e_36.SetBinding(TreeView.ItemsSourceProperty, binding_e_36_ItemsSource); items.Add(e_35); // e_37 element TabItem e_37 = new TabItem(); e_37.Name = "e_37"; e_37.Header = "Chart"; // e_38 element Chart e_38 = new Chart(); e_37.Content = e_38; e_38.Name = "e_38"; e_38.AxisYMajorUnit = 50F; // e_39 element LineSeries2D e_39 = new LineSeries2D(); e_38.Series.Add(e_39); e_39.Name = "e_39"; // p_40 point SeriesPoint p_40 = new SeriesPoint(); e_39.Points.Add(p_40); p_40.Argument = 0F; p_40.Value = 0F; // p_41 point SeriesPoint p_41 = new SeriesPoint(); e_39.Points.Add(p_41); p_41.Argument = 1F; p_41.Value = 10F; // p_42 point SeriesPoint p_42 = new SeriesPoint(); e_39.Points.Add(p_42); p_42.Argument = 2F; p_42.Value = 20F; // p_43 point SeriesPoint p_43 = new SeriesPoint(); e_39.Points.Add(p_43); p_43.Argument = 3F; p_43.Value = 50F; // p_44 point SeriesPoint p_44 = new SeriesPoint(); e_39.Points.Add(p_44); p_44.Argument = 4F; p_44.Value = 100F; // p_45 point SeriesPoint p_45 = new SeriesPoint(); e_39.Points.Add(p_45); p_45.Argument = 5F; p_45.Value = 200F; // p_46 point SeriesPoint p_46 = new SeriesPoint(); e_39.Points.Add(p_46); p_46.Argument = 6F; p_46.Value = 500F; // e_47 element LineSeries2D e_47 = new LineSeries2D(); e_38.Series.Add(e_47); e_47.Name = "e_47"; e_47.Foreground = new SolidColorBrush(new ColorW(255, 165, 0, 255)); e_47.LineThickness = 1F; Binding binding_e_47_DataSource = new Binding("ChartData"); e_47.SetBinding(LineSeries2D.DataSourceProperty, binding_e_47_DataSource); items.Add(e_37); // e_48 element TabItem e_48 = new TabItem(); e_48.Name = "e_48"; e_48.Header = "Shapes"; // e_49 element Grid e_49 = new Grid(); e_48.Content = e_49; e_49.Name = "e_49"; RowDefinition row_e_49_0 = new RowDefinition(); e_49.RowDefinitions.Add(row_e_49_0); RowDefinition row_e_49_1 = new RowDefinition(); e_49.RowDefinitions.Add(row_e_49_1); RowDefinition row_e_49_2 = new RowDefinition(); e_49.RowDefinitions.Add(row_e_49_2); ColumnDefinition col_e_49_0 = new ColumnDefinition(); e_49.ColumnDefinitions.Add(col_e_49_0); ColumnDefinition col_e_49_1 = new ColumnDefinition(); e_49.ColumnDefinitions.Add(col_e_49_1); ColumnDefinition col_e_49_2 = new ColumnDefinition(); e_49.ColumnDefinitions.Add(col_e_49_2); // e_50 element Rectangle e_50 = new Rectangle(); e_49.Children.Add(e_50); e_50.Name = "e_50"; e_50.Height = 100F; e_50.Width = 200F; e_50.Margin = new Thickness(5F, 5F, 5F, 5F); e_50.Fill = new SolidColorBrush(new ColorW(0, 128, 0, 255)); e_50.Stroke = new SolidColorBrush(new ColorW(128, 128, 128, 255)); e_50.StrokeThickness = 5F; e_50.RadiusX = 10F; e_50.RadiusY = 10F; // e_51 element Rectangle e_51 = new Rectangle(); e_49.Children.Add(e_51); e_51.Name = "e_51"; e_51.Height = 100F; e_51.Width = 200F; e_51.Margin = new Thickness(5F, 5F, 5F, 5F); e_51.Fill = new SolidColorBrush(new ColorW(255, 165, 0, 255)); Grid.SetColumn(e_51, 1); // e_52 element Rectangle e_52 = new Rectangle(); e_49.Children.Add(e_52); e_52.Name = "e_52"; e_52.Height = 100F; e_52.Width = 200F; e_52.Margin = new Thickness(5F, 5F, 5F, 5F); LinearGradientBrush e_52_Fill = new LinearGradientBrush(); e_52_Fill.StartPoint = new PointF(0F, 0F); e_52_Fill.EndPoint = new PointF(1F, 1F); e_52_Fill.SpreadMethod = GradientSpreadMethod.Pad; e_52_Fill.GradientStops.Add(new GradientStop(new ColorW(255, 165, 0, 255), 0.5F)); e_52_Fill.GradientStops.Add(new GradientStop(new ColorW(0, 162, 255, 255), 0F)); e_52.Fill = e_52_Fill; LinearGradientBrush e_52_Stroke = new LinearGradientBrush(); e_52_Stroke.StartPoint = new PointF(0F, 0F); e_52_Stroke.EndPoint = new PointF(1F, 1F); e_52_Stroke.SpreadMethod = GradientSpreadMethod.Pad; e_52_Stroke.GradientStops.Add(new GradientStop(new ColorW(0, 162, 255, 255), 0.5F)); e_52_Stroke.GradientStops.Add(new GradientStop(new ColorW(255, 165, 0, 255), 0F)); e_52.Stroke = e_52_Stroke; e_52.StrokeThickness = 5F; e_52.RadiusX = 10F; e_52.RadiusY = 10F; Grid.SetColumn(e_52, 2); // e_53 element Ellipse e_53 = new Ellipse(); e_49.Children.Add(e_53); e_53.Name = "e_53"; e_53.Height = 100F; e_53.Width = 200F; e_53.Margin = new Thickness(5F, 5F, 5F, 5F); e_53.Fill = new SolidColorBrush(new ColorW(128, 128, 128, 255)); e_53.Stroke = new SolidColorBrush(new ColorW(0, 128, 0, 255)); e_53.StrokeThickness = 10F; Grid.SetRow(e_53, 1); // e_54 element Ellipse e_54 = new Ellipse(); e_49.Children.Add(e_54); e_54.Name = "e_54"; e_54.Height = 100F; e_54.Width = 200F; e_54.Margin = new Thickness(5F, 5F, 5F, 5F); e_54.Stroke = new SolidColorBrush(new ColorW(255, 165, 0, 255)); e_54.StrokeThickness = 10F; Grid.SetColumn(e_54, 1); Grid.SetRow(e_54, 1); // e_55 element Ellipse e_55 = new Ellipse(); e_49.Children.Add(e_55); e_55.Name = "e_55"; e_55.Height = 100F; e_55.Width = 200F; e_55.Margin = new Thickness(5F, 5F, 5F, 5F); LinearGradientBrush e_55_Fill = new LinearGradientBrush(); e_55_Fill.StartPoint = new PointF(0F, 0F); e_55_Fill.EndPoint = new PointF(1F, 1F); e_55_Fill.SpreadMethod = GradientSpreadMethod.Pad; e_55_Fill.GradientStops.Add(new GradientStop(new ColorW(255, 165, 0, 255), 0.5F)); e_55_Fill.GradientStops.Add(new GradientStop(new ColorW(0, 162, 255, 255), 0F)); e_55.Fill = e_55_Fill; LinearGradientBrush e_55_Stroke = new LinearGradientBrush(); e_55_Stroke.StartPoint = new PointF(0F, 0F); e_55_Stroke.EndPoint = new PointF(1F, 1F); e_55_Stroke.SpreadMethod = GradientSpreadMethod.Pad; e_55_Stroke.GradientStops.Add(new GradientStop(new ColorW(0, 162, 255, 255), 0.5F)); e_55_Stroke.GradientStops.Add(new GradientStop(new ColorW(255, 165, 0, 255), 0F)); e_55.Stroke = e_55_Stroke; e_55.StrokeThickness = 10F; Grid.SetColumn(e_55, 2); Grid.SetRow(e_55, 1); // e_56 element Line e_56 = new Line(); e_49.Children.Add(e_56); e_56.Name = "e_56"; e_56.Stroke = new SolidColorBrush(new ColorW(128, 128, 128, 255)); e_56.StrokeThickness = 10F; e_56.X1 = 10F; e_56.X2 = 150F; e_56.Y1 = 10F; e_56.Y2 = 150F; Grid.SetRow(e_56, 2); // e_57 element Line e_57 = new Line(); e_49.Children.Add(e_57); e_57.Name = "e_57"; e_57.Stroke = new SolidColorBrush(new ColorW(128, 128, 128, 255)); e_57.StrokeThickness = 10F; e_57.X1 = 100F; e_57.X2 = 100F; e_57.Y1 = 10F; e_57.Y2 = 100F; Grid.SetRow(e_57, 2); // e_58 element Line e_58 = new Line(); e_49.Children.Add(e_58); e_58.Name = "e_58"; e_58.Stroke = new SolidColorBrush(new ColorW(128, 128, 128, 255)); e_58.StrokeThickness = 10F; e_58.X1 = 10F; e_58.X2 = 100F; e_58.Y1 = 100F; e_58.Y2 = 100F; Grid.SetRow(e_58, 2); // e_59 element Rectangle e_59 = new Rectangle(); e_49.Children.Add(e_59); e_59.Name = "e_59"; e_59.Height = 100F; e_59.Width = 200F; e_59.Margin = new Thickness(5F, 5F, 5F, 5F); ImageBrush e_59_Fill = new ImageBrush(); BitmapImage e_59_Fill_bm = new BitmapImage(); e_59_Fill_bm.TextureAsset = "Images/MonoGameLogo"; e_59_Fill.ImageSource = e_59_Fill_bm; e_59_Fill.Stretch = Stretch.None; e_59.Fill = e_59_Fill; e_59.Stroke = new SolidColorBrush(new ColorW(255, 255, 255, 255)); e_59.StrokeThickness = 1F; e_59.RadiusX = 10F; e_59.RadiusY = 10F; Grid.SetColumn(e_59, 1); Grid.SetRow(e_59, 2); // e_60 element Image e_60 = new Image(); e_49.Children.Add(e_60); e_60.Name = "e_60"; Grid.SetColumn(e_60, 2); Grid.SetRow(e_60, 2); Binding binding_e_60_Source = new Binding("RenderTargetSource"); e_60.SetBinding(Image.SourceProperty, binding_e_60_Source); items.Add(e_48); // e_61 element TabItem e_61 = new TabItem(); e_61.Name = "e_61"; e_61.Header = "Animations"; // e_62 element Grid e_62 = new Grid(); e_61.Content = e_62; e_62.Name = "e_62"; ColumnDefinition col_e_62_0 = new ColumnDefinition(); e_62.ColumnDefinitions.Add(col_e_62_0); ColumnDefinition col_e_62_1 = new ColumnDefinition(); e_62.ColumnDefinitions.Add(col_e_62_1); // e_63 element StackPanel e_63 = new StackPanel(); e_62.Children.Add(e_63); e_63.Name = "e_63"; // animButton1 element Button animButton1 = new Button(); e_63.Children.Add(animButton1); animButton1.Name = "animButton1"; animButton1.TabIndex = 1; animButton1.Content = "Mouse Over me!"; animButton1.SetResourceReference(Button.StyleProperty, "buttonAnimStyle"); // animButton2 element Button animButton2 = new Button(); e_63.Children.Add(animButton2); animButton2.Name = "animButton2"; animButton2.TabIndex = 2; animButton2.Content = "Mouse Over me!"; animButton2.SetResourceReference(Button.StyleProperty, "buttonAnimStyle"); // animButton3 element Button animButton3 = new Button(); e_63.Children.Add(animButton3); animButton3.Name = "animButton3"; animButton3.TabIndex = 3; animButton3.Content = "Mouse Over me!"; animButton3.SetResourceReference(Button.StyleProperty, "buttonAnimStyle"); // animButton4 element Button animButton4 = new Button(); e_63.Children.Add(animButton4); animButton4.Name = "animButton4"; animButton4.TabIndex = 4; animButton4.Content = "Mouse Over me!"; animButton4.SetResourceReference(Button.StyleProperty, "buttonAnimStyle"); // animBorder1 element Border animBorder1 = new Border(); e_62.Children.Add(animBorder1); animBorder1.Name = "animBorder1"; animBorder1.Height = 100F; animBorder1.Width = 200F; animBorder1.Margin = new Thickness(0F, 10F, 0F, 10F); animBorder1.VerticalAlignment = VerticalAlignment.Top; EventTrigger animBorder1_ET_0 = new EventTrigger(Border.LoadedEvent, animBorder1); animBorder1.Triggers.Add(animBorder1_ET_0); BeginStoryboard animBorder1_ET_0_AC_0 = new BeginStoryboard(); animBorder1_ET_0_AC_0.Name = "animBorder1_ET_0_AC_0"; animBorder1_ET_0.AddAction(animBorder1_ET_0_AC_0); Storyboard animBorder1_ET_0_AC_0_SB = new Storyboard(); animBorder1_ET_0_AC_0.Storyboard = animBorder1_ET_0_AC_0_SB; animBorder1_ET_0_AC_0_SB.Name = "animBorder1_ET_0_AC_0_SB"; SolidColorBrushAnimation animBorder1_ET_0_AC_0_SB_TL_0 = new SolidColorBrushAnimation(); animBorder1_ET_0_AC_0_SB_TL_0.Name = "animBorder1_ET_0_AC_0_SB_TL_0"; animBorder1_ET_0_AC_0_SB_TL_0.AutoReverse = true; animBorder1_ET_0_AC_0_SB_TL_0.Duration = new Duration(new TimeSpan(0, 0, 0, 5, 0)); animBorder1_ET_0_AC_0_SB_TL_0.RepeatBehavior = RepeatBehavior.Forever; animBorder1_ET_0_AC_0_SB_TL_0.From = new ColorW(255, 255, 0, 255); animBorder1_ET_0_AC_0_SB_TL_0.To = new ColorW(0, 0, 255, 255); ExponentialEase animBorder1_ET_0_AC_0_SB_TL_0_EA = new ExponentialEase(); animBorder1_ET_0_AC_0_SB_TL_0.EasingFunction = animBorder1_ET_0_AC_0_SB_TL_0_EA; Storyboard.SetTargetName(animBorder1_ET_0_AC_0_SB_TL_0, "animBorder1"); Storyboard.SetTargetProperty(animBorder1_ET_0_AC_0_SB_TL_0, Border.BackgroundProperty); animBorder1_ET_0_AC_0_SB.Children.Add(animBorder1_ET_0_AC_0_SB_TL_0); Grid.SetColumn(animBorder1, 1); // animBorder2 element Border animBorder2 = new Border(); e_62.Children.Add(animBorder2); animBorder2.Name = "animBorder2"; animBorder2.Height = 50F; animBorder2.Width = 100F; animBorder2.Margin = new Thickness(50F, 35F, 50F, 35F); animBorder2.VerticalAlignment = VerticalAlignment.Top; EventTrigger animBorder2_ET_0 = new EventTrigger(Border.LoadedEvent, animBorder2); animBorder2.Triggers.Add(animBorder2_ET_0); BeginStoryboard animBorder2_ET_0_AC_0 = new BeginStoryboard(); animBorder2_ET_0_AC_0.Name = "animBorder2_ET_0_AC_0"; animBorder2_ET_0.AddAction(animBorder2_ET_0_AC_0); Storyboard animBorder2_ET_0_AC_0_SB = new Storyboard(); animBorder2_ET_0_AC_0.Storyboard = animBorder2_ET_0_AC_0_SB; animBorder2_ET_0_AC_0_SB.Name = "animBorder2_ET_0_AC_0_SB"; SolidColorBrushAnimation animBorder2_ET_0_AC_0_SB_TL_0 = new SolidColorBrushAnimation(); animBorder2_ET_0_AC_0_SB_TL_0.Name = "animBorder2_ET_0_AC_0_SB_TL_0"; animBorder2_ET_0_AC_0_SB_TL_0.AutoReverse = true; animBorder2_ET_0_AC_0_SB_TL_0.Duration = new Duration(new TimeSpan(0, 0, 0, 3, 0)); animBorder2_ET_0_AC_0_SB_TL_0.RepeatBehavior = RepeatBehavior.Forever; animBorder2_ET_0_AC_0_SB_TL_0.From = new ColorW(255, 0, 0, 255); animBorder2_ET_0_AC_0_SB_TL_0.To = new ColorW(255, 255, 255, 255); CubicEase animBorder2_ET_0_AC_0_SB_TL_0_EA = new CubicEase(); animBorder2_ET_0_AC_0_SB_TL_0.EasingFunction = animBorder2_ET_0_AC_0_SB_TL_0_EA; Storyboard.SetTargetName(animBorder2_ET_0_AC_0_SB_TL_0, "animBorder2"); Storyboard.SetTargetProperty(animBorder2_ET_0_AC_0_SB_TL_0, Border.BackgroundProperty); animBorder2_ET_0_AC_0_SB.Children.Add(animBorder2_ET_0_AC_0_SB_TL_0); FloatAnimation animBorder2_ET_0_AC_0_SB_TL_1 = new FloatAnimation(); animBorder2_ET_0_AC_0_SB_TL_1.Name = "animBorder2_ET_0_AC_0_SB_TL_1"; animBorder2_ET_0_AC_0_SB_TL_1.AutoReverse = true; animBorder2_ET_0_AC_0_SB_TL_1.Duration = new Duration(new TimeSpan(0, 0, 0, 4, 0)); animBorder2_ET_0_AC_0_SB_TL_1.RepeatBehavior = RepeatBehavior.Forever; animBorder2_ET_0_AC_0_SB_TL_1.From = 1F; animBorder2_ET_0_AC_0_SB_TL_1.To = 0F; Storyboard.SetTargetName(animBorder2_ET_0_AC_0_SB_TL_1, "animBorder2"); Storyboard.SetTargetProperty(animBorder2_ET_0_AC_0_SB_TL_1, Border.OpacityProperty); animBorder2_ET_0_AC_0_SB.Children.Add(animBorder2_ET_0_AC_0_SB_TL_1); Grid.SetColumn(animBorder2, 1); items.Add(e_61); // e_64 element TabItem e_64 = new TabItem(); e_64.Name = "e_64"; e_64.Header = "Tetris"; // e_65 element Border e_65 = new Border(); e_64.Content = e_65; e_65.Name = "e_65"; // e_66 element Grid e_66 = new Grid(); e_65.Child = e_66; e_66.Name = "e_66"; e_66.Margin = new Thickness(10F, 10F, 10F, 10F); RowDefinition row_e_66_0 = new RowDefinition(); row_e_66_0.Height = new GridLength(1F, GridUnitType.Auto); e_66.RowDefinitions.Add(row_e_66_0); RowDefinition row_e_66_1 = new RowDefinition(); row_e_66_1.Height = new GridLength(420F, GridUnitType.Pixel); e_66.RowDefinitions.Add(row_e_66_1); ColumnDefinition col_e_66_0 = new ColumnDefinition(); e_66.ColumnDefinitions.Add(col_e_66_0); ColumnDefinition col_e_66_1 = new ColumnDefinition(); e_66.ColumnDefinitions.Add(col_e_66_1); ColumnDefinition col_e_66_2 = new ColumnDefinition(); e_66.ColumnDefinitions.Add(col_e_66_2); // e_67 element StackPanel e_67 = new StackPanel(); e_66.Children.Add(e_67); e_67.Name = "e_67"; e_67.HorizontalAlignment = HorizontalAlignment.Right; e_67.Orientation = Orientation.Vertical; Grid.SetRow(e_67, 1); // e_68 element TextBlock e_68 = new TextBlock(); e_67.Children.Add(e_68); e_68.Name = "e_68"; e_68.Text = "Next"; // e_69 element Border e_69 = new Border(); e_67.Children.Add(e_69); e_69.Name = "e_69"; e_69.Height = 81F; e_69.Width = 81F; e_69.BorderBrush = new SolidColorBrush(new ColorW(255, 255, 255, 255)); e_69.BorderThickness = new Thickness(0F, 0F, 1F, 1F); // tetrisNextContainer1 element Canvas tetrisNextContainer1 = new Canvas(); e_69.Child = tetrisNextContainer1; tetrisNextContainer1.Name = "tetrisNextContainer1"; tetrisNextContainer1.Height = 80F; tetrisNextContainer1.Width = 80F; // e_70 element Border e_70 = new Border(); e_66.Children.Add(e_70); e_70.Name = "e_70"; e_70.Height = 401F; e_70.Width = 201F; e_70.BorderBrush = new SolidColorBrush(new ColorW(255, 255, 255, 255)); e_70.BorderThickness = new Thickness(0F, 0F, 1F, 1F); Grid.SetColumn(e_70, 1); Grid.SetRow(e_70, 1); // tetrisContainer1 element Canvas tetrisContainer1 = new Canvas(); e_70.Child = tetrisContainer1; tetrisContainer1.Name = "tetrisContainer1"; tetrisContainer1.Height = 400F; tetrisContainer1.Width = 200F; tetrisContainer1.HorizontalAlignment = HorizontalAlignment.Left; tetrisContainer1.VerticalAlignment = VerticalAlignment.Top; // e_71 element Grid e_71 = new Grid(); e_66.Children.Add(e_71); e_71.Name = "e_71"; RowDefinition row_e_71_0 = new RowDefinition(); row_e_71_0.Height = new GridLength(1F, GridUnitType.Auto); e_71.RowDefinitions.Add(row_e_71_0); RowDefinition row_e_71_1 = new RowDefinition(); row_e_71_1.Height = new GridLength(1F, GridUnitType.Auto); e_71.RowDefinitions.Add(row_e_71_1); ColumnDefinition col_e_71_0 = new ColumnDefinition(); col_e_71_0.Width = new GridLength(1F, GridUnitType.Auto); e_71.ColumnDefinitions.Add(col_e_71_0); ColumnDefinition col_e_71_1 = new ColumnDefinition(); col_e_71_1.Width = new GridLength(1F, GridUnitType.Star); e_71.ColumnDefinitions.Add(col_e_71_1); ColumnDefinition col_e_71_2 = new ColumnDefinition(); col_e_71_2.Width = new GridLength(1F, GridUnitType.Auto); e_71.ColumnDefinitions.Add(col_e_71_2); Grid.SetColumnSpan(e_71, 3); Binding binding_e_71_DataContext = new Binding("Tetris"); e_71.SetBinding(Grid.DataContextProperty, binding_e_71_DataContext); // e_72 element Button e_72 = new Button(); e_71.Children.Add(e_72); e_72.Name = "e_72"; e_72.Height = 30F; e_72.Content = "Start"; Grid.SetColumnSpan(e_72, 3); Binding binding_e_72_Command = new Binding("StartCommand"); e_72.SetBinding(Button.CommandProperty, binding_e_72_Command); // e_73 element Grid e_73 = new Grid(); e_71.Children.Add(e_73); e_73.Name = "e_73"; RowDefinition row_e_73_0 = new RowDefinition(); row_e_73_0.Height = new GridLength(1F, GridUnitType.Auto); e_73.RowDefinitions.Add(row_e_73_0); ColumnDefinition col_e_73_0 = new ColumnDefinition(); e_73.ColumnDefinitions.Add(col_e_73_0); ColumnDefinition col_e_73_1 = new ColumnDefinition(); col_e_73_1.Width = new GridLength(70F, GridUnitType.Pixel); e_73.ColumnDefinitions.Add(col_e_73_1); ColumnDefinition col_e_73_2 = new ColumnDefinition(); e_73.ColumnDefinitions.Add(col_e_73_2); Grid.SetColumn(e_73, 1); Grid.SetRow(e_73, 1); // spPlayer1 element StackPanel spPlayer1 = new StackPanel(); e_73.Children.Add(spPlayer1); spPlayer1.Name = "spPlayer1"; spPlayer1.HorizontalAlignment = HorizontalAlignment.Right; spPlayer1.Orientation = Orientation.Vertical; // e_74 element TextBlock e_74 = new TextBlock(); spPlayer1.Children.Add(e_74); e_74.Name = "e_74"; Binding binding_e_74_Text = new Binding("Score"); e_74.SetBinding(TextBlock.TextProperty, binding_e_74_Text); // e_75 element TextBlock e_75 = new TextBlock(); spPlayer1.Children.Add(e_75); e_75.Name = "e_75"; Binding binding_e_75_Text = new Binding("Lines"); e_75.SetBinding(TextBlock.TextProperty, binding_e_75_Text); // e_76 element TextBlock e_76 = new TextBlock(); spPlayer1.Children.Add(e_76); e_76.Name = "e_76"; Binding binding_e_76_Text = new Binding("Level"); e_76.SetBinding(TextBlock.TextProperty, binding_e_76_Text); // e_77 element StackPanel e_77 = new StackPanel(); e_73.Children.Add(e_77); e_77.Name = "e_77"; e_77.HorizontalAlignment = HorizontalAlignment.Center; e_77.Orientation = Orientation.Vertical; Grid.SetColumn(e_77, 1); // e_78 element TextBlock e_78 = new TextBlock(); e_77.Children.Add(e_78); e_78.Name = "e_78"; e_78.Text = "SCORE"; // e_79 element TextBlock e_79 = new TextBlock(); e_77.Children.Add(e_79); e_79.Name = "e_79"; e_79.Text = "LINES"; // e_80 element TextBlock e_80 = new TextBlock(); e_77.Children.Add(e_80); e_80.Name = "e_80"; e_80.Text = "LEVEL"; // e_81 element StackPanel e_81 = new StackPanel(); e_73.Children.Add(e_81); e_81.Name = "e_81"; e_81.HorizontalAlignment = HorizontalAlignment.Left; e_81.Orientation = Orientation.Horizontal; // e_82 element TextBlock e_82 = new TextBlock(); e_81.Children.Add(e_82); e_82.Name = "e_82"; e_82.Text = "Use A,S,D,W for left, down, right, rotate"; items.Add(e_64); // e_83 element TabItem e_83 = new TabItem(); e_83.Name = "e_83"; e_83.Header = "User Control"; // e_84 element UserControlTest e_84 = new UserControlTest(); e_83.Content = e_84; e_84.Name = "e_84"; items.Add(e_83); return items; }
public NumericTextBoxBuilderTests() { input = TextBoxBaseTestHelper.CreateNumericTextBox<double>(null); builder = new NumericTextBoxBuilder<double>(input); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.pnlSearch = new System.Windows.Forms.Panel(); this.btnCommit = new System.Windows.Forms.Button(); this.cboCategories = new System.Windows.Forms.ComboBox(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.txtYear = new GUI.TextBoxes.NumericTextBox(this.components); this.label2 = new System.Windows.Forms.Label(); this.txtTitle = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.txtDeveloper = new System.Windows.Forms.TextBox(); this.lblDeveloper = new System.Windows.Forms.Label(); this.lblYear = new System.Windows.Forms.Label(); this.lblTitle = new System.Windows.Forms.Label(); this.lblOnCategory = new System.Windows.Forms.Label(); this.lblSearchTitle = new System.Windows.Forms.Label(); this.pnlSearch.SuspendLayout(); this.SuspendLayout(); // // pnlSearch // this.pnlSearch.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pnlSearch.Controls.Add(this.btnCommit); this.pnlSearch.Controls.Add(this.cboCategories); this.pnlSearch.Controls.Add(this.label4); this.pnlSearch.Controls.Add(this.label3); this.pnlSearch.Controls.Add(this.txtYear); this.pnlSearch.Controls.Add(this.label2); this.pnlSearch.Controls.Add(this.txtTitle); this.pnlSearch.Controls.Add(this.label1); this.pnlSearch.Controls.Add(this.txtDeveloper); this.pnlSearch.Controls.Add(this.lblDeveloper); this.pnlSearch.Controls.Add(this.lblYear); this.pnlSearch.Controls.Add(this.lblTitle); this.pnlSearch.Controls.Add(this.lblOnCategory); this.pnlSearch.Controls.Add(this.lblSearchTitle); this.pnlSearch.Dock = System.Windows.Forms.DockStyle.Fill; this.pnlSearch.Location = new System.Drawing.Point(0, 0); this.pnlSearch.Margin = new System.Windows.Forms.Padding(0); this.pnlSearch.Name = "pnlSearch"; this.pnlSearch.Size = new System.Drawing.Size(1266, 859); this.pnlSearch.TabIndex = 1; this.pnlSearch.Paint += new System.Windows.Forms.PaintEventHandler(this.pnlSearch_Paint); // // btnCommit // this.btnCommit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnCommit.DialogResult = System.Windows.Forms.DialogResult.OK; this.btnCommit.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.btnCommit.Image = global::DosBox_Manager.Properties.Resources.magnifier; this.btnCommit.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; this.btnCommit.Location = new System.Drawing.Point(1175, 808); this.btnCommit.Name = "btnCommit"; this.btnCommit.Size = new System.Drawing.Size(77, 30); this.btnCommit.TabIndex = 47; this.btnCommit.Text = "Search"; this.btnCommit.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.btnCommit.UseVisualStyleBackColor = true; this.btnCommit.Click += new System.EventHandler(this.btnCommit_Click); // // cboCategories // this.cboCategories.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.cboCategories.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cboCategories.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.cboCategories.ForeColor = System.Drawing.Color.White; this.cboCategories.FormattingEnabled = true; this.cboCategories.Location = new System.Drawing.Point(22, 112); this.cboCategories.Name = "cboCategories"; this.cboCategories.Size = new System.Drawing.Size(260, 21); this.cboCategories.TabIndex = 3; this.cboCategories.KeyDown += new System.Windows.Forms.KeyEventHandler(this.panel_KeyDown); // // label4 // this.label4.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label4.Image = global::DosBox_Manager.Properties.Resources.brick; this.label4.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.label4.Location = new System.Drawing.Point(19, 91); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(21, 22); this.label4.TabIndex = 46; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label3 // this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label3.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label3.Image = global::DosBox_Manager.Properties.Resources.box_closed; this.label3.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.label3.Location = new System.Drawing.Point(1023, 34); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(21, 22); this.label3.TabIndex = 45; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // txtYear // this.txtYear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.txtYear.Location = new System.Drawing.Point(926, 56); this.txtYear.Name = "txtYear"; this.txtYear.Size = new System.Drawing.Size(85, 22); this.txtYear.TabIndex = 1; this.txtYear.KeyDown += new System.Windows.Forms.KeyEventHandler(this.panel_KeyDown); // // label2 // this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label2.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Image = global::DosBox_Manager.Properties.Resources.calendar; this.label2.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.label2.Location = new System.Drawing.Point(923, 34); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(21, 22); this.label2.TabIndex = 44; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // txtTitle // this.txtTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtTitle.Location = new System.Drawing.Point(22, 56); this.txtTitle.Name = "txtTitle"; this.txtTitle.Size = new System.Drawing.Size(889, 22); this.txtTitle.TabIndex = 0; this.txtTitle.KeyDown += new System.Windows.Forms.KeyEventHandler(this.panel_KeyDown); // // label1 // this.label1.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Image = global::DosBox_Manager.Properties.Resources.game_monitor; this.label1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.label1.Location = new System.Drawing.Point(19, 35); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(21, 22); this.label1.TabIndex = 43; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // txtDeveloper // this.txtDeveloper.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.txtDeveloper.Location = new System.Drawing.Point(1026, 56); this.txtDeveloper.Name = "txtDeveloper"; this.txtDeveloper.Size = new System.Drawing.Size(226, 22); this.txtDeveloper.TabIndex = 2; this.txtDeveloper.KeyDown += new System.Windows.Forms.KeyEventHandler(this.panel_KeyDown); // // lblDeveloper // this.lblDeveloper.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.lblDeveloper.AutoSize = true; this.lblDeveloper.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblDeveloper.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.lblDeveloper.Location = new System.Drawing.Point(1040, 39); this.lblDeveloper.Name = "lblDeveloper"; this.lblDeveloper.Size = new System.Drawing.Size(63, 13); this.lblDeveloper.TabIndex = 41; this.lblDeveloper.Text = "Developer:"; this.lblDeveloper.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // lblYear // this.lblYear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.lblYear.AutoSize = true; this.lblYear.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblYear.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.lblYear.Location = new System.Drawing.Point(941, 39); this.lblYear.Name = "lblYear"; this.lblYear.Size = new System.Drawing.Size(33, 13); this.lblYear.TabIndex = 39; this.lblYear.Text = "Year:"; this.lblYear.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // lblTitle // this.lblTitle.AutoSize = true; this.lblTitle.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblTitle.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.lblTitle.Location = new System.Drawing.Point(38, 39); this.lblTitle.Name = "lblTitle"; this.lblTitle.Size = new System.Drawing.Size(32, 13); this.lblTitle.TabIndex = 37; this.lblTitle.Text = "Title:"; this.lblTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblOnCategory // this.lblOnCategory.AutoSize = true; this.lblOnCategory.Location = new System.Drawing.Point(37, 95); this.lblOnCategory.Name = "lblOnCategory"; this.lblOnCategory.Size = new System.Drawing.Size(75, 13); this.lblOnCategory.TabIndex = 1; this.lblOnCategory.Text = "On Category:"; // // lblSearchTitle // this.lblSearchTitle.AutoSize = true; this.lblSearchTitle.Font = new System.Drawing.Font("Segoe UI Light", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblSearchTitle.Location = new System.Drawing.Point(3, 5); this.lblSearchTitle.Name = "lblSearchTitle"; this.lblSearchTitle.Size = new System.Drawing.Size(105, 21); this.lblSearchTitle.TabIndex = 0; this.lblSearchTitle.Text = "Search Games"; // // SearchGames // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.pnlSearch); this.Name = "SearchGames"; this.Size = new System.Drawing.Size(1266, 859); this.pnlSearch.ResumeLayout(false); this.pnlSearch.PerformLayout(); this.ResumeLayout(false); }
void angleConstrain_Click(object sender, EventArgs e) { System.Drawing.Point loc = _contextMenu.Location; if (_contextMenu != null) _contextMenu.Close(); using (Form angleForm = new Form { TopLevel = true, ShowInTaskbar = false, Size = new Size(100, 50), Text = "Angle", FormBorderStyle = FormBorderStyle.FixedToolWindow }) { NumericTextBox conAngle = new NumericTextBox { Text = _constrainedDistance.ToString(), TabStop = true, TabIndex = 0 }; conAngle.TextChanged += conAngle_TextChanged; conAngle.KeyDown += conAngle_KeyDown; FlowLayoutPanel flowPanel = new FlowLayoutPanel { Margin = new Padding(5), Size = _contextMenu.Size, FlowDirection = System.Windows.Forms.FlowDirection.LeftToRight }; flowPanel.Controls.Add(conAngle); flowPanel.Dock = DockStyle.Fill; angleForm.Controls.Add(flowPanel); angleForm.ShowDialog(); angleForm.Location = loc; } }
void distAngle_Click(object sender, EventArgs e) { _angle = 45.0; _distance = 10.0; System.Drawing.Point loc = _contextMenu.Location; if (_contextMenu != null) _contextMenu.Close(); using (Form distanceAngle = new Form { TopLevel = true, ShowInTaskbar = false, Size = new Size(220, 50), Text = "Distance / Angle", FormBorderStyle = FormBorderStyle.FixedToolWindow }) { _isDistAngleFormDisposed = false; distanceAngle.KeyDown += distanceAngle_KeyDown; distanceAngle.Disposed += distanceAngle_Disposed; NumericTextBox distance = new NumericTextBox { TabStop = true, TabIndex = 0 }; distance.TextChanged += distance_TextChanged; distance.KeyDown += distance_KeyDown; NumericTextBox angle = new NumericTextBox { TabStop = true, TabIndex = 1 }; angle.TextChanged += angle_TextChanged; angle.KeyDown += angle_KeyDown; FlowLayoutPanel flowPanel = new FlowLayoutPanel { Margin = new Padding(5), Size = _contextMenu.Size, FlowDirection = System.Windows.Forms.FlowDirection.LeftToRight }; flowPanel.Controls.Add(distance); flowPanel.Controls.Add(angle); flowPanel.Dock = DockStyle.Fill; distanceAngle.Controls.Add(flowPanel); distanceAngle.Location = loc; distanceAngle.ShowDialog(); // distanceAngle.Location = loc; } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmEmployee)); this.imageList1 = new System.Windows.Forms.ImageList(this.components); this.pnProfile = new System.Windows.Forms.Panel(); this.tabEmployeeProfile = new System.Windows.Forms.TabControl(); this.tpGeneralInfo = new System.Windows.Forms.TabPage(); this.grbProfessional = new System.Windows.Forms.GroupBox(); this.cboInformaticLevel = new System.Windows.Forms.LookupComboBox(); this.cboEnglishLevel = new System.Windows.Forms.LookupComboBox(); this.cboQualification = new System.Windows.Forms.LookupComboBox(); this.cboProfessionalLevel = new System.Windows.Forms.LookupComboBox(); this.lblQualification = new System.Windows.Forms.Label(); this.lblNganhHoc = new System.Windows.Forms.Label(); this.txtDiscipline = new System.Windows.Forms.TextBox(); this.lblInformaticLevel = new System.Windows.Forms.Label(); this.lblProfessionalLevel = new System.Windows.Forms.Label(); this.lblEnglishLevel = new System.Windows.Forms.Label(); this.txtOtherCertificate = new System.Windows.Forms.TextBox(); this.lblOtherCertificate = new System.Windows.Forms.Label(); this.grbEmployeeProfile = new System.Windows.Forms.GroupBox(); this.txtTemAddress = new System.Windows.Forms.TextBox(); this.label19 = new System.Windows.Forms.Label(); this.txtNoiCapCMND = new System.Windows.Forms.TextBox(); this.label18 = new System.Windows.Forms.Label(); this.txtFamilyConditionNumber = new System.Windows.Forms.TextBox(); this.label15 = new System.Windows.Forms.Label(); this.txtTaxID = new System.Windows.Forms.TextBox(); this.label14 = new System.Windows.Forms.Label(); this.cboInsuranceShelf = new System.Windows.Forms.CheckBox(); this.lblBarCode = new System.Windows.Forms.Label(); this.cboNationality = new System.Windows.Forms.ComboBox(); this.txtBarcode = new System.Windows.Forms.TextBox(); this.txtInsurenceID = new System.Windows.Forms.TextBox(); this.txtIdentityCard = new System.Windows.Forms.TextBox(); this.dtpStartDateInsurance = new System.Windows.Forms.DateTimePicker(); this.label6 = new System.Windows.Forms.Label(); this.lblNationality = new System.Windows.Forms.Label(); this.txtProvince = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); this.txtCommune = new System.Windows.Forms.TextBox(); this.label3 = new System.Windows.Forms.Label(); this.txtDistrict = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.cboReligious = new System.Windows.Forms.LookupComboBox(); this.cboPeople = new System.Windows.Forms.LookupComboBox(); this.cboMarriageStatus = new System.Windows.Forms.LookupComboBox(); this.cboGender = new System.Windows.Forms.LookupComboBox(); this.lblIdentityCard = new System.Windows.Forms.Label(); this.lblInsuranceID = new System.Windows.Forms.Label(); this.dtpIssue = new System.Windows.Forms.DateTimePicker(); this.lblIssue = new System.Windows.Forms.Label(); this.lblReligious = new System.Windows.Forms.Label(); this.lblPeople = new System.Windows.Forms.Label(); this.dtpDateOfBirth = new System.Windows.Forms.DateTimePicker(); this.txtPhone = new AMS.TextBox.NumericTextBox(); this.lblMarriageStatus = new System.Windows.Forms.Label(); this.txtResident = new System.Windows.Forms.TextBox(); this.lblResident = new System.Windows.Forms.Label(); this.lblBirthPlace = new System.Windows.Forms.Label(); this.txtBirthPlace = new System.Windows.Forms.TextBox(); this.txtEmail = new System.Windows.Forms.TextBox(); this.lblEmail = new System.Windows.Forms.Label(); this.btnChoosePic = new System.Windows.Forms.Button(); this.picEmployee = new System.Windows.Forms.PictureBox(); this.txtCardID = new System.Windows.Forms.TextBox(); this.lblCardID = new System.Windows.Forms.Label(); this.txtAddress = new System.Windows.Forms.TextBox(); this.txtEmployeeName = new System.Windows.Forms.TextBox(); this.lblPhone = new System.Windows.Forms.Label(); this.lblAddress = new System.Windows.Forms.Label(); this.lblGender = new System.Windows.Forms.Label(); this.lblBirthday = new System.Windows.Forms.Label(); this.lblEmployeeName = new System.Windows.Forms.Label(); this.tpSalary = new System.Windows.Forms.TabPage(); this.grbAllowance = new System.Windows.Forms.GroupBox(); this.chk_PCDL_CoDinhThang = new System.Windows.Forms.CheckBox(); this.txtTaskAllowance = new AMS.TextBox.CurrencyTextBox(); this.label17 = new System.Windows.Forms.Label(); this.txtJapaneseAllowance = new AMS.TextBox.CurrencyTextBox(); this.label16 = new System.Windows.Forms.Label(); this.txtIntimateAllowance = new AMS.TextBox.CurrencyTextBox(); this.label13 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.lblHarmfulAllowance = new System.Windows.Forms.Label(); this.txtPositionAllowance = new AMS.TextBox.CurrencyTextBox(); this.lblLunchAllowance = new System.Windows.Forms.Label(); this.txtLunchAllowance = new AMS.TextBox.CurrencyTextBox(); this.lblResponsibleAllowance = new System.Windows.Forms.Label(); this.txtJobAllowance = new AMS.TextBox.CurrencyTextBox(); this.grbBasicSalary = new System.Windows.Forms.GroupBox(); this.lblSalaryChangedDay = new System.Windows.Forms.Label(); this.txtSalaryDN = new System.Windows.Forms.TextBox(); this.txtSalaryNote = new System.Windows.Forms.TextBox(); this.lblSalaryNote = new System.Windows.Forms.Label(); this.lblSalaryDN = new System.Windows.Forms.Label(); this.txtBasicSalary = new AMS.TextBox.CurrencyTextBox(); this.lblBasicSalary = new System.Windows.Forms.Label(); this.btnChangeSalary = new System.Windows.Forms.Button(); this.lvwSalaryHistory = new XPTable.Models.Table(); this.cmSalary = new XPTable.Models.ColumnModel(); this.cSTT = new XPTable.Models.TextColumn(); this.cBasicSalary = new XPTable.Models.TextColumn(); this.cModifiedDate = new XPTable.Models.TextColumn(); this.cDecisionNumber = new XPTable.Models.TextColumn(); this.cNote = new XPTable.Models.TextColumn(); this.ctxSalary = new System.Windows.Forms.ContextMenu(); this.mnuEditSalaryHistory = new System.Windows.Forms.MenuItem(); this.mnuDeleteSalaryHistory = new System.Windows.Forms.MenuItem(); this.tmSalary = new XPTable.Models.TableModel(); this.dtpSalaryChangedDay = new System.Windows.Forms.DateTimePicker(); this.grbHiringInfo = new System.Windows.Forms.GroupBox(); this.dtpStopWork = new System.Windows.Forms.DateTimePicker(); this.chkStopWork = new System.Windows.Forms.CheckBox(); this.label8 = new System.Windows.Forms.CheckBox(); this.label5 = new System.Windows.Forms.CheckBox(); this.mtgcComboFixSalary = new MTGCComboBox(); this.label9 = new System.Windows.Forms.Label(); this.cboContract = new MTGCComboBox(); this.dtpStartTrial = new System.Windows.Forms.DateTimePicker(); this.dtpStartDate = new System.Windows.Forms.DateTimePicker(); this.dtpRecruitDate = new System.Windows.Forms.DateTimePicker(); this.lblRecruitDate = new System.Windows.Forms.Label(); this.lblContract = new System.Windows.Forms.Label(); this.tpDepartment = new System.Windows.Forms.TabPage(); this.groupBox4 = new System.Windows.Forms.GroupBox(); this.dtpChangePosition = new System.Windows.Forms.DateTimePicker(); this.label11 = new System.Windows.Forms.Label(); this.lvwPositionHistory = new XPTable.Models.Table(); this.cmPosition = new XPTable.Models.ColumnModel(); this.cPositionName = new XPTable.Models.TextColumn(); this.ctxPosition = new System.Windows.Forms.ContextMenu(); this.mnuEditPositionHistory = new System.Windows.Forms.MenuItem(); this.mnuDeletePositionHistory = new System.Windows.Forms.MenuItem(); this.tmPosition = new XPTable.Models.TableModel(); this.btnChangePosition = new System.Windows.Forms.Button(); this.cboPosition = new MTGCComboBox(); this.txtPositionNote = new System.Windows.Forms.TextBox(); this.lblPositionNote = new System.Windows.Forms.Label(); this.lblPositionDN = new System.Windows.Forms.Label(); this.lblPositionName = new System.Windows.Forms.Label(); this.txtPositionDN = new System.Windows.Forms.TextBox(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.dtpDepartment = new System.Windows.Forms.DateTimePicker(); this.label12 = new System.Windows.Forms.Label(); this.txtDepartmentDN = new System.Windows.Forms.TextBox(); this.btnChangeDepartment = new System.Windows.Forms.Button(); this.cboDepartment = new MTGCComboBox(); this.txtDepartmentNote = new System.Windows.Forms.TextBox(); this.lblDepartmentNote = new System.Windows.Forms.Label(); this.lblDepartmentDN = new System.Windows.Forms.Label(); this.lblDepartmentName = new System.Windows.Forms.Label(); this.lvwDepartmentHistory = new XPTable.Models.Table(); this.cmDepartment = new XPTable.Models.ColumnModel(); this.chSTT = new XPTable.Models.TextColumn(); this.chDepartmentName = new XPTable.Models.TextColumn(); this.chModifiedDate = new XPTable.Models.TextColumn(); this.chDecisionNumber = new XPTable.Models.TextColumn(); this.chNote = new XPTable.Models.TextColumn(); this.ctxDepartment = new System.Windows.Forms.ContextMenu(); this.mnuEditDepartmentHistory = new System.Windows.Forms.MenuItem(); this.mnuDeleteDepartmentHistory = new System.Windows.Forms.MenuItem(); this.tmDepartment = new XPTable.Models.TableModel(); this.tpOtherInfo = new System.Windows.Forms.TabPage(); this.dtpStopDate = new System.Windows.Forms.DateTimePicker(); this.label10 = new System.Windows.Forms.Label(); this.cbHospital = new MTGCComboBox(); this.label7 = new System.Windows.Forms.Label(); this.txtNote = new System.Windows.Forms.TextBox(); this.btnClose = new System.Windows.Forms.Button(); this.pnButtons = new System.Windows.Forms.Panel(); this.btnCancel = new System.Windows.Forms.Button(); this.txtRecordNum = new System.Windows.Forms.TextBox(); this.btnLast = new System.Windows.Forms.Button(); this.btnNext = new System.Windows.Forms.Button(); this.btnPrevious = new System.Windows.Forms.Button(); this.btnFirst = new System.Windows.Forms.Button(); this.btnSave = new System.Windows.Forms.Button(); this.errorProvider1 = new System.Windows.Forms.ErrorProvider(this.components); this.pnProfile.SuspendLayout(); this.tabEmployeeProfile.SuspendLayout(); this.tpGeneralInfo.SuspendLayout(); this.grbProfessional.SuspendLayout(); this.grbEmployeeProfile.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picEmployee)).BeginInit(); this.tpSalary.SuspendLayout(); this.grbAllowance.SuspendLayout(); this.grbBasicSalary.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.lvwSalaryHistory)).BeginInit(); this.grbHiringInfo.SuspendLayout(); this.tpDepartment.SuspendLayout(); this.groupBox4.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.lvwPositionHistory)).BeginInit(); this.groupBox2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.lvwDepartmentHistory)).BeginInit(); this.tpOtherInfo.SuspendLayout(); this.pnButtons.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).BeginInit(); this.SuspendLayout(); // // imageList1 // this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); this.imageList1.TransparentColor = System.Drawing.Color.Transparent; this.imageList1.Images.SetKeyName(0, ""); this.imageList1.Images.SetKeyName(1, ""); this.imageList1.Images.SetKeyName(2, ""); this.imageList1.Images.SetKeyName(3, ""); this.imageList1.Images.SetKeyName(4, ""); this.imageList1.Images.SetKeyName(5, ""); // // pnProfile // this.pnProfile.Controls.Add(this.tabEmployeeProfile); this.pnProfile.Dock = System.Windows.Forms.DockStyle.Fill; this.pnProfile.Location = new System.Drawing.Point(0, 0); this.pnProfile.Name = "pnProfile"; this.pnProfile.Size = new System.Drawing.Size(644, 576); this.pnProfile.TabIndex = 3; // // tabEmployeeProfile // this.tabEmployeeProfile.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.tabEmployeeProfile.Controls.Add(this.tpGeneralInfo); this.tabEmployeeProfile.Controls.Add(this.tpSalary); this.tabEmployeeProfile.Controls.Add(this.tpDepartment); this.tabEmployeeProfile.Controls.Add(this.tpOtherInfo); this.tabEmployeeProfile.Location = new System.Drawing.Point(0, 0); this.tabEmployeeProfile.Name = "tabEmployeeProfile"; this.tabEmployeeProfile.SelectedIndex = 0; this.tabEmployeeProfile.Size = new System.Drawing.Size(644, 578); this.tabEmployeeProfile.TabIndex = 0; // // tpGeneralInfo // this.tpGeneralInfo.Controls.Add(this.grbProfessional); this.tpGeneralInfo.Controls.Add(this.grbEmployeeProfile); this.tpGeneralInfo.Location = new System.Drawing.Point(4, 22); this.tpGeneralInfo.Name = "tpGeneralInfo"; this.tpGeneralInfo.Size = new System.Drawing.Size(636, 552); this.tpGeneralInfo.TabIndex = 0; this.tpGeneralInfo.Text = "Thông tin chung"; // // grbProfessional // this.grbProfessional.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.grbProfessional.Controls.Add(this.cboInformaticLevel); this.grbProfessional.Controls.Add(this.cboEnglishLevel); this.grbProfessional.Controls.Add(this.cboQualification); this.grbProfessional.Controls.Add(this.cboProfessionalLevel); this.grbProfessional.Controls.Add(this.lblQualification); this.grbProfessional.Controls.Add(this.lblNganhHoc); this.grbProfessional.Controls.Add(this.txtDiscipline); this.grbProfessional.Controls.Add(this.lblInformaticLevel); this.grbProfessional.Controls.Add(this.lblProfessionalLevel); this.grbProfessional.Controls.Add(this.lblEnglishLevel); this.grbProfessional.Controls.Add(this.txtOtherCertificate); this.grbProfessional.Controls.Add(this.lblOtherCertificate); this.grbProfessional.FlatStyle = System.Windows.Forms.FlatStyle.System; this.grbProfessional.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.grbProfessional.Location = new System.Drawing.Point(5, 476); this.grbProfessional.Name = "grbProfessional"; this.grbProfessional.Size = new System.Drawing.Size(628, 72); this.grbProfessional.TabIndex = 9; this.grbProfessional.TabStop = false; this.grbProfessional.Text = "Học vấn"; // // cboInformaticLevel // this.cboInformaticLevel.AllowTypeAllSymbols = false; this.cboInformaticLevel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.cboInformaticLevel.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cboInformaticLevel.ItemHeight = 13; this.cboInformaticLevel.Items.AddRange(new object[] { "Chưa biết", "Cơ bản", "Thành thạo"}); this.cboInformaticLevel.Location = new System.Drawing.Point(540, 40); this.cboInformaticLevel.Name = "cboInformaticLevel"; this.cboInformaticLevel.Size = new System.Drawing.Size(88, 21); this.cboInformaticLevel.TabIndex = 5; // // cboEnglishLevel // this.cboEnglishLevel.AllowTypeAllSymbols = false; this.cboEnglishLevel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.cboEnglishLevel.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cboEnglishLevel.ItemHeight = 13; this.cboEnglishLevel.Items.AddRange(new object[] { "Tiếng Anh", "Tiếng Nhật", "Tiếng Trung"}); this.cboEnglishLevel.Location = new System.Drawing.Point(540, 16); this.cboEnglishLevel.Name = "cboEnglishLevel"; this.cboEnglishLevel.Size = new System.Drawing.Size(88, 21); this.cboEnglishLevel.TabIndex = 2; // // cboQualification // this.cboQualification.AllowTypeAllSymbols = false; this.cboQualification.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cboQualification.ItemHeight = 13; this.cboQualification.Items.AddRange(new object[] { "Không có", "Trung học cơ sở 9/12", "Tú tài (12/12)", "Trung cấp", "Cử nhân", "Kỹ sư", "Thạc sỹ", "Tiến sỹ"}); this.cboQualification.Location = new System.Drawing.Point(312, 16); this.cboQualification.Name = "cboQualification"; this.cboQualification.Size = new System.Drawing.Size(120, 21); this.cboQualification.TabIndex = 1; // // cboProfessionalLevel // this.cboProfessionalLevel.AllowTypeAllSymbols = false; this.cboProfessionalLevel.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cboProfessionalLevel.Items.AddRange(new object[] { "Phổ thông", "Trung cấp", "Cao đẳng", "Đại học", "Sau đại học"}); this.cboProfessionalLevel.Location = new System.Drawing.Point(104, 16); this.cboProfessionalLevel.Name = "cboProfessionalLevel"; this.cboProfessionalLevel.Size = new System.Drawing.Size(104, 21); this.cboProfessionalLevel.TabIndex = 0; // // lblQualification // this.lblQualification.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblQualification.Location = new System.Drawing.Point(216, 16); this.lblQualification.Name = "lblQualification"; this.lblQualification.Size = new System.Drawing.Size(96, 24); this.lblQualification.TabIndex = 48; this.lblQualification.Text = "Bằng cấp"; this.lblQualification.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblNganhHoc // this.lblNganhHoc.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblNganhHoc.Location = new System.Drawing.Point(8, 40); this.lblNganhHoc.Name = "lblNganhHoc"; this.lblNganhHoc.Size = new System.Drawing.Size(90, 24); this.lblNganhHoc.TabIndex = 46; this.lblNganhHoc.Text = "Ngành học"; this.lblNganhHoc.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // txtDiscipline // this.txtDiscipline.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.txtDiscipline.Location = new System.Drawing.Point(104, 40); this.txtDiscipline.Name = "txtDiscipline"; this.txtDiscipline.Size = new System.Drawing.Size(104, 20); this.txtDiscipline.TabIndex = 3; // // lblInformaticLevel // this.lblInformaticLevel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.lblInformaticLevel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblInformaticLevel.Location = new System.Drawing.Point(484, 40); this.lblInformaticLevel.Name = "lblInformaticLevel"; this.lblInformaticLevel.Size = new System.Drawing.Size(64, 24); this.lblInformaticLevel.TabIndex = 33; this.lblInformaticLevel.Text = "Tin học"; this.lblInformaticLevel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblProfessionalLevel // this.lblProfessionalLevel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblProfessionalLevel.Location = new System.Drawing.Point(8, 16); this.lblProfessionalLevel.Name = "lblProfessionalLevel"; this.lblProfessionalLevel.Size = new System.Drawing.Size(90, 24); this.lblProfessionalLevel.TabIndex = 29; this.lblProfessionalLevel.Text = "Trình độ văn hóa"; this.lblProfessionalLevel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblEnglishLevel // this.lblEnglishLevel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.lblEnglishLevel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblEnglishLevel.Location = new System.Drawing.Point(484, 16); this.lblEnglishLevel.Name = "lblEnglishLevel"; this.lblEnglishLevel.Size = new System.Drawing.Size(64, 24); this.lblEnglishLevel.TabIndex = 31; this.lblEnglishLevel.Text = "Ngoại ngữ"; this.lblEnglishLevel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // txtOtherCertificate // this.txtOtherCertificate.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.txtOtherCertificate.Location = new System.Drawing.Point(312, 40); this.txtOtherCertificate.Name = "txtOtherCertificate"; this.txtOtherCertificate.Size = new System.Drawing.Size(120, 20); this.txtOtherCertificate.TabIndex = 4; // // lblOtherCertificate // this.lblOtherCertificate.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblOtherCertificate.Location = new System.Drawing.Point(216, 40); this.lblOtherCertificate.Name = "lblOtherCertificate"; this.lblOtherCertificate.Size = new System.Drawing.Size(96, 24); this.lblOtherCertificate.TabIndex = 42; this.lblOtherCertificate.Text = "Chứng chỉ khác"; this.lblOtherCertificate.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // grbEmployeeProfile // this.grbEmployeeProfile.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.grbEmployeeProfile.Controls.Add(this.txtTemAddress); this.grbEmployeeProfile.Controls.Add(this.label19); this.grbEmployeeProfile.Controls.Add(this.txtNoiCapCMND); this.grbEmployeeProfile.Controls.Add(this.label18); this.grbEmployeeProfile.Controls.Add(this.txtFamilyConditionNumber); this.grbEmployeeProfile.Controls.Add(this.label15); this.grbEmployeeProfile.Controls.Add(this.txtTaxID); this.grbEmployeeProfile.Controls.Add(this.label14); this.grbEmployeeProfile.Controls.Add(this.cboInsuranceShelf); this.grbEmployeeProfile.Controls.Add(this.lblBarCode); this.grbEmployeeProfile.Controls.Add(this.cboNationality); this.grbEmployeeProfile.Controls.Add(this.txtBarcode); this.grbEmployeeProfile.Controls.Add(this.txtInsurenceID); this.grbEmployeeProfile.Controls.Add(this.txtIdentityCard); this.grbEmployeeProfile.Controls.Add(this.dtpStartDateInsurance); this.grbEmployeeProfile.Controls.Add(this.label6); this.grbEmployeeProfile.Controls.Add(this.lblNationality); this.grbEmployeeProfile.Controls.Add(this.txtProvince); this.grbEmployeeProfile.Controls.Add(this.label4); this.grbEmployeeProfile.Controls.Add(this.txtCommune); this.grbEmployeeProfile.Controls.Add(this.label3); this.grbEmployeeProfile.Controls.Add(this.txtDistrict); this.grbEmployeeProfile.Controls.Add(this.label2); this.grbEmployeeProfile.Controls.Add(this.cboReligious); this.grbEmployeeProfile.Controls.Add(this.cboPeople); this.grbEmployeeProfile.Controls.Add(this.cboMarriageStatus); this.grbEmployeeProfile.Controls.Add(this.cboGender); this.grbEmployeeProfile.Controls.Add(this.lblIdentityCard); this.grbEmployeeProfile.Controls.Add(this.lblInsuranceID); this.grbEmployeeProfile.Controls.Add(this.dtpIssue); this.grbEmployeeProfile.Controls.Add(this.lblIssue); this.grbEmployeeProfile.Controls.Add(this.lblReligious); this.grbEmployeeProfile.Controls.Add(this.lblPeople); this.grbEmployeeProfile.Controls.Add(this.dtpDateOfBirth); this.grbEmployeeProfile.Controls.Add(this.txtPhone); this.grbEmployeeProfile.Controls.Add(this.lblMarriageStatus); this.grbEmployeeProfile.Controls.Add(this.txtResident); this.grbEmployeeProfile.Controls.Add(this.lblResident); this.grbEmployeeProfile.Controls.Add(this.lblBirthPlace); this.grbEmployeeProfile.Controls.Add(this.txtBirthPlace); this.grbEmployeeProfile.Controls.Add(this.txtEmail); this.grbEmployeeProfile.Controls.Add(this.lblEmail); this.grbEmployeeProfile.Controls.Add(this.btnChoosePic); this.grbEmployeeProfile.Controls.Add(this.picEmployee); this.grbEmployeeProfile.Controls.Add(this.txtCardID); this.grbEmployeeProfile.Controls.Add(this.lblCardID); this.grbEmployeeProfile.Controls.Add(this.txtAddress); this.grbEmployeeProfile.Controls.Add(this.txtEmployeeName); this.grbEmployeeProfile.Controls.Add(this.lblPhone); this.grbEmployeeProfile.Controls.Add(this.lblAddress); this.grbEmployeeProfile.Controls.Add(this.lblGender); this.grbEmployeeProfile.Controls.Add(this.lblBirthday); this.grbEmployeeProfile.Controls.Add(this.lblEmployeeName); this.grbEmployeeProfile.FlatStyle = System.Windows.Forms.FlatStyle.System; this.grbEmployeeProfile.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.grbEmployeeProfile.Location = new System.Drawing.Point(8, 8); this.grbEmployeeProfile.Name = "grbEmployeeProfile"; this.grbEmployeeProfile.Size = new System.Drawing.Size(620, 462); this.grbEmployeeProfile.TabIndex = 0; this.grbEmployeeProfile.TabStop = false; this.grbEmployeeProfile.Text = "Thông tin chung"; // // txtTemAddress // this.txtTemAddress.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.txtTemAddress.Location = new System.Drawing.Point(104, 188); this.txtTemAddress.Name = "txtTemAddress"; this.txtTemAddress.Size = new System.Drawing.Size(328, 20); this.txtTemAddress.TabIndex = 7; // // label19 // this.label19.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.label19.Location = new System.Drawing.Point(8, 183); this.label19.Name = "label19"; this.label19.Size = new System.Drawing.Size(90, 24); this.label19.TabIndex = 93; this.label19.Text = "Địa chỉ tạm trú"; this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // txtNoiCapCMND // this.txtNoiCapCMND.Location = new System.Drawing.Point(462, 324); this.txtNoiCapCMND.Multiline = true; this.txtNoiCapCMND.Name = "txtNoiCapCMND"; this.txtNoiCapCMND.Size = new System.Drawing.Size(152, 20); this.txtNoiCapCMND.TabIndex = 18; // // label18 // this.label18.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.label18.Location = new System.Drawing.Point(417, 320); this.label18.Name = "label18"; this.label18.Size = new System.Drawing.Size(48, 24); this.label18.TabIndex = 92; this.label18.Text = "Nơi cấp"; this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // txtFamilyConditionNumber // this.txtFamilyConditionNumber.Location = new System.Drawing.Point(328, 425); this.txtFamilyConditionNumber.Name = "txtFamilyConditionNumber"; this.txtFamilyConditionNumber.Size = new System.Drawing.Size(92, 20); this.txtFamilyConditionNumber.TabIndex = 25; this.txtFamilyConditionNumber.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.KeyPressInteger); // // label15 // this.label15.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.label15.Location = new System.Drawing.Point(238, 421); this.label15.Name = "label15"; this.label15.Size = new System.Drawing.Size(96, 24); this.label15.TabIndex = 91; this.label15.Text = "Số người GTGC"; this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // txtTaxID // this.txtTaxID.Location = new System.Drawing.Point(104, 425); this.txtTaxID.Name = "txtTaxID"; this.txtTaxID.Size = new System.Drawing.Size(120, 20); this.txtTaxID.TabIndex = 24; this.txtTaxID.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.KeyPressInteger); // // label14 // this.label14.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.label14.Location = new System.Drawing.Point(10, 421); this.label14.Name = "label14"; this.label14.Size = new System.Drawing.Size(96, 24); this.label14.TabIndex = 89; this.label14.Text = "Mã số thuế"; this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // cboInsuranceShelf // this.cboInsuranceShelf.Location = new System.Drawing.Point(440, 387); this.cboInsuranceShelf.Name = "cboInsuranceShelf"; this.cboInsuranceShelf.Size = new System.Drawing.Size(112, 24); this.cboInsuranceShelf.TabIndex = 23; this.cboInsuranceShelf.Text = "Tự đóng BHXH"; // // lblBarCode // this.lblBarCode.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblBarCode.Location = new System.Drawing.Point(443, 422); this.lblBarCode.Name = "lblBarCode"; this.lblBarCode.Size = new System.Drawing.Size(56, 24); this.lblBarCode.TabIndex = 46; this.lblBarCode.Text = "Mã vạch"; this.lblBarCode.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // cboNationality // this.cboNationality.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cboNationality.Items.AddRange(new object[] { "Việt Nam", "Nhật", "Hàn Quốc", "Trung Quốc", "Thái Lan", "Lào", "Các nước khác"}); this.cboNationality.Location = new System.Drawing.Point(106, 255); this.cboNationality.Name = "cboNationality"; this.cboNationality.Size = new System.Drawing.Size(120, 21); this.cboNationality.TabIndex = 12; // // txtBarcode // this.txtBarcode.BackColor = System.Drawing.SystemColors.Window; this.txtBarcode.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.txtBarcode.Location = new System.Drawing.Point(500, 425); this.txtBarcode.MaxLength = 8; this.txtBarcode.Name = "txtBarcode"; this.txtBarcode.ReadOnly = true; this.txtBarcode.Size = new System.Drawing.Size(114, 20); this.txtBarcode.TabIndex = 26; this.txtBarcode.TabStop = false; // // txtInsurenceID // this.txtInsurenceID.Location = new System.Drawing.Point(104, 391); this.txtInsurenceID.Name = "txtInsurenceID"; this.txtInsurenceID.Size = new System.Drawing.Size(120, 20); this.txtInsurenceID.TabIndex = 21; // // txtIdentityCard // this.txtIdentityCard.Location = new System.Drawing.Point(106, 324); this.txtIdentityCard.Name = "txtIdentityCard"; this.txtIdentityCard.Size = new System.Drawing.Size(120, 20); this.txtIdentityCard.TabIndex = 16; this.txtIdentityCard.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.KeyPressInteger); // // dtpStartDateInsurance // this.dtpStartDateInsurance.CustomFormat = "dd/MM/yyyy"; this.dtpStartDateInsurance.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.dtpStartDateInsurance.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.dtpStartDateInsurance.Location = new System.Drawing.Point(300, 391); this.dtpStartDateInsurance.Name = "dtpStartDateInsurance"; this.dtpStartDateInsurance.Size = new System.Drawing.Size(120, 20); this.dtpStartDateInsurance.TabIndex = 22; // // label6 // this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.label6.Location = new System.Drawing.Point(240, 392); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(77, 20); this.label6.TabIndex = 21; this.label6.Text = "Ngày đóng BHXH"; this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblNationality // this.lblNationality.Location = new System.Drawing.Point(10, 252); this.lblNationality.Name = "lblNationality"; this.lblNationality.Size = new System.Drawing.Size(90, 24); this.lblNationality.TabIndex = 68; this.lblNationality.Text = "Quốc tịch"; this.lblNationality.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // txtProvince // this.txtProvince.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.txtProvince.Location = new System.Drawing.Point(500, 222); this.txtProvince.Name = "txtProvince"; this.txtProvince.Size = new System.Drawing.Size(114, 20); this.txtProvince.TabIndex = 11; // // label4 // this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.label4.Location = new System.Drawing.Point(414, 218); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(92, 24); this.label4.TabIndex = 79; this.label4.Text = "Tỉnh/thành phố"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // txtCommune // this.txtCommune.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.txtCommune.Location = new System.Drawing.Point(104, 222); this.txtCommune.Name = "txtCommune"; this.txtCommune.Size = new System.Drawing.Size(120, 20); this.txtCommune.TabIndex = 9; // // label3 // this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.label3.Location = new System.Drawing.Point(10, 218); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(96, 24); this.label3.TabIndex = 77; this.label3.Text = "Phường/xã"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // txtDistrict // this.txtDistrict.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.txtDistrict.Location = new System.Drawing.Point(300, 222); this.txtDistrict.Name = "txtDistrict"; this.txtDistrict.Size = new System.Drawing.Size(108, 20); this.txtDistrict.TabIndex = 10; // // label2 // this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.label2.Location = new System.Drawing.Point(232, 218); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(80, 24); this.label2.TabIndex = 75; this.label2.Text = "Quận/huyện"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // cboReligious // this.cboReligious.AllowTypeAllSymbols = false; this.cboReligious.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cboReligious.Items.AddRange(new object[] { "Không", "Thiên chúa giáo", "Khác.."}); this.cboReligious.Location = new System.Drawing.Point(300, 359); this.cboReligious.Name = "cboReligious"; this.cboReligious.Size = new System.Drawing.Size(120, 21); this.cboReligious.TabIndex = 20; // // cboPeople // this.cboPeople.AllowTypeAllSymbols = false; this.cboPeople.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cboPeople.Items.AddRange(new object[] { "Kinh", "Thái", "Tày", "Khác..."}); this.cboPeople.Location = new System.Drawing.Point(104, 356); this.cboPeople.Name = "cboPeople"; this.cboPeople.Size = new System.Drawing.Size(120, 21); this.cboPeople.TabIndex = 19; // // cboMarriageStatus // this.cboMarriageStatus.AllowTypeAllSymbols = false; this.cboMarriageStatus.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cboMarriageStatus.Items.AddRange(new object[] { "Độc thân", "Đã có gia đình"}); this.cboMarriageStatus.Location = new System.Drawing.Point(300, 255); this.cboMarriageStatus.Name = "cboMarriageStatus"; this.cboMarriageStatus.Size = new System.Drawing.Size(108, 21); this.cboMarriageStatus.TabIndex = 13; // // cboGender // this.cboGender.AllowTypeAllSymbols = false; this.cboGender.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cboGender.Items.AddRange(new object[] { "Nam", "Nữ"}); this.cboGender.Location = new System.Drawing.Point(328, 52); this.cboGender.Name = "cboGender"; this.cboGender.Size = new System.Drawing.Size(104, 21); this.cboGender.TabIndex = 3; // // lblIdentityCard // this.lblIdentityCard.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblIdentityCard.Location = new System.Drawing.Point(10, 320); this.lblIdentityCard.Name = "lblIdentityCard"; this.lblIdentityCard.Size = new System.Drawing.Size(90, 24); this.lblIdentityCard.TabIndex = 68; this.lblIdentityCard.Text = "Số CMND"; this.lblIdentityCard.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblInsuranceID // this.lblInsuranceID.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblInsuranceID.Location = new System.Drawing.Point(10, 387); this.lblInsuranceID.Name = "lblInsuranceID"; this.lblInsuranceID.Size = new System.Drawing.Size(96, 24); this.lblInsuranceID.TabIndex = 69; this.lblInsuranceID.Text = "Số sổ BHXH"; this.lblInsuranceID.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // dtpIssue // this.dtpIssue.CustomFormat = "dd/MM/yyyy"; this.dtpIssue.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.dtpIssue.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.dtpIssue.Location = new System.Drawing.Point(300, 324); this.dtpIssue.Name = "dtpIssue"; this.dtpIssue.Size = new System.Drawing.Size(96, 20); this.dtpIssue.TabIndex = 17; this.dtpIssue.Validating += new System.ComponentModel.CancelEventHandler(this.dtpIssue_Validating); // // lblIssue // this.lblIssue.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblIssue.Location = new System.Drawing.Point(240, 320); this.lblIssue.Name = "lblIssue"; this.lblIssue.Size = new System.Drawing.Size(60, 24); this.lblIssue.TabIndex = 70; this.lblIssue.Text = "Ngày cấp"; this.lblIssue.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblReligious // this.lblReligious.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblReligious.Location = new System.Drawing.Point(240, 356); this.lblReligious.Name = "lblReligious"; this.lblReligious.Size = new System.Drawing.Size(62, 24); this.lblReligious.TabIndex = 62; this.lblReligious.Text = "Tôn giáo"; this.lblReligious.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblPeople // this.lblPeople.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblPeople.Location = new System.Drawing.Point(10, 353); this.lblPeople.Name = "lblPeople"; this.lblPeople.Size = new System.Drawing.Size(96, 24); this.lblPeople.TabIndex = 60; this.lblPeople.Text = "Dân tộc"; this.lblPeople.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // dtpDateOfBirth // this.dtpDateOfBirth.CustomFormat = "dd/MM/yyyy"; this.dtpDateOfBirth.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.dtpDateOfBirth.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.dtpDateOfBirth.Location = new System.Drawing.Point(104, 53); this.dtpDateOfBirth.Name = "dtpDateOfBirth"; this.dtpDateOfBirth.Size = new System.Drawing.Size(104, 20); this.dtpDateOfBirth.TabIndex = 2; this.dtpDateOfBirth.Validating += new System.ComponentModel.CancelEventHandler(this.dtpDateOfBirth_Validating); // // txtPhone // this.txtPhone.AllowNegative = false; this.txtPhone.DigitsInGroup = 0; this.txtPhone.Flags = 65536; this.txtPhone.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.txtPhone.Location = new System.Drawing.Point(106, 290); this.txtPhone.MaxDecimalPlaces = 4; this.txtPhone.MaxWholeDigits = 11; this.txtPhone.Name = "txtPhone"; this.txtPhone.Prefix = ""; this.txtPhone.RangeMax = 1.7976931348623157E+308; this.txtPhone.RangeMin = -1.7976931348623157E+308; this.txtPhone.Size = new System.Drawing.Size(120, 20); this.txtPhone.TabIndex = 14; // // lblMarriageStatus // this.lblMarriageStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblMarriageStatus.Location = new System.Drawing.Point(240, 252); this.lblMarriageStatus.Name = "lblMarriageStatus"; this.lblMarriageStatus.Size = new System.Drawing.Size(56, 24); this.lblMarriageStatus.TabIndex = 56; this.lblMarriageStatus.Text = "Hôn nhân"; this.lblMarriageStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // txtResident // this.txtResident.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.txtResident.Location = new System.Drawing.Point(104, 119); this.txtResident.Name = "txtResident"; this.txtResident.Size = new System.Drawing.Size(328, 20); this.txtResident.TabIndex = 5; // // lblResident // this.lblResident.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblResident.Location = new System.Drawing.Point(10, 115); this.lblResident.Name = "lblResident"; this.lblResident.Size = new System.Drawing.Size(90, 24); this.lblResident.TabIndex = 52; this.lblResident.Text = "Hộ khẩu"; this.lblResident.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblBirthPlace // this.lblBirthPlace.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblBirthPlace.Location = new System.Drawing.Point(10, 82); this.lblBirthPlace.Name = "lblBirthPlace"; this.lblBirthPlace.Size = new System.Drawing.Size(90, 24); this.lblBirthPlace.TabIndex = 27; this.lblBirthPlace.Text = "Nơi sinh"; this.lblBirthPlace.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // txtBirthPlace // this.txtBirthPlace.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.txtBirthPlace.Location = new System.Drawing.Point(104, 86); this.txtBirthPlace.Name = "txtBirthPlace"; this.txtBirthPlace.Size = new System.Drawing.Size(328, 20); this.txtBirthPlace.TabIndex = 4; // // txtEmail // this.txtEmail.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.txtEmail.Location = new System.Drawing.Point(300, 290); this.txtEmail.Name = "txtEmail"; this.txtEmail.Size = new System.Drawing.Size(206, 20); this.txtEmail.TabIndex = 15; // // lblEmail // this.lblEmail.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblEmail.Location = new System.Drawing.Point(240, 286); this.lblEmail.Name = "lblEmail"; this.lblEmail.Size = new System.Drawing.Size(60, 24); this.lblEmail.TabIndex = 15; this.lblEmail.Text = "Email"; this.lblEmail.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // btnChoosePic // this.btnChoosePic.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.btnChoosePic.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnChoosePic.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.btnChoosePic.Location = new System.Drawing.Point(440, 184); this.btnChoosePic.Name = "btnChoosePic"; this.btnChoosePic.Size = new System.Drawing.Size(174, 23); this.btnChoosePic.TabIndex = 8; this.btnChoosePic.Text = "Chọn ảnh..."; this.btnChoosePic.Click += new System.EventHandler(this.btnChoosePic_Click); // // picEmployee // this.picEmployee.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.picEmployee.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.picEmployee.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.picEmployee.Location = new System.Drawing.Point(441, 15); this.picEmployee.Name = "picEmployee"; this.picEmployee.Size = new System.Drawing.Size(173, 167); this.picEmployee.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.picEmployee.TabIndex = 13; this.picEmployee.TabStop = false; // // txtCardID // this.txtCardID.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.txtCardID.Location = new System.Drawing.Point(328, 20); this.txtCardID.MaxLength = 10; this.txtCardID.Name = "txtCardID"; this.txtCardID.Size = new System.Drawing.Size(104, 20); this.txtCardID.TabIndex = 1; this.txtCardID.Validating += new System.ComponentModel.CancelEventHandler(this.txtCardID_Validating); // // lblCardID // this.lblCardID.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblCardID.Location = new System.Drawing.Point(280, 16); this.lblCardID.Name = "lblCardID"; this.lblCardID.Size = new System.Drawing.Size(48, 24); this.lblCardID.TabIndex = 10; this.lblCardID.Text = "Mã thẻ"; this.lblCardID.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // txtAddress // this.txtAddress.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.txtAddress.Location = new System.Drawing.Point(104, 154); this.txtAddress.Name = "txtAddress"; this.txtAddress.Size = new System.Drawing.Size(328, 20); this.txtAddress.TabIndex = 6; // // txtEmployeeName // this.txtEmployeeName.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.txtEmployeeName.Location = new System.Drawing.Point(104, 20); this.txtEmployeeName.Name = "txtEmployeeName"; this.txtEmployeeName.Size = new System.Drawing.Size(160, 20); this.txtEmployeeName.TabIndex = 0; this.txtEmployeeName.Validating += new System.ComponentModel.CancelEventHandler(this.txtEmployeeName_Validating); // // lblPhone // this.lblPhone.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblPhone.Location = new System.Drawing.Point(10, 286); this.lblPhone.Name = "lblPhone"; this.lblPhone.Size = new System.Drawing.Size(90, 24); this.lblPhone.TabIndex = 4; this.lblPhone.Text = "Điện thoại"; this.lblPhone.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblAddress // this.lblAddress.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblAddress.Location = new System.Drawing.Point(10, 148); this.lblAddress.Name = "lblAddress"; this.lblAddress.Size = new System.Drawing.Size(96, 26); this.lblAddress.TabIndex = 3; this.lblAddress.Text = "Địa chỉ thường trú"; this.lblAddress.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblGender // this.lblGender.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblGender.Location = new System.Drawing.Point(280, 49); this.lblGender.Name = "lblGender"; this.lblGender.Size = new System.Drawing.Size(54, 24); this.lblGender.TabIndex = 2; this.lblGender.Text = "Giới tính"; this.lblGender.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblBirthday // this.lblBirthday.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblBirthday.Location = new System.Drawing.Point(8, 49); this.lblBirthday.Name = "lblBirthday"; this.lblBirthday.Size = new System.Drawing.Size(90, 24); this.lblBirthday.TabIndex = 1; this.lblBirthday.Text = "Ngày sinh"; this.lblBirthday.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblEmployeeName // this.lblEmployeeName.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblEmployeeName.Location = new System.Drawing.Point(8, 16); this.lblEmployeeName.Name = "lblEmployeeName"; this.lblEmployeeName.Size = new System.Drawing.Size(90, 24); this.lblEmployeeName.TabIndex = 0; this.lblEmployeeName.Text = "Tên nhân viên"; this.lblEmployeeName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // tpSalary // this.tpSalary.Controls.Add(this.grbAllowance); this.tpSalary.Controls.Add(this.grbBasicSalary); this.tpSalary.Controls.Add(this.grbHiringInfo); this.tpSalary.Location = new System.Drawing.Point(4, 22); this.tpSalary.Name = "tpSalary"; this.tpSalary.Size = new System.Drawing.Size(636, 552); this.tpSalary.TabIndex = 1; this.tpSalary.Text = "Lương và tuyển dụng"; // // grbAllowance // this.grbAllowance.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.grbAllowance.Controls.Add(this.chk_PCDL_CoDinhThang); this.grbAllowance.Controls.Add(this.txtTaskAllowance); this.grbAllowance.Controls.Add(this.label17); this.grbAllowance.Controls.Add(this.txtJapaneseAllowance); this.grbAllowance.Controls.Add(this.label16); this.grbAllowance.Controls.Add(this.txtIntimateAllowance); this.grbAllowance.Controls.Add(this.label13); this.grbAllowance.Controls.Add(this.label1); this.grbAllowance.Controls.Add(this.lblHarmfulAllowance); this.grbAllowance.Controls.Add(this.txtPositionAllowance); this.grbAllowance.Controls.Add(this.lblLunchAllowance); this.grbAllowance.Controls.Add(this.txtLunchAllowance); this.grbAllowance.Controls.Add(this.lblResponsibleAllowance); this.grbAllowance.Controls.Add(this.txtJobAllowance); this.grbAllowance.FlatStyle = System.Windows.Forms.FlatStyle.System; this.grbAllowance.Location = new System.Drawing.Point(8, 466); this.grbAllowance.Name = "grbAllowance"; this.grbAllowance.Size = new System.Drawing.Size(620, 78); this.grbAllowance.TabIndex = 14; this.grbAllowance.TabStop = false; this.grbAllowance.Text = "Các loại phụ cấp"; // // chk_PCDL_CoDinhThang // this.chk_PCDL_CoDinhThang.AutoSize = true; this.chk_PCDL_CoDinhThang.Location = new System.Drawing.Point(161, 49); this.chk_PCDL_CoDinhThang.Name = "chk_PCDL_CoDinhThang"; this.chk_PCDL_CoDinhThang.Size = new System.Drawing.Size(63, 17); this.chk_PCDL_CoDinhThang.TabIndex = 4; this.chk_PCDL_CoDinhThang.Text = "Cố định"; this.chk_PCDL_CoDinhThang.UseVisualStyleBackColor = true; // // txtTaskAllowance // this.txtTaskAllowance.AllowNegative = false; this.txtTaskAllowance.Flags = 73216; this.txtTaskAllowance.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.txtTaskAllowance.Location = new System.Drawing.Point(318, 47); this.txtTaskAllowance.MaxWholeDigits = 9; this.txtTaskAllowance.Name = "txtTaskAllowance"; this.txtTaskAllowance.RangeMax = 1.7976931348623157E+308; this.txtTaskAllowance.RangeMin = -1.7976931348623157E+308; this.txtTaskAllowance.Size = new System.Drawing.Size(90, 20); this.txtTaskAllowance.TabIndex = 5; // // label17 // this.label17.AutoSize = true; this.label17.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.label17.Location = new System.Drawing.Point(247, 51); this.label17.Name = "label17"; this.label17.Size = new System.Drawing.Size(71, 13); this.label17.TabIndex = 85; this.label17.Text = "PC công việc"; this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // txtJapaneseAllowance // this.txtJapaneseAllowance.AllowNegative = false; this.txtJapaneseAllowance.Flags = 73216; this.txtJapaneseAllowance.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.txtJapaneseAllowance.Location = new System.Drawing.Point(502, 47); this.txtJapaneseAllowance.MaxWholeDigits = 9; this.txtJapaneseAllowance.Name = "txtJapaneseAllowance"; this.txtJapaneseAllowance.RangeMax = 1.7976931348623157E+308; this.txtJapaneseAllowance.RangeMin = -1.7976931348623157E+308; this.txtJapaneseAllowance.Size = new System.Drawing.Size(90, 20); this.txtJapaneseAllowance.TabIndex = 6; // // label16 // this.label16.AutoSize = true; this.label16.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.label16.Location = new System.Drawing.Point(427, 51); this.label16.Name = "label16"; this.label16.Size = new System.Drawing.Size(73, 13); this.label16.TabIndex = 83; this.label16.Text = "PC tiếng Nhật"; this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // txtIntimateAllowance // this.txtIntimateAllowance.AllowNegative = false; this.txtIntimateAllowance.Flags = 73216; this.txtIntimateAllowance.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.txtIntimateAllowance.Location = new System.Drawing.Point(65, 47); this.txtIntimateAllowance.MaxWholeDigits = 9; this.txtIntimateAllowance.Name = "txtIntimateAllowance"; this.txtIntimateAllowance.RangeMax = 1.7976931348623157E+308; this.txtIntimateAllowance.RangeMin = -1.7976931348623157E+308; this.txtIntimateAllowance.Size = new System.Drawing.Size(90, 20); this.txtIntimateAllowance.TabIndex = 3; // // label13 // this.label13.AutoSize = true; this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.label13.Location = new System.Drawing.Point(17, 51); this.label13.Name = "label13"; this.label13.Size = new System.Drawing.Size(46, 13); this.label13.TabIndex = 81; this.label13.Text = "PC đi lại"; this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(155, 26); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(35, 13); this.label1.TabIndex = 79; this.label1.Text = "/ngày"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblHarmfulAllowance // this.lblHarmfulAllowance.AutoSize = true; this.lblHarmfulAllowance.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblHarmfulAllowance.Location = new System.Drawing.Point(255, 26); this.lblHarmfulAllowance.Name = "lblHarmfulAllowance"; this.lblHarmfulAllowance.Size = new System.Drawing.Size(63, 13); this.lblHarmfulAllowance.TabIndex = 77; this.lblHarmfulAllowance.Text = "PC chức vụ"; this.lblHarmfulAllowance.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // txtPositionAllowance // this.txtPositionAllowance.AllowNegative = false; this.txtPositionAllowance.Flags = 73216; this.txtPositionAllowance.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.txtPositionAllowance.Location = new System.Drawing.Point(319, 22); this.txtPositionAllowance.MaxWholeDigits = 9; this.txtPositionAllowance.Name = "txtPositionAllowance"; this.txtPositionAllowance.RangeMax = 1.7976931348623157E+308; this.txtPositionAllowance.RangeMin = -1.7976931348623157E+308; this.txtPositionAllowance.Size = new System.Drawing.Size(90, 20); this.txtPositionAllowance.TabIndex = 1; // // lblLunchAllowance // this.lblLunchAllowance.AutoSize = true; this.lblLunchAllowance.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblLunchAllowance.Location = new System.Drawing.Point(6, 26); this.lblLunchAllowance.Name = "lblLunchAllowance"; this.lblLunchAllowance.Size = new System.Drawing.Size(57, 13); this.lblLunchAllowance.TabIndex = 74; this.lblLunchAllowance.Text = "PC ăn trưa"; this.lblLunchAllowance.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // txtLunchAllowance // this.txtLunchAllowance.AllowNegative = false; this.txtLunchAllowance.Flags = 73216; this.txtLunchAllowance.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.txtLunchAllowance.Location = new System.Drawing.Point(65, 22); this.txtLunchAllowance.MaxWholeDigits = 9; this.txtLunchAllowance.Name = "txtLunchAllowance"; this.txtLunchAllowance.RangeMax = 1.7976931348623157E+308; this.txtLunchAllowance.RangeMin = -1.7976931348623157E+308; this.txtLunchAllowance.Size = new System.Drawing.Size(90, 20); this.txtLunchAllowance.TabIndex = 0; // // lblResponsibleAllowance // this.lblResponsibleAllowance.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.lblResponsibleAllowance.AutoSize = true; this.lblResponsibleAllowance.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblResponsibleAllowance.Location = new System.Drawing.Point(437, 26); this.lblResponsibleAllowance.Name = "lblResponsibleAllowance"; this.lblResponsibleAllowance.Size = new System.Drawing.Size(83, 13); this.lblResponsibleAllowance.TabIndex = 78; this.lblResponsibleAllowance.Text = "PC nghề nghiệp"; this.lblResponsibleAllowance.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // txtJobAllowance // this.txtJobAllowance.AllowNegative = false; this.txtJobAllowance.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.txtJobAllowance.Flags = 73216; this.txtJobAllowance.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.txtJobAllowance.Location = new System.Drawing.Point(522, 22); this.txtJobAllowance.MaxWholeDigits = 9; this.txtJobAllowance.Name = "txtJobAllowance"; this.txtJobAllowance.RangeMax = 1.7976931348623157E+308; this.txtJobAllowance.RangeMin = -1.7976931348623157E+308; this.txtJobAllowance.Size = new System.Drawing.Size(90, 20); this.txtJobAllowance.TabIndex = 2; // // grbBasicSalary // this.grbBasicSalary.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.grbBasicSalary.Controls.Add(this.lblSalaryChangedDay); this.grbBasicSalary.Controls.Add(this.txtSalaryDN); this.grbBasicSalary.Controls.Add(this.txtSalaryNote); this.grbBasicSalary.Controls.Add(this.lblSalaryNote); this.grbBasicSalary.Controls.Add(this.lblSalaryDN); this.grbBasicSalary.Controls.Add(this.txtBasicSalary); this.grbBasicSalary.Controls.Add(this.lblBasicSalary); this.grbBasicSalary.Controls.Add(this.btnChangeSalary); this.grbBasicSalary.Controls.Add(this.lvwSalaryHistory); this.grbBasicSalary.Controls.Add(this.dtpSalaryChangedDay); this.grbBasicSalary.FlatStyle = System.Windows.Forms.FlatStyle.System; this.grbBasicSalary.Location = new System.Drawing.Point(8, 123); this.grbBasicSalary.Name = "grbBasicSalary"; this.grbBasicSalary.Size = new System.Drawing.Size(620, 337); this.grbBasicSalary.TabIndex = 13; this.grbBasicSalary.TabStop = false; this.grbBasicSalary.Text = "Diễn biến lương"; // // lblSalaryChangedDay // this.lblSalaryChangedDay.Location = new System.Drawing.Point(339, 14); this.lblSalaryChangedDay.Name = "lblSalaryChangedDay"; this.lblSalaryChangedDay.Size = new System.Drawing.Size(73, 23); this.lblSalaryChangedDay.TabIndex = 78; this.lblSalaryChangedDay.Text = "Ngày thay đổi"; this.lblSalaryChangedDay.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // txtSalaryDN // this.txtSalaryDN.Enabled = false; this.txtSalaryDN.Location = new System.Drawing.Point(264, 16); this.txtSalaryDN.Name = "txtSalaryDN"; this.txtSalaryDN.Size = new System.Drawing.Size(72, 20); this.txtSalaryDN.TabIndex = 2; // // txtSalaryNote // this.txtSalaryNote.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtSalaryNote.Enabled = false; this.txtSalaryNote.Location = new System.Drawing.Point(88, 40); this.txtSalaryNote.Name = "txtSalaryNote"; this.txtSalaryNote.Size = new System.Drawing.Size(428, 20); this.txtSalaryNote.TabIndex = 4; // // lblSalaryNote // this.lblSalaryNote.Location = new System.Drawing.Point(8, 40); this.lblSalaryNote.Name = "lblSalaryNote"; this.lblSalaryNote.Size = new System.Drawing.Size(80, 23); this.lblSalaryNote.TabIndex = 76; this.lblSalaryNote.Text = "Ghi chú"; this.lblSalaryNote.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblSalaryDN // this.lblSalaryDN.Location = new System.Drawing.Point(184, 16); this.lblSalaryDN.Name = "lblSalaryDN"; this.lblSalaryDN.Size = new System.Drawing.Size(80, 23); this.lblSalaryDN.TabIndex = 74; this.lblSalaryDN.Text = "Quyết định số"; this.lblSalaryDN.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // txtBasicSalary // this.txtBasicSalary.AllowNegative = false; this.txtBasicSalary.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtBasicSalary.Flags = 73216; this.txtBasicSalary.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.txtBasicSalary.Location = new System.Drawing.Point(88, 16); this.txtBasicSalary.MaxWholeDigits = 10; this.txtBasicSalary.Name = "txtBasicSalary"; this.txtBasicSalary.RangeMax = 1.7976931348623157E+308; this.txtBasicSalary.RangeMin = -1.7976931348623157E+308; this.txtBasicSalary.Size = new System.Drawing.Size(108, 20); this.txtBasicSalary.TabIndex = 0; // // lblBasicSalary // this.lblBasicSalary.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblBasicSalary.Location = new System.Drawing.Point(8, 16); this.lblBasicSalary.Name = "lblBasicSalary"; this.lblBasicSalary.Size = new System.Drawing.Size(80, 24); this.lblBasicSalary.TabIndex = 73; this.lblBasicSalary.Text = "Lương cơ bản"; this.lblBasicSalary.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // btnChangeSalary // this.btnChangeSalary.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnChangeSalary.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnChangeSalary.Location = new System.Drawing.Point(524, 24); this.btnChangeSalary.Name = "btnChangeSalary"; this.btnChangeSalary.Size = new System.Drawing.Size(88, 24); this.btnChangeSalary.TabIndex = 1; this.btnChangeSalary.Text = "Mức lương mới"; this.btnChangeSalary.Click += new System.EventHandler(this.btnChangeSalary_Click); this.btnChangeSalary.EnabledChanged += new System.EventHandler(this.btnChangeSalary_EnabledChanged); // // lvwSalaryHistory // this.lvwSalaryHistory.AlternatingRowColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(237)))), ((int)(((byte)(245))))); this.lvwSalaryHistory.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.lvwSalaryHistory.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(242)))), ((int)(((byte)(249))))); this.lvwSalaryHistory.ColumnModel = this.cmSalary; this.lvwSalaryHistory.ContextMenu = this.ctxSalary; this.lvwSalaryHistory.EnableToolTips = true; this.lvwSalaryHistory.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121))))); this.lvwSalaryHistory.FullRowSelect = true; this.lvwSalaryHistory.GridColor = System.Drawing.SystemColors.ControlDark; this.lvwSalaryHistory.GridLines = XPTable.Models.GridLines.Both; this.lvwSalaryHistory.GridLineStyle = XPTable.Models.GridLineStyle.Dot; this.lvwSalaryHistory.HeaderFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold); this.lvwSalaryHistory.Location = new System.Drawing.Point(8, 64); this.lvwSalaryHistory.Name = "lvwSalaryHistory"; this.lvwSalaryHistory.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(169)))), ((int)(((byte)(183)))), ((int)(((byte)(201))))); this.lvwSalaryHistory.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121))))); this.lvwSalaryHistory.SelectionStyle = XPTable.Models.SelectionStyle.Grid; this.lvwSalaryHistory.Size = new System.Drawing.Size(604, 267); this.lvwSalaryHistory.SortedColumnBackColor = System.Drawing.Color.Transparent; this.lvwSalaryHistory.TabIndex = 11; this.lvwSalaryHistory.TableModel = this.tmSalary; this.lvwSalaryHistory.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(210)))), ((int)(((byte)(221))))); this.lvwSalaryHistory.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121))))); // // cmSalary // this.cmSalary.Columns.AddRange(new XPTable.Models.Column[] { this.cSTT, this.cBasicSalary, this.cModifiedDate, this.cDecisionNumber, this.cNote}); // // cSTT // this.cSTT.Editable = false; this.cSTT.Text = "STT"; this.cSTT.Width = 50; // // cBasicSalary // this.cBasicSalary.Editable = false; this.cBasicSalary.Text = "Lương cơ bản"; this.cBasicSalary.Width = 120; // // cModifiedDate // this.cModifiedDate.Editable = false; this.cModifiedDate.Text = "Ngày thay đổi"; this.cModifiedDate.Width = 95; // // cDecisionNumber // this.cDecisionNumber.Editable = false; this.cDecisionNumber.Text = "Quyết định số"; this.cDecisionNumber.Width = 100; // // cNote // this.cNote.Editable = false; this.cNote.Text = "Ghi chú"; this.cNote.Width = 170; // // ctxSalary // this.ctxSalary.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mnuEditSalaryHistory, this.mnuDeleteSalaryHistory}); // // mnuEditSalaryHistory // this.mnuEditSalaryHistory.Index = 0; this.mnuEditSalaryHistory.Text = "&Sửa diễn biến lương..."; this.mnuEditSalaryHistory.Click += new System.EventHandler(this.mnuEditSalaryHistory_Click); // // mnuDeleteSalaryHistory // this.mnuDeleteSalaryHistory.Index = 1; this.mnuDeleteSalaryHistory.Text = "&Xóa diễn biến lương..."; this.mnuDeleteSalaryHistory.Click += new System.EventHandler(this.mnuDeleteSalaryHistory_Click); // // dtpSalaryChangedDay // this.dtpSalaryChangedDay.Anchor = System.Windows.Forms.AnchorStyles.Left; this.dtpSalaryChangedDay.CustomFormat = "dd/MM/yyyy"; this.dtpSalaryChangedDay.Enabled = false; this.dtpSalaryChangedDay.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.dtpSalaryChangedDay.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.dtpSalaryChangedDay.Location = new System.Drawing.Point(412, 77); this.dtpSalaryChangedDay.Name = "dtpSalaryChangedDay"; this.dtpSalaryChangedDay.Size = new System.Drawing.Size(88, 20); this.dtpSalaryChangedDay.TabIndex = 3; // // grbHiringInfo // this.grbHiringInfo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.grbHiringInfo.Controls.Add(this.dtpStopWork); this.grbHiringInfo.Controls.Add(this.chkStopWork); this.grbHiringInfo.Controls.Add(this.label8); this.grbHiringInfo.Controls.Add(this.label5); this.grbHiringInfo.Controls.Add(this.mtgcComboFixSalary); this.grbHiringInfo.Controls.Add(this.label9); this.grbHiringInfo.Controls.Add(this.cboContract); this.grbHiringInfo.Controls.Add(this.dtpStartTrial); this.grbHiringInfo.Controls.Add(this.dtpStartDate); this.grbHiringInfo.Controls.Add(this.dtpRecruitDate); this.grbHiringInfo.Controls.Add(this.lblRecruitDate); this.grbHiringInfo.Controls.Add(this.lblContract); this.grbHiringInfo.FlatStyle = System.Windows.Forms.FlatStyle.System; this.grbHiringInfo.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.grbHiringInfo.Location = new System.Drawing.Point(8, 8); this.grbHiringInfo.Name = "grbHiringInfo"; this.grbHiringInfo.Size = new System.Drawing.Size(620, 109); this.grbHiringInfo.TabIndex = 11; this.grbHiringInfo.TabStop = false; this.grbHiringInfo.Text = "Thông tin tuyển dụng"; // // dtpStopWork // this.dtpStopWork.Anchor = System.Windows.Forms.AnchorStyles.Left; this.dtpStopWork.CustomFormat = "dd/MM/yyyy"; this.dtpStopWork.Enabled = false; this.dtpStopWork.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.dtpStopWork.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.dtpStopWork.Location = new System.Drawing.Point(448, 46); this.dtpStopWork.Name = "dtpStopWork"; this.dtpStopWork.Size = new System.Drawing.Size(104, 20); this.dtpStopWork.TabIndex = 6; // // chkStopWork // this.chkStopWork.AutoSize = true; this.chkStopWork.Location = new System.Drawing.Point(333, 49); this.chkStopWork.Name = "chkStopWork"; this.chkStopWork.RightToLeft = System.Windows.Forms.RightToLeft.Yes; this.chkStopWork.Size = new System.Drawing.Size(94, 17); this.chkStopWork.TabIndex = 5; this.chkStopWork.Text = "Ngày thôi việc"; this.chkStopWork.UseVisualStyleBackColor = true; this.chkStopWork.CheckedChanged += new System.EventHandler(this.chkStopWork_CheckedChanged); // // label8 // this.label8.AutoSize = true; this.label8.Location = new System.Drawing.Point(6, 49); this.label8.Name = "label8"; this.label8.RightToLeft = System.Windows.Forms.RightToLeft.Yes; this.label8.Size = new System.Drawing.Size(125, 17); this.label8.TabIndex = 3; this.label8.Text = "Ngày làm chính thức"; this.label8.UseVisualStyleBackColor = true; this.label8.CheckedChanged += new System.EventHandler(this.label8_CheckedChanged); // // label5 // this.label5.AutoSize = true; this.errorProvider1.SetIconAlignment(this.label5, System.Windows.Forms.ErrorIconAlignment.TopRight); this.label5.Location = new System.Drawing.Point(333, 23); this.label5.Name = "label5"; this.label5.RightToLeft = System.Windows.Forms.RightToLeft.Yes; this.label5.Size = new System.Drawing.Size(105, 17); this.label5.TabIndex = 1; this.label5.Text = "Bắt đầu thử việc"; this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.label5.UseVisualStyleBackColor = true; this.label5.CheckedChanged += new System.EventHandler(this.label5_CheckedChanged); // // mtgcComboFixSalary // this.mtgcComboFixSalary.Anchor = System.Windows.Forms.AnchorStyles.Right; this.mtgcComboFixSalary.BorderStyle = MTGCComboBox.TipiBordi.Fixed3D; this.mtgcComboFixSalary.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; this.mtgcComboFixSalary.ColumnNum = 2; this.mtgcComboFixSalary.ColumnWidth = "0;220"; this.mtgcComboFixSalary.DisplayMember = "Text"; this.mtgcComboFixSalary.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.mtgcComboFixSalary.DropDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(193)))), ((int)(((byte)(210)))), ((int)(((byte)(238))))); this.mtgcComboFixSalary.DropDownForeColor = System.Drawing.Color.Black; this.mtgcComboFixSalary.DropDownStyle = MTGCComboBox.CustomDropDownStyle.DropDownList; this.mtgcComboFixSalary.DropDownWidth = 120; this.mtgcComboFixSalary.GridLineColor = System.Drawing.Color.LightGray; this.mtgcComboFixSalary.GridLineHorizontal = true; this.mtgcComboFixSalary.GridLineVertical = false; this.mtgcComboFixSalary.LoadingType = MTGCComboBox.CaricamentoCombo.ComboBoxItem; this.mtgcComboFixSalary.Location = new System.Drawing.Point(448, 72); this.mtgcComboFixSalary.ManagingFastMouseMoving = true; this.mtgcComboFixSalary.ManagingFastMouseMovingInterval = 30; this.mtgcComboFixSalary.Name = "mtgcComboFixSalary"; this.mtgcComboFixSalary.Size = new System.Drawing.Size(104, 21); this.mtgcComboFixSalary.TabIndex = 8; // // label9 // this.label9.Anchor = System.Windows.Forms.AnchorStyles.Right; this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.label9.Location = new System.Drawing.Point(6, 69); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(63, 24); this.label9.TabIndex = 47; this.label9.Text = "Hợp đồng"; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // cboContract // this.cboContract.Anchor = System.Windows.Forms.AnchorStyles.Right; this.cboContract.BorderStyle = MTGCComboBox.TipiBordi.Fixed3D; this.cboContract.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; this.cboContract.ColumnNum = 2; this.cboContract.ColumnWidth = "0;220"; this.cboContract.DisplayMember = "Text"; this.cboContract.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.cboContract.DropDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(193)))), ((int)(((byte)(210)))), ((int)(((byte)(238))))); this.cboContract.DropDownForeColor = System.Drawing.Color.Black; this.cboContract.DropDownStyle = MTGCComboBox.CustomDropDownStyle.DropDownList; this.cboContract.DropDownWidth = 120; this.cboContract.GridLineColor = System.Drawing.Color.LightGray; this.cboContract.GridLineHorizontal = true; this.cboContract.GridLineVertical = false; this.cboContract.LoadingType = MTGCComboBox.CaricamentoCombo.ComboBoxItem; this.cboContract.Location = new System.Drawing.Point(137, 72); this.cboContract.ManagingFastMouseMoving = true; this.cboContract.ManagingFastMouseMovingInterval = 30; this.cboContract.Name = "cboContract"; this.cboContract.Size = new System.Drawing.Size(104, 21); this.cboContract.TabIndex = 7; this.cboContract.SelectedIndexChanged += new System.EventHandler(this.cboContract_SelectedIndexChanged); // // dtpStartTrial // this.dtpStartTrial.Anchor = System.Windows.Forms.AnchorStyles.Right; this.dtpStartTrial.CustomFormat = "dd/MM/yyyy"; this.dtpStartTrial.Enabled = false; this.dtpStartTrial.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.dtpStartTrial.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.dtpStartTrial.Location = new System.Drawing.Point(448, 20); this.dtpStartTrial.Name = "dtpStartTrial"; this.dtpStartTrial.Size = new System.Drawing.Size(104, 20); this.dtpStartTrial.TabIndex = 2; // // dtpStartDate // this.dtpStartDate.Anchor = System.Windows.Forms.AnchorStyles.Left; this.dtpStartDate.CustomFormat = "dd/MM/yyyy"; this.dtpStartDate.Enabled = false; this.dtpStartDate.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.dtpStartDate.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.dtpStartDate.Location = new System.Drawing.Point(137, 46); this.dtpStartDate.Name = "dtpStartDate"; this.dtpStartDate.Size = new System.Drawing.Size(104, 20); this.dtpStartDate.TabIndex = 4; // // dtpRecruitDate // this.dtpRecruitDate.Anchor = System.Windows.Forms.AnchorStyles.Left; this.dtpRecruitDate.CustomFormat = "dd/MM/yyyy"; this.dtpRecruitDate.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.dtpRecruitDate.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.dtpRecruitDate.Location = new System.Drawing.Point(137, 20); this.dtpRecruitDate.Name = "dtpRecruitDate"; this.dtpRecruitDate.Size = new System.Drawing.Size(104, 20); this.dtpRecruitDate.TabIndex = 0; // // lblRecruitDate // this.lblRecruitDate.Anchor = System.Windows.Forms.AnchorStyles.Left; this.lblRecruitDate.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblRecruitDate.Location = new System.Drawing.Point(6, 16); this.lblRecruitDate.Name = "lblRecruitDate"; this.lblRecruitDate.Size = new System.Drawing.Size(134, 24); this.lblRecruitDate.TabIndex = 38; this.lblRecruitDate.Text = "Ngày tuyển"; this.lblRecruitDate.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblContract // this.lblContract.Anchor = System.Windows.Forms.AnchorStyles.Right; this.lblContract.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblContract.Location = new System.Drawing.Point(333, 69); this.lblContract.Name = "lblContract"; this.lblContract.Size = new System.Drawing.Size(65, 24); this.lblContract.TabIndex = 40; this.lblContract.Text = "Kiểu lương"; this.lblContract.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // tpDepartment // this.tpDepartment.Controls.Add(this.groupBox4); this.tpDepartment.Controls.Add(this.groupBox2); this.tpDepartment.Location = new System.Drawing.Point(4, 22); this.tpDepartment.Name = "tpDepartment"; this.tpDepartment.Size = new System.Drawing.Size(636, 552); this.tpDepartment.TabIndex = 2; this.tpDepartment.Text = "Bộ phận-chức vụ"; // // groupBox4 // this.groupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox4.Controls.Add(this.dtpChangePosition); this.groupBox4.Controls.Add(this.label11); this.groupBox4.Controls.Add(this.lvwPositionHistory); this.groupBox4.Controls.Add(this.btnChangePosition); this.groupBox4.Controls.Add(this.cboPosition); this.groupBox4.Controls.Add(this.txtPositionNote); this.groupBox4.Controls.Add(this.lblPositionNote); this.groupBox4.Controls.Add(this.lblPositionDN); this.groupBox4.Controls.Add(this.lblPositionName); this.groupBox4.Controls.Add(this.txtPositionDN); this.groupBox4.FlatStyle = System.Windows.Forms.FlatStyle.System; this.groupBox4.Location = new System.Drawing.Point(8, 380); this.groupBox4.Name = "groupBox4"; this.groupBox4.Size = new System.Drawing.Size(628, 168); this.groupBox4.TabIndex = 14; this.groupBox4.TabStop = false; this.groupBox4.Text = "Thay đổi chức vụ"; // // dtpChangePosition // this.dtpChangePosition.Anchor = System.Windows.Forms.AnchorStyles.Left; this.dtpChangePosition.CustomFormat = "dd/MM/yyyy"; this.dtpChangePosition.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.dtpChangePosition.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.dtpChangePosition.Location = new System.Drawing.Point(408, 39); this.dtpChangePosition.Name = "dtpChangePosition"; this.dtpChangePosition.Size = new System.Drawing.Size(96, 20); this.dtpChangePosition.TabIndex = 79; // // label11 // this.label11.Location = new System.Drawing.Point(312, 40); this.label11.Name = "label11"; this.label11.Size = new System.Drawing.Size(80, 23); this.label11.TabIndex = 77; this.label11.Text = "Ngày thay đổi"; this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lvwPositionHistory // this.lvwPositionHistory.AlternatingRowColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(237)))), ((int)(((byte)(245))))); this.lvwPositionHistory.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.lvwPositionHistory.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(242)))), ((int)(((byte)(249))))); this.lvwPositionHistory.ColumnModel = this.cmPosition; this.lvwPositionHistory.ContextMenu = this.ctxPosition; this.lvwPositionHistory.EnableToolTips = true; this.lvwPositionHistory.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121))))); this.lvwPositionHistory.FullRowSelect = true; this.lvwPositionHistory.GridColor = System.Drawing.SystemColors.ControlDark; this.lvwPositionHistory.GridLines = XPTable.Models.GridLines.Both; this.lvwPositionHistory.GridLineStyle = XPTable.Models.GridLineStyle.Dot; this.lvwPositionHistory.HeaderFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold); this.lvwPositionHistory.Location = new System.Drawing.Point(8, 64); this.lvwPositionHistory.Name = "lvwPositionHistory"; this.lvwPositionHistory.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(169)))), ((int)(((byte)(183)))), ((int)(((byte)(201))))); this.lvwPositionHistory.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121))))); this.lvwPositionHistory.SelectionStyle = XPTable.Models.SelectionStyle.Grid; this.lvwPositionHistory.Size = new System.Drawing.Size(612, 96); this.lvwPositionHistory.SortedColumnBackColor = System.Drawing.Color.Transparent; this.lvwPositionHistory.TabIndex = 76; this.lvwPositionHistory.TableModel = this.tmPosition; this.lvwPositionHistory.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(210)))), ((int)(((byte)(221))))); this.lvwPositionHistory.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121))))); // // cmPosition // this.cmPosition.Columns.AddRange(new XPTable.Models.Column[] { this.cSTT, this.cPositionName, this.cModifiedDate, this.cDecisionNumber, this.cNote}); // // cPositionName // this.cPositionName.Text = "Tên chức vụ"; this.cPositionName.Width = 140; // // ctxPosition // this.ctxPosition.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mnuEditPositionHistory, this.mnuDeletePositionHistory}); // // mnuEditPositionHistory // this.mnuEditPositionHistory.Index = 0; this.mnuEditPositionHistory.Text = "&Sửa..."; this.mnuEditPositionHistory.Click += new System.EventHandler(this.mnuEditPositionHistory_Click); // // mnuDeletePositionHistory // this.mnuDeletePositionHistory.Index = 1; this.mnuDeletePositionHistory.Text = "&Xóa..."; this.mnuDeletePositionHistory.Click += new System.EventHandler(this.mnuDeletePositionHistory_Click); // // btnChangePosition // this.btnChangePosition.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnChangePosition.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnChangePosition.Location = new System.Drawing.Point(524, 24); this.btnChangePosition.Name = "btnChangePosition"; this.btnChangePosition.Size = new System.Drawing.Size(96, 24); this.btnChangePosition.TabIndex = 39; this.btnChangePosition.Text = "Chuyển chức vụ"; this.btnChangePosition.Click += new System.EventHandler(this.btnChangePosition_Click); this.btnChangePosition.EnabledChanged += new System.EventHandler(this.btnChangePosition_EnabledChanged); // // cboPosition // this.cboPosition.BorderStyle = MTGCComboBox.TipiBordi.Fixed3D; this.cboPosition.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; this.cboPosition.ColumnNum = 2; this.cboPosition.ColumnWidth = "0;220"; this.cboPosition.DisplayMember = "Text"; this.cboPosition.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.cboPosition.DropDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(193)))), ((int)(((byte)(210)))), ((int)(((byte)(238))))); this.cboPosition.DropDownForeColor = System.Drawing.Color.Black; this.cboPosition.DropDownStyle = MTGCComboBox.CustomDropDownStyle.DropDownList; this.cboPosition.DropDownWidth = 240; this.cboPosition.GridLineColor = System.Drawing.Color.LightGray; this.cboPosition.GridLineHorizontal = true; this.cboPosition.GridLineVertical = false; this.cboPosition.LoadingType = MTGCComboBox.CaricamentoCombo.ComboBoxItem; this.cboPosition.Location = new System.Drawing.Point(96, 16); this.cboPosition.ManagingFastMouseMoving = true; this.cboPosition.ManagingFastMouseMovingInterval = 30; this.cboPosition.Name = "cboPosition"; this.cboPosition.Size = new System.Drawing.Size(200, 21); this.cboPosition.TabIndex = 35; // // txtPositionNote // this.txtPositionNote.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtPositionNote.Enabled = false; this.txtPositionNote.Location = new System.Drawing.Point(96, 40); this.txtPositionNote.Name = "txtPositionNote"; this.txtPositionNote.Size = new System.Drawing.Size(212, 20); this.txtPositionNote.TabIndex = 37; // // lblPositionNote // this.lblPositionNote.Location = new System.Drawing.Point(8, 40); this.lblPositionNote.Name = "lblPositionNote"; this.lblPositionNote.Size = new System.Drawing.Size(88, 23); this.lblPositionNote.TabIndex = 72; this.lblPositionNote.Text = "Ghi chú"; this.lblPositionNote.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblPositionDN // this.lblPositionDN.Location = new System.Drawing.Point(312, 16); this.lblPositionDN.Name = "lblPositionDN"; this.lblPositionDN.Size = new System.Drawing.Size(80, 23); this.lblPositionDN.TabIndex = 70; this.lblPositionDN.Text = "Quyết định số"; this.lblPositionDN.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblPositionName // this.lblPositionName.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblPositionName.Location = new System.Drawing.Point(8, 16); this.lblPositionName.Name = "lblPositionName"; this.lblPositionName.Size = new System.Drawing.Size(88, 24); this.lblPositionName.TabIndex = 66; this.lblPositionName.Text = "Chức vụ"; this.lblPositionName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // txtPositionDN // this.txtPositionDN.Enabled = false; this.txtPositionDN.Location = new System.Drawing.Point(408, 16); this.txtPositionDN.Name = "txtPositionDN"; this.txtPositionDN.Size = new System.Drawing.Size(96, 20); this.txtPositionDN.TabIndex = 36; // // groupBox2 // this.groupBox2.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.groupBox2.Controls.Add(this.dtpDepartment); this.groupBox2.Controls.Add(this.label12); this.groupBox2.Controls.Add(this.txtDepartmentDN); this.groupBox2.Controls.Add(this.btnChangeDepartment); this.groupBox2.Controls.Add(this.cboDepartment); this.groupBox2.Controls.Add(this.txtDepartmentNote); this.groupBox2.Controls.Add(this.lblDepartmentNote); this.groupBox2.Controls.Add(this.lblDepartmentDN); this.groupBox2.Controls.Add(this.lblDepartmentName); this.groupBox2.Controls.Add(this.lvwDepartmentHistory); this.groupBox2.FlatStyle = System.Windows.Forms.FlatStyle.System; this.groupBox2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.groupBox2.Location = new System.Drawing.Point(8, 8); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(628, 364); this.groupBox2.TabIndex = 12; this.groupBox2.TabStop = false; this.groupBox2.Text = "Chuyển đổi bộ phận"; // // dtpDepartment // this.dtpDepartment.Anchor = System.Windows.Forms.AnchorStyles.Left; this.dtpDepartment.CustomFormat = "dd/MM/yyyy"; this.dtpDepartment.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.dtpDepartment.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.dtpDepartment.Location = new System.Drawing.Point(408, 17); this.dtpDepartment.Name = "dtpDepartment"; this.dtpDepartment.Size = new System.Drawing.Size(96, 20); this.dtpDepartment.TabIndex = 81; // // label12 // this.label12.Location = new System.Drawing.Point(322, 14); this.label12.Name = "label12"; this.label12.Size = new System.Drawing.Size(80, 23); this.label12.TabIndex = 80; this.label12.Text = "Ngày chuyển"; this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // txtDepartmentDN // this.txtDepartmentDN.Anchor = System.Windows.Forms.AnchorStyles.Right; this.txtDepartmentDN.Enabled = false; this.txtDepartmentDN.Location = new System.Drawing.Point(408, 40); this.txtDepartmentDN.Name = "txtDepartmentDN"; this.txtDepartmentDN.Size = new System.Drawing.Size(96, 20); this.txtDepartmentDN.TabIndex = 33; // // btnChangeDepartment // this.btnChangeDepartment.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnChangeDepartment.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnChangeDepartment.Location = new System.Drawing.Point(524, 24); this.btnChangeDepartment.Name = "btnChangeDepartment"; this.btnChangeDepartment.Size = new System.Drawing.Size(96, 24); this.btnChangeDepartment.TabIndex = 38; this.btnChangeDepartment.Text = "Chuyển công tác"; this.btnChangeDepartment.Click += new System.EventHandler(this.btnChangeDepartment_Click); this.btnChangeDepartment.EnabledChanged += new System.EventHandler(this.btnChangeDepartment_EnabledChanged); // // cboDepartment // this.cboDepartment.BorderStyle = MTGCComboBox.TipiBordi.Fixed3D; this.cboDepartment.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; this.cboDepartment.ColumnNum = 2; this.cboDepartment.ColumnWidth = "0;220"; this.cboDepartment.DisplayMember = "Text"; this.cboDepartment.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.cboDepartment.DropDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(193)))), ((int)(((byte)(210)))), ((int)(((byte)(238))))); this.cboDepartment.DropDownForeColor = System.Drawing.Color.Black; this.cboDepartment.DropDownStyle = MTGCComboBox.CustomDropDownStyle.DropDownList; this.cboDepartment.DropDownWidth = 240; this.cboDepartment.GridLineColor = System.Drawing.Color.LightGray; this.cboDepartment.GridLineHorizontal = true; this.cboDepartment.GridLineVertical = false; this.cboDepartment.LoadingType = MTGCComboBox.CaricamentoCombo.ComboBoxItem; this.cboDepartment.Location = new System.Drawing.Point(88, 16); this.cboDepartment.ManagingFastMouseMoving = true; this.cboDepartment.ManagingFastMouseMovingInterval = 30; this.cboDepartment.Name = "cboDepartment"; this.cboDepartment.Size = new System.Drawing.Size(192, 21); this.cboDepartment.TabIndex = 32; // // txtDepartmentNote // this.txtDepartmentNote.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtDepartmentNote.Enabled = false; this.txtDepartmentNote.Location = new System.Drawing.Point(88, 40); this.txtDepartmentNote.Name = "txtDepartmentNote"; this.txtDepartmentNote.Size = new System.Drawing.Size(204, 20); this.txtDepartmentNote.TabIndex = 34; // // lblDepartmentNote // this.lblDepartmentNote.Location = new System.Drawing.Point(8, 40); this.lblDepartmentNote.Name = "lblDepartmentNote"; this.lblDepartmentNote.Size = new System.Drawing.Size(80, 23); this.lblDepartmentNote.TabIndex = 68; this.lblDepartmentNote.Text = "Ghi chú"; this.lblDepartmentNote.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblDepartmentDN // this.lblDepartmentDN.Anchor = System.Windows.Forms.AnchorStyles.Right; this.lblDepartmentDN.Location = new System.Drawing.Point(322, 37); this.lblDepartmentDN.Name = "lblDepartmentDN"; this.lblDepartmentDN.Size = new System.Drawing.Size(80, 23); this.lblDepartmentDN.TabIndex = 66; this.lblDepartmentDN.Text = "Quyết định số"; this.lblDepartmentDN.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblDepartmentName // this.lblDepartmentName.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.lblDepartmentName.Location = new System.Drawing.Point(8, 16); this.lblDepartmentName.Name = "lblDepartmentName"; this.lblDepartmentName.Size = new System.Drawing.Size(80, 24); this.lblDepartmentName.TabIndex = 65; this.lblDepartmentName.Text = "Bộ phận"; this.lblDepartmentName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lvwDepartmentHistory // this.lvwDepartmentHistory.AlternatingRowColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(237)))), ((int)(((byte)(245))))); this.lvwDepartmentHistory.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.lvwDepartmentHistory.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(242)))), ((int)(((byte)(249))))); this.lvwDepartmentHistory.ColumnModel = this.cmDepartment; this.lvwDepartmentHistory.ContextMenu = this.ctxDepartment; this.lvwDepartmentHistory.EnableToolTips = true; this.lvwDepartmentHistory.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121))))); this.lvwDepartmentHistory.FullRowSelect = true; this.lvwDepartmentHistory.GridColor = System.Drawing.SystemColors.ControlDark; this.lvwDepartmentHistory.GridLines = XPTable.Models.GridLines.Both; this.lvwDepartmentHistory.GridLineStyle = XPTable.Models.GridLineStyle.Dot; this.lvwDepartmentHistory.HeaderFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold); this.lvwDepartmentHistory.Location = new System.Drawing.Point(8, 64); this.lvwDepartmentHistory.Name = "lvwDepartmentHistory"; this.lvwDepartmentHistory.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(169)))), ((int)(((byte)(183)))), ((int)(((byte)(201))))); this.lvwDepartmentHistory.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121))))); this.lvwDepartmentHistory.SelectionStyle = XPTable.Models.SelectionStyle.Grid; this.lvwDepartmentHistory.Size = new System.Drawing.Size(612, 292); this.lvwDepartmentHistory.SortedColumnBackColor = System.Drawing.Color.Transparent; this.lvwDepartmentHistory.TabIndex = 12; this.lvwDepartmentHistory.TableModel = this.tmDepartment; this.lvwDepartmentHistory.UnfocusedSelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(210)))), ((int)(((byte)(221))))); this.lvwDepartmentHistory.UnfocusedSelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121))))); // // cmDepartment // this.cmDepartment.Columns.AddRange(new XPTable.Models.Column[] { this.chSTT, this.chDepartmentName, this.chModifiedDate, this.chDecisionNumber, this.chNote}); // // chSTT // this.chSTT.Editable = false; this.chSTT.Text = "STT"; this.chSTT.Width = 50; // // chDepartmentName // this.chDepartmentName.Editable = false; this.chDepartmentName.Text = "Tên bộ phận"; this.chDepartmentName.Width = 140; // // chModifiedDate // this.chModifiedDate.Editable = false; this.chModifiedDate.Text = "Ngày thay đổi"; this.chModifiedDate.Width = 95; // // chDecisionNumber // this.chDecisionNumber.Editable = false; this.chDecisionNumber.Text = "Quyết định số"; this.chDecisionNumber.Width = 100; // // chNote // this.chNote.Editable = false; this.chNote.Text = "Ghi chú"; this.chNote.Width = 170; // // ctxDepartment // this.ctxDepartment.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mnuEditDepartmentHistory, this.mnuDeleteDepartmentHistory}); // // mnuEditDepartmentHistory // this.mnuEditDepartmentHistory.Index = 0; this.mnuEditDepartmentHistory.Text = "&Sửa..."; this.mnuEditDepartmentHistory.Click += new System.EventHandler(this.mnuEditDepartmentHistory_Click); // // mnuDeleteDepartmentHistory // this.mnuDeleteDepartmentHistory.Index = 1; this.mnuDeleteDepartmentHistory.Text = "&Xóa..."; this.mnuDeleteDepartmentHistory.Click += new System.EventHandler(this.mnuDeleteDepartmentHistory_Click); // // tpOtherInfo // this.tpOtherInfo.Controls.Add(this.dtpStopDate); this.tpOtherInfo.Controls.Add(this.label10); this.tpOtherInfo.Controls.Add(this.cbHospital); this.tpOtherInfo.Controls.Add(this.label7); this.tpOtherInfo.Controls.Add(this.txtNote); this.tpOtherInfo.Location = new System.Drawing.Point(4, 22); this.tpOtherInfo.Name = "tpOtherInfo"; this.tpOtherInfo.Size = new System.Drawing.Size(636, 552); this.tpOtherInfo.TabIndex = 3; this.tpOtherInfo.Text = "Thông tin khác"; // // dtpStopDate // this.dtpStopDate.Anchor = System.Windows.Forms.AnchorStyles.Left; this.dtpStopDate.CustomFormat = "dd/MM/yyyy"; this.dtpStopDate.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.dtpStopDate.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.dtpStopDate.Location = new System.Drawing.Point(220, 36); this.dtpStopDate.Name = "dtpStopDate"; this.dtpStopDate.Size = new System.Drawing.Size(104, 20); this.dtpStopDate.TabIndex = 39; // // label10 // this.label10.Anchor = System.Windows.Forms.AnchorStyles.Left; this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.label10.Location = new System.Drawing.Point(8, 36); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(191, 24); this.label10.TabIndex = 40; this.label10.Text = "Ngày thôi việc"; this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // cbHospital // this.cbHospital.BorderStyle = MTGCComboBox.TipiBordi.Fixed3D; this.cbHospital.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; this.cbHospital.ColumnNum = 2; this.cbHospital.ColumnWidth = "0;220"; this.cbHospital.DisplayMember = "Text"; this.cbHospital.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.cbHospital.DropDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(193)))), ((int)(((byte)(210)))), ((int)(((byte)(238))))); this.cbHospital.DropDownForeColor = System.Drawing.Color.Black; this.cbHospital.DropDownStyle = MTGCComboBox.CustomDropDownStyle.DropDownList; this.cbHospital.DropDownWidth = 240; this.cbHospital.GridLineColor = System.Drawing.Color.LightGray; this.cbHospital.GridLineHorizontal = true; this.cbHospital.GridLineVertical = false; this.cbHospital.LoadingType = MTGCComboBox.CaricamentoCombo.ComboBoxItem; this.cbHospital.Location = new System.Drawing.Point(220, 10); this.cbHospital.ManagingFastMouseMoving = true; this.cbHospital.ManagingFastMouseMovingInterval = 30; this.cbHospital.Name = "cbHospital"; this.cbHospital.Size = new System.Drawing.Size(200, 21); this.cbHospital.TabIndex = 35; // // label7 // this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.label7.Location = new System.Drawing.Point(8, 10); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(194, 21); this.label7.TabIndex = 31; this.label7.Text = "Nơi đăng ký khám chữa bệnh ban đầu"; this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // txtNote // this.txtNote.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.txtNote.Location = new System.Drawing.Point(8, 62); this.txtNote.Multiline = true; this.txtNote.Name = "txtNote"; this.txtNote.Size = new System.Drawing.Size(620, 483); this.txtNote.TabIndex = 0; // // btnClose // this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnClose.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.btnClose.Location = new System.Drawing.Point(564, 8); this.btnClose.Name = "btnClose"; this.btnClose.Size = new System.Drawing.Size(72, 23); this.btnClose.TabIndex = 31; this.btnClose.Text = "&Đóng"; this.btnClose.Click += new System.EventHandler(this.btnClose_Click); // // pnButtons // this.pnButtons.Controls.Add(this.btnCancel); this.pnButtons.Controls.Add(this.txtRecordNum); this.pnButtons.Controls.Add(this.btnLast); this.pnButtons.Controls.Add(this.btnNext); this.pnButtons.Controls.Add(this.btnPrevious); this.pnButtons.Controls.Add(this.btnFirst); this.pnButtons.Controls.Add(this.btnClose); this.pnButtons.Controls.Add(this.btnSave); this.pnButtons.Dock = System.Windows.Forms.DockStyle.Bottom; this.pnButtons.Location = new System.Drawing.Point(0, 576); this.pnButtons.Name = "pnButtons"; this.pnButtons.Size = new System.Drawing.Size(644, 40); this.pnButtons.TabIndex = 4; // // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnCancel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.btnCancel.Location = new System.Drawing.Point(492, 8); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(72, 23); this.btnCancel.TabIndex = 27; this.btnCancel.Text = "&Bỏ qua"; this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); // // txtRecordNum // this.txtRecordNum.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.txtRecordNum.Location = new System.Drawing.Point(56, 8); this.txtRecordNum.Name = "txtRecordNum"; this.txtRecordNum.ReadOnly = true; this.txtRecordNum.Size = new System.Drawing.Size(48, 20); this.txtRecordNum.TabIndex = 36; this.txtRecordNum.Text = "3/26"; this.txtRecordNum.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // btnLast // this.btnLast.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnLast.ImageIndex = 5; this.btnLast.ImageList = this.imageList1; this.btnLast.Location = new System.Drawing.Point(128, 8); this.btnLast.Name = "btnLast"; this.btnLast.Size = new System.Drawing.Size(24, 23); this.btnLast.TabIndex = 35; this.btnLast.Click += new System.EventHandler(this.btnLast_Click); // // btnNext // this.btnNext.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnNext.ImageIndex = 4; this.btnNext.ImageList = this.imageList1; this.btnNext.Location = new System.Drawing.Point(104, 8); this.btnNext.Name = "btnNext"; this.btnNext.Size = new System.Drawing.Size(24, 23); this.btnNext.TabIndex = 34; this.btnNext.Click += new System.EventHandler(this.btnNext_Click); // // btnPrevious // this.btnPrevious.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnPrevious.ImageIndex = 3; this.btnPrevious.ImageList = this.imageList1; this.btnPrevious.Location = new System.Drawing.Point(32, 8); this.btnPrevious.Name = "btnPrevious"; this.btnPrevious.Size = new System.Drawing.Size(24, 23); this.btnPrevious.TabIndex = 33; this.btnPrevious.Click += new System.EventHandler(this.btnPrevious_Click); // // btnFirst // this.btnFirst.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnFirst.ImageIndex = 2; this.btnFirst.ImageList = this.imageList1; this.btnFirst.Location = new System.Drawing.Point(8, 8); this.btnFirst.Name = "btnFirst"; this.btnFirst.Size = new System.Drawing.Size(24, 23); this.btnFirst.TabIndex = 32; this.btnFirst.Click += new System.EventHandler(this.btnFirst_Click); // // btnSave // this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnSave.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163))); this.btnSave.Location = new System.Drawing.Point(420, 8); this.btnSave.Name = "btnSave"; this.btnSave.Size = new System.Drawing.Size(72, 23); this.btnSave.TabIndex = 35; this.btnSave.Text = "&Đồng ý"; this.btnSave.Click += new System.EventHandler(this.btnOK_Click); // // errorProvider1 // this.errorProvider1.ContainerControl = this; // // frmEmployee // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(644, 616); this.Controls.Add(this.pnProfile); this.Controls.Add(this.pnButtons); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.Name = "frmEmployee"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Hồ sơ nhân viên"; this.Load += new System.EventHandler(this.frmEmployee_Load); this.pnProfile.ResumeLayout(false); this.tabEmployeeProfile.ResumeLayout(false); this.tpGeneralInfo.ResumeLayout(false); this.grbProfessional.ResumeLayout(false); this.grbProfessional.PerformLayout(); this.grbEmployeeProfile.ResumeLayout(false); this.grbEmployeeProfile.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.picEmployee)).EndInit(); this.tpSalary.ResumeLayout(false); this.grbAllowance.ResumeLayout(false); this.grbAllowance.PerformLayout(); this.grbBasicSalary.ResumeLayout(false); this.grbBasicSalary.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.lvwSalaryHistory)).EndInit(); this.grbHiringInfo.ResumeLayout(false); this.grbHiringInfo.PerformLayout(); this.tpDepartment.ResumeLayout(false); this.groupBox4.ResumeLayout(false); this.groupBox4.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.lvwPositionHistory)).EndInit(); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.lvwDepartmentHistory)).EndInit(); this.tpOtherInfo.ResumeLayout(false); this.tpOtherInfo.PerformLayout(); this.pnButtons.ResumeLayout(false); this.pnButtons.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Control template apply. /// </summary> public override void OnApplyTemplate() { base.OnApplyTemplate(); _TextBox = (NumericTextBox)this.GetTemplateChild("PART_TextBox"); this.Loaded += new RoutedEventHandler(UnitTextBoxEditor_Loaded); _TextBox.TextChanged += new TextChangedEventHandler(_TextBox_TextChanged); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CustomColorDlg)); this.paletteBox = new System.Windows.Forms.PictureBox(); this.lumBox = new System.Windows.Forms.PictureBox(); this.currentColorPanel = new System.Windows.Forms.Panel(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.hueEdit = new NumericTextBox(); this.satEdit = new NumericTextBox(); this.lumEdit = new NumericTextBox(); this.redEdit = new NumericTextBox(); this.greenEdit = new NumericTextBox(); this.blueEdit = new NumericTextBox(); this.Label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // paletteBox // this.paletteBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.paletteBox.Location = new System.Drawing.Point(10, 12); this.paletteBox.Name = "paletteBox"; this.paletteBox.Size = new System.Drawing.Size(202, 188); this.paletteBox.TabIndex = 0; this.paletteBox.TabStop = false; this.paletteBox.Paint += new System.Windows.Forms.PaintEventHandler(this.paletteBox_Paint); this.paletteBox.MouseUp += new System.Windows.Forms.MouseEventHandler(this.paletteBox_MouseUp); this.paletteBox.MouseMove += new System.Windows.Forms.MouseEventHandler(this.paletteBox_MouseMove); this.paletteBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.paletteBox_MouseDown); // // lumBox // this.lumBox.Location = new System.Drawing.Point(220, 7); this.lumBox.Name = "lumBox"; this.lumBox.Size = new System.Drawing.Size(24, 198); this.lumBox.TabIndex = 1; this.lumBox.TabStop = false; this.lumBox.Paint += new System.Windows.Forms.PaintEventHandler(this.LumBox_Paint); this.lumBox.MouseUp += new System.Windows.Forms.MouseEventHandler(this.lumBox_MouseUp); this.lumBox.MouseMove += new System.Windows.Forms.MouseEventHandler(this.lumBox_MouseMove); this.lumBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lumBox_MouseDown); // // currentColorPanel // this.currentColorPanel.BackColor = System.Drawing.SystemColors.Control; this.currentColorPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.currentColorPanel.Location = new System.Drawing.Point(12, 212); this.currentColorPanel.Name = "currentColorPanel"; this.currentColorPanel.Size = new System.Drawing.Size(66, 48); this.currentColorPanel.TabIndex = 2; // // button1 // this.button1.DialogResult = System.Windows.Forms.DialogResult.OK; this.button1.Location = new System.Drawing.Point(52, 298); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(64, 22); this.button1.TabIndex = 3; this.button1.Text = "Add Color"; // // button2 // this.button2.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.button2.Location = new System.Drawing.Point(138, 298); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(64, 22); this.button2.TabIndex = 4; this.button2.Text = "Cancel"; // // hueEdit // this.hueEdit.Location = new System.Drawing.Point(124, 218); this.hueEdit.MaxLength = 3; this.hueEdit.Name = "hueEdit"; this.hueEdit.SetRange = new System.Drawing.Size(0, 240); this.hueEdit.Size = new System.Drawing.Size(30, 20); this.hueEdit.TabIndex = 5; this.hueEdit.Text = "160"; this.hueEdit.TextChanged += new System.EventHandler(this.hueEdit_TextChanged); // // satEdit // this.satEdit.Location = new System.Drawing.Point(124, 241); this.satEdit.MaxLength = 3; this.satEdit.Name = "satEdit"; this.satEdit.SetRange = new System.Drawing.Size(0, 240); this.satEdit.Size = new System.Drawing.Size(30, 20); this.satEdit.TabIndex = 6; this.satEdit.Text = "0"; this.satEdit.TextChanged += new System.EventHandler(this.satEdit_TextChanged); // // lumEdit // this.lumEdit.Location = new System.Drawing.Point(124, 264); this.lumEdit.MaxLength = 3; this.lumEdit.Name = "lumEdit"; this.lumEdit.SetRange = new System.Drawing.Size(0, 240); this.lumEdit.Size = new System.Drawing.Size(30, 20); this.lumEdit.TabIndex = 7; this.lumEdit.Text = "0"; this.lumEdit.TextChanged += new System.EventHandler(this.lumEdit_TextChanged); // // redEdit // this.redEdit.Location = new System.Drawing.Point(200, 218); this.redEdit.MaxLength = 3; this.redEdit.Name = "redEdit"; this.redEdit.SetRange = new System.Drawing.Size(0, 255); this.redEdit.Size = new System.Drawing.Size(30, 20); this.redEdit.TabIndex = 8; this.redEdit.Text = "0"; this.redEdit.TextChanged += new System.EventHandler(this.redEdit_TextChanged); // // greenEdit // this.greenEdit.Location = new System.Drawing.Point(200, 241); this.greenEdit.MaxLength = 3; this.greenEdit.Name = "greenEdit"; this.greenEdit.SetRange = new System.Drawing.Size(0, 255); this.greenEdit.Size = new System.Drawing.Size(30, 20); this.greenEdit.TabIndex = 9; this.greenEdit.Text = "0"; this.greenEdit.TextChanged += new System.EventHandler(this.greenEdit_TextChanged); // // blueEdit // this.blueEdit.Location = new System.Drawing.Point(200, 264); this.blueEdit.MaxLength = 3; this.blueEdit.Name = "blueEdit"; this.blueEdit.SetRange = new System.Drawing.Size(0, 255); this.blueEdit.Size = new System.Drawing.Size(30, 20); this.blueEdit.TabIndex = 10; this.blueEdit.Text = "0"; this.blueEdit.TextChanged += new System.EventHandler(this.blueEdit_TextChanged); // // Label1 // this.Label1.Location = new System.Drawing.Point(96, 220); this.Label1.Name = "Label1"; this.Label1.Size = new System.Drawing.Size(26, 18); this.Label1.TabIndex = 11; this.Label1.Text = "Hue"; this.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // label2 // this.label2.Location = new System.Drawing.Point(96, 243); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(26, 18); this.label2.TabIndex = 12; this.label2.Text = "Sat"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // label3 // this.label3.Location = new System.Drawing.Point(96, 266); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(26, 18); this.label3.TabIndex = 13; this.label3.Text = "Lum"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // label4 // this.label4.Location = new System.Drawing.Point(166, 220); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(34, 18); this.label4.TabIndex = 14; this.label4.Text = "Red:"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label5 // this.label5.Location = new System.Drawing.Point(158, 242); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(42, 18); this.label5.TabIndex = 15; this.label5.Text = "Green:"; this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label6 // this.label6.Location = new System.Drawing.Point(158, 266); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(42, 18); this.label6.TabIndex = 16; this.label6.Text = "Blue:"; this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label7 // this.label7.Location = new System.Drawing.Point(18, 266); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(60, 14); this.label7.TabIndex = 17; this.label7.Text = "Color|Solid"; // // CustomColorDlg // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(246, 330); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.label7, this.label6, this.label5, this.label4, this.label3, this.label2, this.Label1, this.blueEdit, this.greenEdit, this.redEdit, this.lumEdit, this.satEdit, this.hueEdit, this.button2, this.button1, this.currentColorPanel, this.lumBox, this.paletteBox}); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "CustomColorDlg"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Define Color"; this.Load += new System.EventHandler(this.CustomColorDlg_Load); this.ResumeLayout(false); }
public bool IsInTarget(NumericTextBox target) { if (target == null) return false; if (this.Left <= target.Right && target.Left <= this.Right && this.Top <= target.Bottom && target.Top <= this.Bottom) return true; return false; }
private HtmlTableRow NewMethod(DataView dvGJ, int i,string p) { HtmlTableRow htr = new HtmlTableRow(); htr.ID = dvGJ.Table.Rows[i]["TYPENAME"].ToString()+p; HtmlTableCell tc = new HtmlTableCell(); Label hx = new Label(); hx.Text = dvGJ.Table.Rows[i]["TYPENAME"].ToString(); tc.Controls.Add(hx); tc.Attributes.Add("class", "TableSpecial1"); htr.Controls.Add(tc); IList<string> titleList = GetTitle(htr.ID); foreach (string item in titleList) { HtmlTableCell tcn = new HtmlTableCell(); tcn.Attributes.Add("class", "TableSpecial1"); if (item.Contains("Weight")) { TextBox tb = new TextBox(); tb.Width = 70; tb.ID = item; tb.Attributes.Add("onpaste", "return false"); tb.Attributes.Add("onkeypress", "if ((event.keyCode<48||event.keyCode>57) && event.keyCode!=46 && event.keyCode!=45 && event.keyCode!=13) event.returnValue=false;"); tcn.Controls.Add(tb); } else { NumericTextBox tb = new NumericTextBox(); tb.Width = 70; tb.ID = item; tcn.Controls.Add(tb); } htr.Controls.Add(tcn); } return htr; }
void absXY_Click(object sender, EventArgs e) { System.Drawing.Point loc = _contextMenu.Location; if (_contextMenu != null) _contextMenu.Close(); using (Form absXYForm = new Form { TopLevel = true, ShowInTaskbar = false, Size = new Size(220, 50), Text = "X / Y", FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow }) { absXYForm.Disposed += absXYForm_Disposed; NumericTextBox xBox = new NumericTextBox { TabStop = true, TabIndex = 0 }; xBox.TextChanged += xBox_TextChanged; NumericTextBox yBox = new NumericTextBox { TabStop = true, TabIndex = 1 }; yBox.TextChanged += yBox_TextChanged; FlowLayoutPanel flowPanel = new FlowLayoutPanel { Margin = new Padding(5), Size = _contextMenu.Size, FlowDirection = System.Windows.Forms.FlowDirection.LeftToRight }; flowPanel.Controls.Add(xBox); flowPanel.Controls.Add(yBox); flowPanel.Dock = DockStyle.Fill; absXYForm.Controls.Add(flowPanel); absXYForm.ShowDialog(); absXYForm.Location = loc; } }