示例#1
0
        private void ucBtnQuery_Click(object sender, EventArgs e)
        {
            FSoftVersionSelector fSoftVersionSelector = new FSoftVersionSelector();

            fSoftVersionSelector.SoftVersionSelectedEvent += new ParentChildRelateEventHandler <ParentChildRelateEventArgs <string> >(Form_Event);
            fSoftVersionSelector.Owner = this;
            fSoftVersionSelector.ShowDialog();
            if (this.ucLabelSoftVersion.Value.Trim().Length > 0)
            {
                this.ucLabelRcard.TextFocus(true, true);
            }
            else
            {
                this.ucLabelSoftVersion.TextFocus(false, true);
            }
        }
        private void ucButtonQuery_Click(object sender, EventArgs e)
        {
            FSoftVersionSelector selector = new FSoftVersionSelector();

            selector.Owner = this;
            selector.SoftVersionSelectedEvent += new ParentChildRelateEventHandler <ParentChildRelateEventArgs <string> >(selector_SoftVersionSelectedEvent);
            selector.ShowDialog();
            selector = null;

            if (this.ucLabelEditSoftVersion.Value.Trim().Length > 0)
            {
                this.ucLabelEditRCardFG.TextFocus(false, true);
            }
            else
            {
                this.ucLabelEditSoftVersion.TextFocus(false, true);
            }
        }