/// <summary> /// Contructor Login /// </summary> /// <history> /// [vipacheco] 2-26-2016 Created /// [edgrodriguez] 27/02/2016 Modified /// [edgrodriguez] 29/02/2016 Modified /// [erosado] 25/04/2016 Modified. Se restructuro y se agregaron parametros _permission, _permissionLevel, _program, _modeSwitchLoginUser /// [jorcanche] 16/08/2016 Se agrego el parametro windowStartupLocation sirve para definir en que posicion estara el windowStartupLocation /// </history> public frmLogin( Window splash = null, EnumLoginType loginType = EnumLoginType.Normal, EnumProgram program = EnumProgram.All, bool validatePermission = false, bool validateRole = false, bool changePassword = false, bool autoSign = false, EnumPermission permission = EnumPermission.None, EnumPermisionLevel permissionLevel = EnumPermisionLevel.None, EnumRole role = EnumRole.None, bool switchLoginUserMode = false, bool invitationMode = false, string invitationPlaceId = "", WindowStartupLocation windowStartupLocation = WindowStartupLocation.Manual ) { InitializeComponent(); _splash = splash; _loginType = loginType; _program = program; _validatePermission = validatePermission; _validateRole = validateRole; _changePassword = changePassword; _autoSign = autoSign; _permission = permission; _permissionLevel = permissionLevel; _role = role; _modeSwitchLoginUser = switchLoginUserMode; _invitationMode = invitationMode; _invitationPlaceId = invitationPlaceId; WindowStartupLocation = windowStartupLocation; CloseWindow = new ExecuteCommandHelper(x => btnCancelar_Click(this, null)); }
/// <summary> /// Constructor /// </summary> /// <history> /// [wtorres] 14/Mar/2016 Modified. Elimine el parametro UserData /// </history> public frmInventoryMovements() { InitializeComponent(); DateFocus = new ExecuteCommandHelper(c => dtpDate.Focus()); SaveData = new ExecuteCommandHelper(c => btnSave_Click(null, null)); CancelEdit = new ExecuteCommandHelper(c => btnCancel_Click(null, null)); CloseWindow = new ExecuteCommandHelper(c => btnClose_Click(null, null)); }
/// <summary> /// Constructor del formulario /// </summary> /// <param name="fileInfo">Archivo a mostrar</param> /// <param name="exportExcel">Permiso para exportar a excel</param> /// <param name="isProcessor">Si se abre desde un processor de reportes</param> /// <history> /// [emoguel] 13/09/2016 created /// </history> public frmDocumentViewer(FileInfo fileInfo, bool exportExcel, bool isProcessor = true) { InitializeComponent(); _excelFile = fileInfo; _excelFile.Refresh(); _exportExcel = exportExcel; _fullPathAndName = _excelFile.FullName.Replace(_excelFile.Extension, string.Empty); if (!isProcessor) { Closing += Window_Closed; ShowInTaskbar = false; } //Creamos los commands para exportar a Excel y Pdf ExportToExcel = new ExecuteCommandHelper(x => btnExportToExcel_Click(null, null)); ExportToPdf = new ExecuteCommandHelper(x => btnExportToPdf_Click(null, null)); }
int totalRows = 0; // total de registros #endregion #region Constructores y Destructores public frmCxCAuthorization() { InitializeComponent(); dtpkFrom.Value = dtmFrom; dtpkTo.Value = dtmTo; _dtpServerDate = BRHelpers.GetServerDate(); LoadCombo = new ExecuteCommandHelper(x => LoadPersonnel()); CxCDataViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("cxCDataViewSource"))); LoadAtributes(); underPaymentMotiveViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("underPaymentMotiveViewSource"))); if (!Context.User.HasPermission(EnumPermission.CxCAuthorization, EnumPermisionLevel.Standard)) { imgButtonSave.IsEnabled = false; dtgCxC.Columns.SingleOrDefault(c => c.Header.ToString() == "Auth.").IsReadOnly = true; } }
public frmMailOutsTexts() { InitializeComponent(); RefreshDataSource = new ExecuteCommandHelper(x => LoadDataSource()); #region Manejadores de Eventos ucRichTextBoxToolBar1.eColorPick += new EventHandler(ColorPick); ucRichTextBoxToolBar1.eExportRTF += new EventHandler(ExportRTF); ucRichTextBoxToolBar1.eLoadRTF += new EventHandler(LoadRTF); ucRichTextBoxToolBar1.eTextBold += new EventHandler(TextBold); ucRichTextBoxToolBar1.eTextCenter += new EventHandler(TextCenter); ucRichTextBoxToolBar1.eTextItalic += new EventHandler(TextItalic); ucRichTextBoxToolBar1.eTextLeft += new EventHandler(TextLeft); ucRichTextBoxToolBar1.eTextRight += new EventHandler(TextRight); ucRichTextBoxToolBar1.eTextStrikeOut += new EventHandler(TextStrikeOut); ucRichTextBoxToolBar1.eTextUnderLine += new EventHandler(TextUnderLine); ucRichTextBoxToolBar2.eChangeFontFamily += new EventHandler(ChangeFontFamily); ucRichTextBoxToolBar2.eChangeFontSize += new EventHandler(ChangeFontSize); #endregion }
public frmSalesLiner() { InitializeComponent(); LoadCombo = new ExecuteCommandHelper(x => LoadPersonnel()); }
public frmGuestsPR() { InitializeComponent(); LoadCombo = new ExecuteCommandHelper(x => LoadPersonnel()); }
public frmMailOutsConfig() { InitializeComponent(); RefreshDataSource = new ExecuteCommandHelper(x => LoadDataSource()); }
/// <summary> /// Constructor /// </summary> /// <history> /// [wtorres] 15/Mar/2016 Modified. Elimine el parametro UserData /// </history> public frmPRStatistics() { InitializeComponent(); //Instanciamos nuestro delegado LoadCatalogList = new ExecuteCommandHelper(x => LoadCatalogs()); }