Skip to content
This repository was archived by the owner on Mar 4, 2018. It is now read-only.

Commit 624ccb7

Browse files
committed
CL record length config
1 parent 4690d6a commit 624ccb7

File tree

4 files changed

+106
-16
lines changed

4 files changed

+106
-16
lines changed

Forms/userSettings.Designer.cs

Lines changed: 87 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Forms/userSettings.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ private void userSettings_Load(object sender, EventArgs e)
1616
textBox1.Text = IBMi.GetConfig("system");
1717
textBox2.Text = IBMi.GetConfig("username");
1818
textBox3.Text = IBMi.GetConfig("password");
19+
numericUpDown1.Value = Convert.ToInt32(IBMi.GetConfig("clrcdlen"));
1920
}
2021

2122
private void button2_Click(object sender, EventArgs e)
@@ -44,8 +45,24 @@ private void button1_Click(object sender, EventArgs e)
4445
IBMi.SetConfig("system", textBox1.Text);
4546
IBMi.SetConfig("username", textBox2.Text);
4647
IBMi.SetConfig("password", textBox3.Text);
48+
IBMi.SetConfig("clrcdlen", numericUpDown1.Value.ToString());
4749

4850
this.Close();
4951
}
52+
53+
private void textBox1_TextChanged(object sender, EventArgs e)
54+
{
55+
56+
}
57+
58+
private void label2_Click(object sender, EventArgs e)
59+
{
60+
61+
}
62+
63+
private void textBox2_TextChanged(object sender, EventArgs e)
64+
{
65+
66+
}
5067
}
5168
}

IBMiTools/IBMi.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ public static void LoadConfig(string FileLoc, string System = "mysystem")
7979
CheckExist("clrcdlen", "80");
8080
CheckExist("installlib", "QGPL");
8181
CheckExist("experimental", "false");
82+
PrintConfig();
8283
}
8384

8485

Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ internal static void DisplayEdit()
145145

146146
internal static void ManageCL()
147147
{
148-
CLFile.CorrectLines(NppFunctions.GetCurrentFileName(), 80);
148+
CLFile.CorrectLines(NppFunctions.GetCurrentFileName(), Convert.ToInt32(IBMi.GetConfig("clrcdlen")));
149149
NppFunctions.RefreshWindow(NppFunctions.GetCurrentFileName());
150150
}
151151

0 commit comments

Comments
 (0)