Пример #1
0
        /// <summary>
        /// When execute clicked
        /// </summary>
        /// <param name="sender">sender</param>
        /// <param name="e">arg</param>
        private void executeItem_Click(object sender, EventArgs e)
        {
            Control c = sender as Control;

            if (this.exec)
            {
                this.txtSource.Text   = po.Execute();
                this.exec             = false;
                this.executeItem.Text = "Source";
            }
            else
            {
                this.txtSource.Text   = po.ToString();
                this.exec             = true;
                this.executeItem.Text = "Execute";
            }
        }