Example #1
0
        private void iGridToolBar1_NewRecord(object sender, EventArgs e)
        {
            UCGroupEntry entry = new UCGroupEntry();

            ISE.UILibrary.Utils.UIUtils.SetFrmTrans(entry, "ایجاد گروه", FormBorderStyle.FixedDialog);
            if (entry.DialogResult != DialogResult.OK)
            {
                return;
            }
            if (view.Insert(entry.NewGroup))
            {
                ISE.Framework.Client.Win.Viewer.MessageViewer.ShowMessage(ISE.Framework.Client.Win.Viewer.OperationType.Insert);
            }
        }
Example #2
0
 private void iGridToolBar1_EditRecord(object sender, EventArgs e)
 {
     if (this.iGridEXGroup.CurrentRow != null)
     {
         var grp = (SecurityGroupDto)this.iGridEXGroup.CurrentRow.DataRow;
         if (grp != null)
         {
             UCGroupEntry entry = new UCGroupEntry(TransMode.EditRecord, grp);
             ISE.UILibrary.Utils.UIUtils.SetFrmTrans(entry, "ایجاد گروه", FormBorderStyle.FixedDialog);
             if (entry.DialogResult != DialogResult.OK)
             {
                 return;
             }
             view.Update(grp);
         }
     }
 }