public void AddTextField(String preText, String postText, int width, String name) { StackPanel sp = KernelLib.GenLinePane(); addLabel2StackPane(ref sp, preText); addTextField2StackPane(ref sp, width); addLabel2StackPane(ref sp, postText); appendLinePan2Canvas(ref mMW.amCanvas, ref sp); LINETYPE type = LINETYPE.TXTFIELD; mLinetypes.Add(type); mVarNames.Add(name); }
public void AddRadioButtonLine(String preText, String postText, Dictionary <int, String> contents, String name) { StackPanel sp = KernelLib.GenLinePane(); addLabel2StackPane(ref sp, preText); addRadioButtonGroup2StackPane(ref sp, contents); addLabel2StackPane(ref sp, postText); appendLinePan2Canvas(ref mMW.amCanvas, ref sp); LINETYPE type = LINETYPE.RADIO; mLinetypes.Add(type); mVarNames.Add(name); }
public void AddComboLine(String preText, String postText, Dictionary <int, String> selections, String name) { StackPanel sp = KernelLib.GenLinePane(); addLabel2StackPane(ref sp, preText); addCombobox2StackPane(ref sp, selections); addLabel2StackPane(ref sp, postText); int elementCount = mMW.amCanvas.Children.Count; appendLinePan2Canvas(ref mMW.amCanvas, ref sp); LINETYPE type = LINETYPE.COMBO; mLinetypes.Add(type); mVarNames.Add(name); }