Exemple #1
0
        /** Updates controls to reflect change in given controlname */
        private void UpdateControls(string controlName, string value)
        {
            var control = MainWindow.FindControl(controlName, true);

            if (control != null)
            {
                if (control is GuiToggleButton)
                {
                    (control as GuiToggleButton).Value = bool.Parse(value);
                }
                if (control is GuiTextField)
                {
                    (control as GuiTextField).Value = value;
                }
            }
        }