コード例 #1
0
        private void buttonApplySettings_Click(object sender, EventArgs e)
        {
            GenerateUI parent = (GenerateUI)this.Owner;

            parent.updateSBLSettings(textBoxWidth.Text, textBoxHeight.Text, textBoxName.Text, textBoxRX.Text, textBoxTX.Text, textBoxLWidth.Text, textBoxIWidth.Text, textBoxTSpace.Text, textBoxLSpace.Text, textBoxVGap.Text, textBoxHGap.Text);
            this.Close();
        }
コード例 #2
0
ファイル: Home.cs プロジェクト: bhojarajsahu/Project-Utility
        private void buttonUI_Click(object sender, EventArgs e)
        {
            GenerateUI newUIGenerate = new GenerateUI();

            //newUIGenerate.setTransaction("");
            newUIGenerate.setFileLocation("");
            newUIGenerate.Show();
        }
コード例 #3
0
        private void buttonUIDesign_Click(object sender, EventArgs e)
        {
            GenerateUI newUIGenerate = new GenerateUI();

            newUIGenerate.setTransaction(newDocument);
            newUIGenerate.setFileLocation(labelFile.Text);
            newUIGenerate.Show();
        }
コード例 #4
0
        private void buttonSave_Click(object sender, EventArgs e)
        {
            foreach (UIElement item in newUiElementList)
            {
                foreach (Control childc in Controls)
                {
                    if (childc is TextBox && childc.Name.Contains("txt" + item.Id))
                    {
                        item.Label = ((TextBox)childc).Text;
                    }

                    if (childc is TextBox && childc.Name.Contains("txtDefault" + item.Id))
                    {
                        item.Value = ((TextBox)childc).Text;
                    }

                    if (childc is ComboBox && childc.Name.Contains("combo" + item.Id))
                    {
                        foreach (Utilities.UtilityClass.ControlTypes.ControlType controlItem in Enum.GetValues(typeof(Utilities.UtilityClass.ControlTypes.ControlType)))
                        {
                            if (controlItem.ToString() == childc.Text)
                            {
                                item.ControlType = controlItem;
                            }
                        }
                    }
                }
            }

            GenerateUI parent = (GenerateUI)this.Owner;

            if (IsField)
            {
                parent.updatetext(newUiElementList);
            }
            else
            {
                parent.updateCollItem(newUiElementList);
            }
            this.Close();
        }