Exemplo n.º 1
0
        private void RenameDataStream_Click(object sender, EventArgs e)
        {
            UserTextInput tmpTx = new UserTextInput();
            renamedItems  tmpRenamedItem;

            tmpTx.Text         = "Rename";
            tmpTx.TextBoxTitle = "Enter new name...";
            foreach (DataStream tmpDS in tempDataStreams)
            {
                if (tmpDS.Name == DataStreamColections.SelectedNode.Text)
                {
                    tmpTx.ReturnText = tmpDS.Name;
                }
            }
            //tmpTx.ShowDialog();

            if (tmpTx.ShowDialog() == DialogResult.OK)
            {
                foreach (DataStream tmpDS in tempDataStreams)
                {
                    if (tmpDS.Name == DataStreamColections.SelectedNode.Text)
                    {
                        tmpRenamedItem         = new renamedItems();
                        tmpRenamedItem.befoure = tmpDS.Name;
                        tmpRenamedItem.after   = tmpTx.ReturnText;
                        tmpRenamedItem.type    = 0;
                        tempRenamed.Add(tmpRenamedItem);

                        tmpDS.Name = tmpTx.ReturnText;
                        RefreshTreeItems("");
                        return;
                    }
                }
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Adds data stream to root tree
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AddDataStream_Click(object sender, EventArgs e)
        {
            UserTextInput txtInput = new UserTextInput();
            txtInput.Text = "Add data stream";
            txtInput.TextBoxTitle = "Enter name...";
            //txtInput.ShowDialog();

            if(txtInput.ShowDialog() == DialogResult.OK)
            {
                Add_DataStream(txtInput.ReturnText);
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// Adds data stream to root tree
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AddDataStream_Click(object sender, EventArgs e)
        {
            UserTextInput txtInput = new UserTextInput();

            txtInput.Text         = "Add data stream";
            txtInput.TextBoxTitle = "Enter name...";
            //txtInput.ShowDialog();

            if (txtInput.ShowDialog() == DialogResult.OK)
            {
                Add_DataStream(txtInput.ReturnText);
            }
        }
Exemplo n.º 4
0
        /// <summary>
        /// Adds column to specific selected data stream
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AddColumn_Click(object sender, EventArgs e)
        {
            TreeNode parentNode = DataStreamColections.SelectedNode;
            if(parentNode.Level != 0)
            {
                return;
            }
            UserTextInput txtInput = new UserTextInput();
            txtInput.Text = "Add column";
            txtInput.TextBoxTitle = "Enter name...";
            //txtInput.ShowDialog();

            if(txtInput.ShowDialog() == DialogResult.OK)
            {
                Add_Column(parentNode.Text, txtInput.ReturnText);
            }
        }
Exemplo n.º 5
0
        /// <summary>
        /// Adds column to specific selected data stream
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AddColumn_Click(object sender, EventArgs e)
        {
            TreeNode parentNode = DataStreamColections.SelectedNode;

            if (parentNode.Level != 0)
            {
                return;
            }
            UserTextInput txtInput = new UserTextInput();

            txtInput.Text         = "Add column";
            txtInput.TextBoxTitle = "Enter name...";
            //txtInput.ShowDialog();

            if (txtInput.ShowDialog() == DialogResult.OK)
            {
                Add_Column(parentNode.Text, txtInput.ReturnText);
            }
        }
Exemplo n.º 6
0
        private void RenameDataStream_Click(object sender, EventArgs e)
        {
            UserTextInput tmpTx = new UserTextInput();
            renamedItems tmpRenamedItem;
            tmpTx.Text = "Rename";
            tmpTx.TextBoxTitle = "Enter new name...";
            foreach(DataStream tmpDS in tempDataStreams)
            {
                if(tmpDS.Name == DataStreamColections.SelectedNode.Text)
                {
                    tmpTx.ReturnText = tmpDS.Name;
                }
            }
            //tmpTx.ShowDialog();

            if(tmpTx.ShowDialog() == DialogResult.OK)
            {
                foreach(DataStream tmpDS in tempDataStreams)
                {
                    if(tmpDS.Name == DataStreamColections.SelectedNode.Text)
                    {
                        tmpRenamedItem = new renamedItems();
                        tmpRenamedItem.befoure = tmpDS.Name;
                        tmpRenamedItem.after = tmpTx.ReturnText;
                        tmpRenamedItem.type = 0;
                        tempRenamed.Add(tmpRenamedItem);

                        tmpDS.Name = tmpTx.ReturnText;
                        RefreshTreeItems("");
                        return;
                    }
                }
            }
        }