Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions src/UI/SettingsForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,18 @@ private void InitializeComponent()
this.Text = "MSAgent AI Settings";
this.Size = new Size(650, 550);
this.StartPosition = FormStartPosition.CenterScreen;
this.FormBorderStyle = FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.FormBorderStyle = FormBorderStyle.Sizable;
this.MaximizeBox = true;
this.MinimizeBox = true;
this.MinimumSize = new Size(650, 550);
this.AutoScroll = true;

// Create main tab control
_tabControl = new TabControl
{
Location = new Point(10, 10),
Size = new Size(615, 450)
Size = new Size(615, 450),
Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right
};

// Create tabs
Expand All @@ -208,7 +211,8 @@ private void InitializeComponent()
Text = "OK",
Location = new Point(365, 470),
Size = new Size(80, 30),
DialogResult = DialogResult.OK
DialogResult = DialogResult.OK,
Anchor = AnchorStyles.Bottom | AnchorStyles.Right
};
_okButton.Click += OnOkClick;

Expand All @@ -217,14 +221,16 @@ private void InitializeComponent()
Text = "Cancel",
Location = new Point(455, 470),
Size = new Size(80, 30),
DialogResult = DialogResult.Cancel
DialogResult = DialogResult.Cancel,
Anchor = AnchorStyles.Bottom | AnchorStyles.Right
};

_applyButton = new Button
{
Text = "Apply",
Location = new Point(545, 470),
Size = new Size(80, 30)
Size = new Size(80, 30),
Anchor = AnchorStyles.Bottom | AnchorStyles.Right
};
_applyButton.Click += OnApplyClick;

Expand Down