Exemplo n.º 1
0
        private bool Edit(Bitmap icon)
        {
            try
            {
                using (var frm = new BTSS.Presentation.FormUser())
                {
                    frm.Operation = Common.Core.Operation.UPDATE;
                    frm.Icon = Icon.FromHandle(icon.GetHicon());
                    frm.Text = "Users[EDIT]";
                    frm.UserId = id;
                    if (frm.ShowDialog() == DialogResult.OK)
                        RefreshListing();
                }

                return true;
            }
            catch (Exception)
            {
                throw;
            }
        }
Exemplo n.º 2
0
        private bool View(Bitmap icon)
        {
            try 
	        {	        
        		using (var frm = new BTSS.Presentation.FormUser())
                {
                    frm.Operation = Common.Core.Operation.VIEW;
                    frm.Icon = Icon.FromHandle(icon.GetHicon());
                    frm.Text = "Users[VIEW]";
                    frm.UserId = id;
                    frm.ShowDialog();
                }
                return true ; 
	        }
	        catch (Exception)
	        {
		        throw;
	        }

        } 
Exemplo n.º 3
0
 private bool New(Bitmap icon)
 {
     try
     { 
          using (var frm = new BTSS.Presentation.FormUser())
         {
             frm.Operation = Common.Core.Operation.INSERT;
             frm.Icon = Icon.FromHandle(icon.GetHicon());
             frm.Text = "Users[NEW]";
             frm.OnSave += new EventHandler(RefreshOnSave);
             if (frm.ShowDialog() == DialogResult.OK)
                 RefreshListing();
         }
         return true;
     }
     catch (Exception)
     {
         throw;
     }
 }