private void BtnTestB_Click(object sender, EventArgs e) { LanguageList = new List <FieldUIs.UCInstanceEditor>(); var ofd = new OpenFileDialog(); ofd.Filter = "C# source code(*.cs) | *.cs"; DialogResult result = ofd.ShowDialog(); if (result == DialogResult.OK) // Test result. { var ljson = new LoadJsFile(); InputClass = ljson.ReadJSFile(ofd.FileName); button1.PerformClick(); } }
private void DeployClass(ClClass input) { FLPMain.Controls.Clear(); InputClass = input; foreach (var ele in input.Fields) { if (ele.GetType() == typeof(ClEnumerableField)) { var uc = new FieldUIs.UCEnumerableUI(ele); uc.Parent = FLPMain; } else { var uc = new FieldUIs.UCPrimitiveUI(ele); uc.Parent = FLPMain; } } }
public UCInstanceEditor(ClClass input) : this() { FLPMain.Controls.Clear(); InputClass = input; foreach (var ele in input.Fields) { if (ele.GetType() == typeof(ClEnumerableField)) { var uc = new UCEnumerableUI(ele); uc.Parent = FLPMain; } else { var uc = new UCPrimitiveUI(ele); uc.Parent = FLPMain; } } }