Ejemplo n.º 1
0
        private void editButton_Click(object sender, EventArgs e)
        {
            FormulaEditor dialog = new FormulaEditor();

            dialog.Tag = this.Tag;
            dialog.ShowDialog(this.Owner);
        }
Ejemplo n.º 2
0
        private void parameterButton_Click(object sender, EventArgs e)
        {
            Form   dialog;
            Button parameter = sender as Button;

            if (parameter == null)
            {
                return;
            }
            string key = parameter.Tag as string;

            if (key != null)
            {
                switch (key)
                {
                case "P01":
                    dialog = new BurnerPower();
                    dialog.ShowDialog(this);
                    break;

                case "S17":
                case "P02":
                    dialog     = new S17Dialog();
                    dialog.Tag = key;
                    dialog.ShowDialog(this);
                    break;

                case "P03":
                    dialog = new EarthPosition();
                    dialog.ShowDialog(this);
                    break;

                case "P04":
                    dialog = new FlowParameters();
                    dialog.ShowDialog(this);
                    break;

                //case "S17":
                //case "P02":
                case "P06":
                case "P07":
                case "P08":
                case "P09":
                case "P10":
                    dialog     = new FormulaEditor();
                    dialog.Tag = key;
                    dialog.ShowDialog(this);
                    break;

                default:
                    break;
                }
            }
        }