public void upTSecWindow() { String text = L2Edit.Text; char k = '\n'; String[] st = text.Split(k); for (int j = 0; j < st.Length; j++) { if (st[j].StartsWith("EnableSecondWindow")) { st[j] = "EnableSecondWindow=" + SeccondWind.Checked; } } String tx = ""; for (int l = 0; l < st.Length; l++) { tx = tx + st[l] + "\n"; } L2Edit.Clear(); L2Edit.Text = tx; L2Edit.Refresh(); }
public void upNetLog() { String text = L2Edit.Text; char k = '\n'; String[] st = text.Split(k); Boolean update = false; for (int j = 0; j < st.Length; j++) { if (st[j].StartsWith("IsL2NetLog")) { st[j] = "IsL2NetLog=" + NetLog.Checked; update = true; } } String tx = ""; for (int l = 0; l < st.Length; l++) { tx = tx + st[l] + "\n"; } if (!update) { tx = tx + "IsL2NetLog=" + NetLog.Checked; } L2Edit.Clear(); L2Edit.Text = tx; L2Edit.Refresh(); }
public void upTestServer() { String text = L2Edit.Text; char k = '\n'; String[] st = text.Split(k); for (int j = 0; j < st.Length; j++) { if (st[j].StartsWith("L2TestServer")) { st[j] = "L2TestServer=" + TestServer.Checked; } } String tx = ""; for (int l = 0; l < st.Length; l++) { tx = tx + st[l] + "\n"; } L2Edit.Clear(); L2Edit.Text = tx; L2Edit.Refresh(); }
public void upPort() { String text = L2Edit.Text; char k = '\n'; String[] st = text.Split(k); for (int j = 0; j < st.Length; j++) { if (st[j].StartsWith("Port")) { st[j] = "Port=" + PortText.Text; } } String tx = ""; for (int l = 0; l < st.Length; l++) { tx = tx + st[l] + "\n"; } L2Edit.Clear(); L2Edit.Text = tx; L2Edit.Refresh(); }