Example #1
0
        protected override void lvwItems_DoubleClick(object sender, EventArgs e)
        {
            base.lvwItems_DoubleClick(sender, e);

            int tmpID = Convert.ToInt32(lvwItems.SelectedItems[0].Text);

            if (base.mbIsSelect == true)
            {
                if (OnItemSelected != null)
                {
                    OnItemSelected(tmpID);
                }

                this.Close();
            }
            else
            {
                FCust_AddEdit cae = new FCust_AddEdit();

                cae.OnNewItem += new NewItemCreated(EditChange);
                cae.LoadByID(tmpID);
                cae.ShowDialog();
                cae.OnNewItem -= new NewItemCreated(EditChange);

                cae.Close();
                cae = null;
            }
        }
Example #2
0
        protected override void bttNew_Click(object sender, EventArgs e)
        {
            base.bttNew_Click(sender, e);

            FCust_AddEdit cae = new FCust_AddEdit();

            cae.OnNewItem += new NewItemCreated(EditChange);
            cae.ShowDialog();
            cae.OnNewItem -= new NewItemCreated(EditChange);

            cae.Close();
            cae = null;
        }