Beispiel #1
0
 internal void OnControlKeyPress(object sender, ControlKeyPressEventArgs e)
 {
     if (this.ControlKeyPress != null)
     {
         this.ControlKeyPress(this, e);  // sender
     }
 }
Beispiel #2
0
        private void DoKeyPress(object sender, KeyPressEventArgs e)
        {
            // if (this.ControlKeyPress != null)
            {
                ControlKeyPressEventArgs e1 = new ControlKeyPressEventArgs();
                e1.e = e;
                if (sender == (object)this.textBox_publishTime)
                {
                    e1.Name = "PublishTime";
                }
                else if (sender == (object)this.comboBox_state)
                {
                    e1.Name = "State";
                }
                else if (sender == (object)this.textBox_issue)
                {
                    e1.Name = "Issue";
                }
                else if (sender == (object)this.textBox_zong)
                {
                    e1.Name = "Zong";
                }
                else if (sender == (object)this.textBox_volume)
                {
                    e1.Name = "Volume";
                }
                else if (sender == (object)this.textBox_orderInfo)
                {
                    e1.Name = "OrderInfo";
                }
                else if (sender == (object)this.textBox_comment)
                {
                    e1.Name = "Comment";
                }
                else if (sender == (object)this.textBox_batchNo)
                {
                    e1.Name = "BatchNo";
                }
                else if (sender == (object)this.textBox_recPath)
                {
                    e1.Name = "RecPath";
                }
                else if (sender == (object)this.textBox_refID)
                {
                    e1.Name = "RefID";
                }
                else if (sender == (object)this.textBox_operations)
                {
                    e1.Name = "Operations";
                }
                else
                {
                    Debug.Assert(false, "未知的部件");
                    return;
                }

                // this.ControlKeyPress(this, e1);
                this.OnControlKeyPress(this, e1);
            }
        }
Beispiel #3
0
        private void DoKeyPress(object sender, KeyPressEventArgs e)
        {
            if (this.ControlKeyPress != null)
            {
                ControlKeyPressEventArgs e1 = new ControlKeyPressEventArgs();
                e1.e = e;
                if (sender == (object)this.textBox_zipcode)
                {
                    e1.Name = "Zipcode";
                }
                else if (sender == (object)this.textBox_address)
                {
                    e1.Name = "Address";
                }
                else if (sender == (object)this.textBox_name)
                {
                    e1.Name = "Name";
                }
                else if (sender == (object)this.textBox_department)
                {
                    e1.Name = "Department";
                }
                else if (sender == (object)this.textBox_tel)
                {
                    e1.Name = "Tel";
                }
                else if (sender == (object)this.textBox_email)
                {
                    e1.Name = "Email";
                }
                else if (sender == (object)this.textBox_bank)
                {
                    e1.Name = "Bank";
                }
                else if (sender == (object)this.textBox_accounts)
                {
                    e1.Name = "Accounts";
                }
                else if (sender == (object)this.comboBox_payStyle)
                {
                    e1.Name = "PayStyle";
                }
                else if (sender == (object)this.textBox_comment)
                {
                    e1.Name = "Comment";
                }
                else
                {
                    Debug.Assert(false, "未知的部件");
                    return;
                }

                this.ControlKeyPress(this, e1);
            }
        }
Beispiel #4
0
        private void DoKeyPress(object sender, KeyPressEventArgs e)
        {
            if (/*this.ControlKeyPress != null*/ true)
            {
                ControlKeyPressEventArgs e1 = new ControlKeyPressEventArgs();
                e1.e = e;
                if (sender == (object)this.textBox_index)
                {
                    e1.Name = "Index";
                }
                else if (sender == (object)this.checkedComboBox_state)
                {
                    e1.Name = "State";
                }
                else if (sender == (object)this.comboBox_type)
                {
                    e1.Name = "Type";
                }
                else if (sender == (object)this.comboBox_orderSuggestion)
                {
                    e1.Name = "OrderSuggestion";
                }
                else if (sender == (object)this.textBox_title)
                {
                    e1.Name = "Title";
                }
                else if (sender == (object)this.textBox_creator)
                {
                    e1.Name = "Creator";
                }
                else if (sender == (object)this.textBox_subject)
                {
                    e1.Name = "Subject";
                }
                else if (sender == (object)this.textBox_summary)
                {
                    e1.Name = "Summary";
                }
                else if (sender == (object)this.textBox_content)
                {
                    e1.Name = "Content";
                }
                else if (sender == (object)this.textBox_createTime)
                {
                    e1.Name = "CreateTime";
                }
                else if (sender == (object)this.textBox_lastModified)
                {
                    e1.Name = "LastModified";
                }
                else if (sender == (object)this.textBox_recPath)
                {
                    e1.Name = "RecPath";
                }
                else if (sender == (object)this.textBox_refID)
                {
                    e1.Name = "RefID";
                }
                else if (sender == (object)this.textBox_operations)
                {
                    e1.Name = "Operations";
                }
                else
                {
                    Debug.Assert(false, "未知的部件");
                    return;
                }

                // this.ControlKeyPress(this, e1);
                this.OnControlKeyPress(this, e1);
            }
        }
Beispiel #5
0
        private void DoKeyPress(object sender, KeyPressEventArgs e)
        {
            // if (this.ControlKeyPress != null)
            {
                ControlKeyPressEventArgs e1 = new ControlKeyPressEventArgs();
                e1.e = e;
                if (sender == (object)this.textBox_index)
                {
                    e1.Name = "Index";
                }
                else if (sender == (object)this.comboBox_state)
                {
                    e1.Name = "State";
                }
                else if (sender == (object)this.textBox_catalogNo)
                {
                    e1.Name = "CatalogNo";
                }
                else if (sender == (object)this.comboBox_seller)
                {
                    e1.Name = "Seller";
                }
                else if (sender == (object)this.comboBox_source)
                {
                    e1.Name = "Source";
                }
                else if (sender == (object)this.textBox_range)
                {
                    e1.Name = "Range";
                }
                else if (sender == (object)this.textBox_issueCount)
                {
                    e1.Name = "IssueCount";
                }
                else if (sender == (object)this.textBox_copy)
                {
                    e1.Name = "Copy";
                }
                else if (sender == (object)this.textBox_price)
                {
                    e1.Name = "Price";
                }
                else if (sender == (object)this.textBox_totalPrice)
                {
                    e1.Name = "TotalPrice";
                }
                else if (sender == (object)this.textBox_fixedPrice)
                {
                    e1.Name = "FixedPrice";
                }
                else if (sender == (object)this.textBox_discount)
                {
                    e1.Name = "Discount";
                }
                else if (sender == (object)this.dateTimePicker_orderTime)
                {
                    e1.Name = "OrderTime";
                }
                else if (sender == (object)this.textBox_orderID)
                {
                    e1.Name = "OrderID";
                }
                else if (sender == (object)this.textBox_distribute)
                {
                    e1.Name = "Distribute";
                }
                else if (sender == (object)this.comboBox_class)
                {
                    e1.Name = "Class";
                }
                else if (sender == (object)this.textBox_comment)
                {
                    e1.Name = "Comment";
                }
                else if (sender == (object)this.textBox_batchNo)
                {
                    e1.Name = "BatchNo";
                }
                else if (sender == (object)this.textBox_sellerAddress)
                {
                    e1.Name = "SellerAddress";
                }
                else if (sender == (object)this.textBox_recPath)
                {
                    e1.Name = "RecPath";
                }
                else if (sender == (object)this.textBox_refID)
                {
                    e1.Name = "RefID";
                }
                else if (sender == (object)this.textBox_operations)
                {
                    e1.Name = "Operations";
                }
                else
                {
                    Debug.Assert(false, "未知的部件");
                    return;
                }

                // this.ControlKeyPress(this, e1);
                this.OnControlKeyPress(this, e1);
            }
        }
Beispiel #6
0
 private void entityEditControl_editing_ControlKeyPress(object sender, ControlKeyPressEventArgs e)
 {
 }