private void Inputdialog_Load(object sender, EventArgs e)
        {
            TextBox firstTxbox = null;
            int     tabIndex   = 0;

            int y = 30;

            foreach (string s in inputFields)
            {
                Label l = new Label();
                l.Location = new Point(5, y);
                l.Text     = s;

                TextBox t = new TextBox();
                t.Location = new Point(l.Width + 10, y);

                if (tabIndex == 0)
                {
                    firstTxbox = t;
                }

                t.TabIndex = tabIndex++;

                if (historicNameValues.ContainsKey(s))
                {
                    t.Text = historicNameValues[s];
                }

                inputGroupBox.Controls.Add(l);
                inputGroupBox.Controls.Add(t);

                y += 35;

                outputs.Add(s, t);
            }

            submitBtn.TabIndex = tabIndex;

            if (infos != null)
            {
                infoTxbox.Text = DatasetInfo.renderInfoList(infos);
            }

            firstTxbox.Focus();
        }
Exemplo n.º 2
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            double ops = Math.Round(dataminingDb.getOperationsPerSecond(), 2);

            //Progress Text
            progress_label.Text = "Op/s " + (ops != 0.0 ? ops.ToString() : "Idle") + Environment.NewLine +
                                  dataminingDb.getProgress().getString();

            //State text
            state_label.Text = stateMessage;

            //Render dataInfo
            string infoString = DatasetInfo.renderInfoList(dataminingDb.getInfo());

            if (dataInfoTextbox.Text != infoString)
            {
                dataInfoTextbox.Text = infoString;
            }
        }