Exemplo n.º 1
0
        private int sortColumn   = -1; //****************************Added****MZ

        protected override void bttOpen_Click(object sender, EventArgs e)
        {
            base.bttOpen_Click(sender, e);

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

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

                this.Close();
            }
            else
            {
                FDept_AddEdit dae = new FDept_AddEdit();

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

                dae.Close();
                dae = null;
            }
        }
Exemplo n.º 2
0
        protected override void bttNew_Click(object sender, EventArgs e)
        {
            base.bttNew_Click(sender, e);

            FDept_AddEdit dae = new FDept_AddEdit();

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

            dae.Close();
            dae = null;
        }