예제 #1
0
파일: Main.cs 프로젝트: GianiWVL/VUYLSTEKE
        private void bbiAddUser_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            User user = null;

            try
            {
                this.Cursor = Cursors.WaitCursor;
                user        = new User(PROF_IT.Common.Enumerations.TypeForm.NewForm);
                if (user.ShowDialog() == DialogResult.OK)
                {
                }
            }
            catch (System.Exception exception)
            {
                Exception thisException = exception;
                Management.ShowException(thisException);
            }
            finally
            {
                if (user != null)
                {
                    user.Dispose();
                }
                user        = null;
                this.Cursor = Cursors.Default;
            }
        }
예제 #2
0
        private void sbtnDetailUser_Click(object sender, EventArgs e)
        {
            User user = null;

            try
            {
                this.Cursor = Cursors.WaitCursor;
                if (gdvUsers.IsRowSelected(gdvUsers.FocusedRowHandle))
                {
                    user = new User(PROF_IT.Common.Enumerations.TypeForm.PropertyForm)
                    {
                        SetUser = (TIS.DL.Internal.User.UserObject)gdvUsers.GetRow(gdvUsers.FocusedRowHandle)
                    };
                    if (user.ShowDialog() == DialogResult.OK)
                    {
                        this.FindAll();
                    }
                }
            }
            catch (System.Exception exception)
            {
                Exception thisException = exception;
                Management.ShowException(thisException);
            }
            finally
            {
                if (user != null)
                {
                    user.Dispose();
                }
                user        = null;
                this.Cursor = Cursors.Default;
            }
        }
예제 #3
0
파일: Main.cs 프로젝트: GianiWVL/VUYLSTEKE
 private void bbiAddUser_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     User user = null;
     try
     {
         this.Cursor = Cursors.WaitCursor;
         user = new User(PROF_IT.Common.Enumerations.TypeForm.NewForm);
         if (user.ShowDialog() == DialogResult.OK)
         {
         }
     }
     catch (System.Exception exception)
     {
         Exception thisException = exception;
         Management.ShowException(thisException);
     }
     finally
     {
         if (user != null)
         {
             user.Dispose();
         }
         user = null;
         this.Cursor = Cursors.Default;
     }
 }
예제 #4
0
파일: Users.cs 프로젝트: GianiWVL/VUYLSTEKE
 private void sbtnDetailUser_Click(object sender, EventArgs e)
 {
     User user = null;
     try
     {
         this.Cursor = Cursors.WaitCursor;
         if (gdvUsers.IsRowSelected(gdvUsers.FocusedRowHandle))
         {
             user = new User(PROF_IT.Common.Enumerations.TypeForm.PropertyForm)
             {
                 SetUser = (TIS.DL.Internal.User.UserObject)gdvUsers.GetRow(gdvUsers.FocusedRowHandle)
             };
             if (user.ShowDialog() == DialogResult.OK)
             {
                 this.FindAll();
             }
         }
     }
     catch (System.Exception exception)
     {
         Exception thisException = exception;
         Management.ShowException(thisException);
     }
     finally
     {
         if (user != null)
         {
             user.Dispose();
         }
         user = null;
         this.Cursor = Cursors.Default;
     }
 }