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
            {
                FSec_UserAddEdit uae = new FSec_UserAddEdit();

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

                uae.Close();
            }
        }
Example #2
0
        private void mnuFileChangePassword_Click(object sender, EventArgs e)
        {
            FSec_UserAddEdit uae = new FSec_UserAddEdit();

            RSLib.COSecurity sec = new RSLib.COSecurity();

            sec.InitAppSettings();
            uae.LoadByID(sec.UserID);
            uae.ShowDialog();
            uae.Close();
        }
Example #3
0
        protected override void bttNew_Click(object sender, EventArgs e)
        {
            base.bttNew_Click(sender, e);

            FSec_UserAddEdit uae = new FSec_UserAddEdit();

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

            uae.Close();
        }