示例#1
0
 void FillLanguage()
 {
     lblName.Text         = ResourceHelper.GetReourceValue("ImageItem_lblName");
     lblDescription.Text  = ResourceHelper.GetReourceValue("ImageItem_lblDescription");
     lblDisplayIndex.Text = ResourceHelper.GetReourceValue("ImageItem_lblDisplayIndex");
     btnDelete.Content    = ResourceHelper.GetReourceValue("Common_btnRemove");
 }
示例#2
0
        private AspUser GetSaveAspUser(AspUser aspUser)
        {
            aspUser.IsResetPassword = chkResetPassword.IsChecked == true;
            aspUser.IsApproved      = chkAccountApproved.IsChecked == true;
            aspUser.Email           = txtEmail.Text;
            if (chkChangePasswordQuestionAnswer.IsChecked == true)
            {
                aspUser.PasswordQuestion = txtPasswordQuestion.Text;
                aspUser.PasswordAnswer   = txtPasswordAnswer.Text;
                if (string.IsNullOrEmpty(aspUser.PasswordQuestion))
                {
                    aspUser.PasswordQuestion = ResourceHelper.GetReourceValue("UserAccount_DefaultPasswordQuestion");
                }
                if (string.IsNullOrEmpty(aspUser.PasswordAnswer))
                {
                    aspUser.PasswordAnswer = ResourceHelper.GetReourceValue("UserAccount_DefaultPasswordAnswer");
                }
                aspUser.InputPassword = txtInputPassword.Password;
            }
            else
            {
                aspUser.PasswordQuestion = string.Empty;
                aspUser.PasswordAnswer   = string.Empty;
            }

            aspUser.ErrorMessage = string.Empty;
            return(aspUser);
        }
 private void gvwCustomers_CellValidating(object sender, Telerik.Windows.Controls.GridViewCellValidatingEventArgs e)
 {
     if (e.Cell.Column.UniqueName == "FirstName" || e.Cell.Column.UniqueName == "LastName")
     {
         if (e.NewValue.ToString().Length < 1)
         {
             e.IsValid      = false;
             e.ErrorMessage = ResourceHelper.GetReourceValue("Common_RequiredFieldGeneric");
         }
         else if (e.NewValue.ToString().Length > 128)
         {
             e.IsValid      = false;
             e.ErrorMessage = ResourceHelper.GetReourceValue("Common_NameLengthErrorMessage");
         }
     }
     //else if (e.Cell.Column.UniqueName == "DisplayIndex")
     //{
     //    int displayindex;
     //     if (!int.TryParse(e.NewValue.ToString(), out displayindex))
     //    {
     //        e.IsValid = false;
     //        e.ErrorMessage = Globals.UserMessages.RequiredFieldGeneric;
     //    }
     //}
 }
示例#4
0
 private void gvwSites_CellValidating(object sender, Telerik.Windows.Controls.GridViewCellValidatingEventArgs e)
 {
     if (e.Cell.Column.UniqueName == "Name" ||
         e.Cell.Column.UniqueName == "PropCode")
     {
         if (e.NewValue.ToString().Length < 1)
         {
             e.IsValid      = false;
             e.ErrorMessage = ResourceHelper.GetReourceValue("Common_RequiredFieldGeneric");
         }
         else if (e.NewValue.ToString().Length > 128)
         {
             e.IsValid      = false;
             e.ErrorMessage = ResourceHelper.GetReourceValue("Common_NameLengthErrorMessage");
         }
     }
     else if (e.Cell.Column.UniqueName == "DisplayIndex")
     {
         int displayindex;
         if (!int.TryParse(e.NewValue.ToString(), out displayindex))
         {
             e.IsValid      = false;
             e.ErrorMessage = ResourceHelper.GetReourceValue("Common_RequiredFieldGeneric");
         }
     }
 }
示例#5
0
        void btnInsertBookingEquipment_Click(object sender, RoutedEventArgs e)
        {
            RoomEquipment equipment = uiEquipmentList.SelectedItem as RoomEquipment;

            if (equipment != null && _selectedBookingId > 0)
            {
                List <BookingRoomEquipment> list = (List <BookingRoomEquipment>)gvwBookingEquipment.ItemsSource;
                if (list.Count(i => i.EquipmentId == equipment.EquipmentId) > 0)
                {
                    MessageBox.Show(ResourceHelper.GetReourceValue("Common_ItemExist"));
                }
                else
                {
                    BookingRoomEquipment newBookingEquipment = new BookingRoomEquipment();
                    newBookingEquipment.BookingId   = _selectedBookingId;
                    newBookingEquipment.EquipmentId = equipment.EquipmentId;
                    newBookingEquipment.Equipment   = equipment.Equipment;
                    newBookingEquipment.IsChanged   = true;
                    newBookingEquipment.Price       = equipment.Price;
                    newBookingEquipment.Unit        = equipment.Unit;
                    newBookingEquipment.Description = equipment.Description;
                    list.Add(newBookingEquipment);
                    gvwBookingEquipment.ItemsSource = null;
                    gvwBookingEquipment.ItemsSource = list;
                }
            }
        }
        void FillLanguage()
        {
            uiTitle.Text = ResourceHelper.GetReourceValue("BookingPaymentPage_uiTitle");
            lblSite.Text = ResourceHelper.GetReourceValue("Common_lblSite");
            ucSitePicker.InactiveMessage = ResourceHelper.GetReourceValue("Common_chkShowLegacy");
            lblFromDate.Text             = ResourceHelper.GetReourceValue("BookingAdminPage_lblFromDate");
            lblToDate.Text     = ResourceHelper.GetReourceValue("BookingAdminPage_lblToDate");
            radPaid.Content    = ResourceHelper.GetReourceValue("BookingPaymentPage_radPaid");
            radNotPaid.Content = ResourceHelper.GetReourceValue("BookingPaymentPage_radNotPaid");
            radAll.Content     = ResourceHelper.GetReourceValue("BookingPaymentPage_radAll");

            gvwBookingPayment.Columns["RoomName"].Header       = ResourceHelper.GetReourceValue("BookingAdmin_RoomName");
            gvwBookingPayment.Columns["CustomerName"].Header   = ResourceHelper.GetReourceValue("BookingAdmin_CustomerName");
            gvwBookingPayment.Columns["Customer2Name"].Header  = ResourceHelper.GetReourceValue("BookingAdmin_Customer2Name");
            gvwBookingPayment.Columns["FromDate"].Header       = ResourceHelper.GetReourceValue("BookingAdminPage_lblFromDate");
            gvwBookingPayment.Columns["ToDate"].Header         = ResourceHelper.GetReourceValue("BookingAdminPage_lblToDate");
            gvwBookingPayment.Columns["RoomPrice"].Header      = ResourceHelper.GetReourceValue("BookingPaymentPage_RoomPrice");
            gvwBookingPayment.Columns["EquipmentPrice"].Header = ResourceHelper.GetReourceValue("BookingPaymentPage_EquipmentPrice");
            gvwBookingPayment.Columns["ServicePrice"].Header   = ResourceHelper.GetReourceValue("BookingPaymentPage_ServicePrice");
            gvwBookingPayment.Columns["TotalPrice"].Header     = ResourceHelper.GetReourceValue("BookingPaymentPage_TotalPrice");
            gvwBookingPayment.Columns["CustomerPaid"].Header   = ResourceHelper.GetReourceValue("BookingPaymentPage_CustomerPaid");
            gvwBookingPayment.Columns["MoneyLeft"].Header      = ResourceHelper.GetReourceValue("BookingPaymentPage_MoneyLeft");
            gvwBookingPayment.Columns["Payment"].Header        = ResourceHelper.GetReourceValue("BookingPaymentPage_Payment");

            btnSavePayment.Content  = ResourceHelper.GetReourceValue("Common_btnSave");
            btnCancelCancel.Content = ResourceHelper.GetReourceValue("Common_btnCancel");
            btnSearch.Content       = ResourceHelper.GetReourceValue("Common_btnSearch");
        }
示例#7
0
        void btnInsertBookingService_Click(object sender, RoutedEventArgs e)
        {
            RoomService service = uiServiceList.SelectedItem as RoomService;

            if (service != null && _selectedBookingId > 0)
            {
                List <BookingRoomService> list = (List <BookingRoomService>)gvwBookingService.ItemsSource;
                if (list.Count(i => i.ServiceId == service.ServiceId) > 0)
                {
                    MessageBox.Show(ResourceHelper.GetReourceValue("Common_ItemExist"));
                }
                else
                {
                    BookingRoomService newBookingService = new BookingRoomService();
                    newBookingService.BookingId   = _selectedBookingId;
                    newBookingService.ServiceId   = service.ServiceId;
                    newBookingService.Service     = service.Service;
                    newBookingService.IsChanged   = true;
                    newBookingService.Price       = service.Price;
                    newBookingService.Unit        = service.Unit;
                    newBookingService.Description = service.Description;
                    list.Add(newBookingService);
                    gvwBookingService.ItemsSource = null;
                    gvwBookingService.ItemsSource = list;
                }
            }
        }
示例#8
0
        internal static Information GetNoPermissionInfoPanel()
        {
            Information infoPanel = new Information();

            infoPanel.Height      = 30;
            infoPanel.InfoMessage = ResourceHelper.GetReourceValue("Common_NoPermission");
            return(infoPanel);
        }
示例#9
0
 public void RebindData(int orgId)
 {
     Globals.IsBusy = true;
     _currentOrgId  = orgId;
     ResetControlStatus();
     ucInformation.InfoMessage = ResourceHelper.GetReourceValue("UserAccount_NewRecord");
     DataServiceHelper.ListOrgAdminAspUserAsync(orgId, SecurityHelper.OrganisationAdministratorRoleId, ListAllAspUserCompleted);
 }
示例#10
0
        public UserAccountPage()
        {
            InitializeComponent();

            uiTitle.Text             = ResourceHelper.GetReourceValue("UserAccountPage_uiTitle");
            ucUserAccount.IsEditable = true;
            ucUserAccount.RebindData();
        }
示例#11
0
 public void RebindData()
 {
     Globals.IsBusy = true;
     _currentOrgId  = Globals.UserLogin.UserOrganisationId;
     ResetControlStatus();
     ucInformation.InfoMessage = ResourceHelper.GetReourceValue("UserAccount_NewRecord");
     DataServiceHelper.ListSiteGroupAsync(Globals.UserLogin.UserOrganisationId, null, ListSiteGroupCompleted);
 }
示例#12
0
 void FillLanguage()
 {
     uiTitle.Text = ResourceHelper.GetReourceValue("RoleAdminPage_uiTitle");
     gvwRole.Columns["RoleName"].Header    = ResourceHelper.GetReourceValue("RoleAdminPage_RoleName");
     gvwRole.Columns["Description"].Header = ResourceHelper.GetReourceValue("Common_Description");
     btnSave.Content   = ResourceHelper.GetReourceValue("Common_btnSave");
     btnCancel.Content = ResourceHelper.GetReourceValue("Common_btnCancel");
 }
 void FillLanguage()
 {
     uiTitle.Text        = ResourceHelper.GetReourceValue("RoleComponentAdminPage_uiTitle");
     lblRole.Text        = ResourceHelper.GetReourceValue("RoleComponentAdminPage_lblRole");
     lblUserHasRole.Text = ResourceHelper.GetReourceValue("RoleComponentAdminPage_lblUserHasRole");
     btnSave.Content     = ResourceHelper.GetReourceValue("Common_btnSave");
     btnCancel.Content   = ResourceHelper.GetReourceValue("Common_btnCancel");
 }
示例#14
0
 void FillLanguage()
 {
     lblTitle.Text          = ResourceHelper.GetReourceValue("ImageUpload_lblTitle");
     lblPhoto.Text          = ResourceHelper.GetReourceValue("ImageUpload_lblPhoto");
     uiPopupUpload.Header   = ResourceHelper.GetReourceValue("ImageUpload_uiPopupUpload");
     btnChooseImage.Content = ResourceHelper.GetReourceValue("ImageUpload_btnChooseImage");
     btnSave.Content        = ResourceHelper.GetReourceValue("Common_btnSave");
     btnAdd.Content         = ResourceHelper.GetReourceValue("Common_btnAdd");
 }
示例#15
0
 void FillLanguage()
 {
     lblConfirmNewPassword.Text = ResourceHelper.GetReourceValue("ChangePasswordPage_lblConfirmNewPassword");
     lblNewPassword.Text        = ResourceHelper.GetReourceValue("ChangePasswordPage_lblNewPassword");
     lblPassword.Text           = ResourceHelper.GetReourceValue("ChangePasswordPage_lblPassword");
     uiSubmitButton.Content     = ResourceHelper.GetReourceValue("ChangePasswordPage_uiSubmitButton");
     uiCancelButton.Content     = ResourceHelper.GetReourceValue("Common_btnCancel");
     uiTitle.Text = ResourceHelper.GetReourceValue("ChangePasswordPage_uiTitle");
 }
示例#16
0
 void FillLanguage()
 {
     uiTitle.Text = ResourceHelper.GetReourceValue("SiteGroupAdminPage_uiTitle");
     gvwSiteGroup.Columns["GroupName"].Header = ResourceHelper.GetReourceValue("SiteGroupAdminPage_SiteGroup");
     gvwSites.Columns["Name"].Header          = ResourceHelper.GetReourceValue("SiteGroupAdminPage_Site");
     btnSave.Content    = ResourceHelper.GetReourceValue("Common_btnSave");
     btnCancel.Content  = ResourceHelper.GetReourceValue("Common_btnCancel");
     btnAddSite.Content = ResourceHelper.GetReourceValue("Common_btnInsert");
 }
示例#17
0
        void btnChooseImage_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog openFileDialog = new OpenFileDialog();

            openFileDialog.Multiselect = false;
            openFileDialog.Filter      = "JPEG (*.jpg)|*.jpg|PNG (*.png)|*.png";
            // Call the ShowDialog method to show the dialog box.
            bool?userClickedOK = openFileDialog.ShowDialog();

            // Process input if the user clicked OK.
            if (userClickedOK == true && openFileDialog.File != null)
            {
                BitmapImage imageSource = new BitmapImage();
                try
                {
                    FileStream fs = openFileDialog.File.OpenRead();
                    if (fs.Length < int.MaxValue)
                    {
                        imageSource.SetSource(fs);
                        imgRoomFigure.Source = imageSource;


                        txtFileName.Text = openFileDialog.File.Name;
                        WriteableBitmap resizeBigSource = UiHelper.ResizeImage(fs, 800); //max 200px
                        using (Stream source = UiHelper.EncodeWriteableBitmap(resizeBigSource, 100))
                        {
                            int bufferSize = Convert.ToInt32(source.Length);
                            _byteArray = new byte[bufferSize];
                            source.Read(_byteArray, 0, bufferSize);
                            source.Close();
                        }

                        //_byteArray = new byte[fs.Length];
                        //fs.Position = 0;
                        //fs.Read(_byteArray, 0, (int)fs.Length);
                        //fs.Close();

                        WriteableBitmap resizeSource = UiHelper.ResizeImage(fs, 200); //max 200px
                        using (Stream source = UiHelper.EncodeWriteableBitmap(resizeSource, 100))
                        {
                            int bufferSize = Convert.ToInt32(source.Length);
                            _byteArraySmall = new byte[bufferSize];
                            source.Read(_byteArraySmall, 0, bufferSize);
                            source.Close();
                        }
                    }
                    else
                    {
                        MessageBox.Show(UserMessages.FileTooLarge, ResourceHelper.GetReourceValue("Common_ValidationError"), MessageBoxButton.OK);
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show("Error Loading File : " + ex.Message, ResourceHelper.GetReourceValue("Common_ValidationError"), MessageBoxButton.OK);
                }
            }
        }
示例#18
0
        void gvwRoomService_Deleting(object sender, GridViewDeletingEventArgs e)
        {
            MessageBoxResult result = MessageBox.Show(ResourceHelper.GetReourceValue("Common_ConfirmDeleteNoParam"), ResourceHelper.GetReourceValue("Common_ConfirmationRequired"), MessageBoxButton.OKCancel);

            if (result == MessageBoxResult.Cancel)
            {
                e.Cancel = true;
            }
        }
        void gvwEquipmentDetails_Deleting(object sender, Telerik.Windows.Controls.GridViewDeletingEventArgs e)
        {
            MessageBoxResult result = MessageBox.Show(ResourceHelper.GetReourceValue("Common_ConfirmDeleteNoParam"), ResourceHelper.GetReourceValue("Common_ConfirmationRequired"), MessageBoxButton.OKCancel);

            if (result == MessageBoxResult.Cancel)
            {
                e.Cancel = true;
            }
        }
示例#20
0
        void btnSave_Click(object sender, RoutedEventArgs e)
        {
            if (chkChangePasswordQuestionAnswer.IsChecked == true &&
                (string.IsNullOrEmpty(txtPasswordQuestion.Text) || string.IsNullOrEmpty(txtPasswordAnswer.Text)))
            {
                MessageBox.Show(ResourceHelper.GetReourceValue("UserAccount_QuestionPasswordEmpty"), ResourceHelper.GetReourceValue("Common_ValidationError"), MessageBoxButton.OK);
                return;
            }

            if (uiUsers.SelectedValue != null && (Guid)uiUsers.SelectedValue != Guid.Empty)//Means update user
            {
                Guid    userId  = (Guid)uiUsers.SelectedValue;
                AspUser aspUser = _aspUsers.FirstOrDefault(i => i.UserId == userId);
                if (aspUser != null)
                {
                    Globals.IsBusy = true;
                    aspUser        = GetSaveAspUser(aspUser);
                    DataServiceHelper.SaveAspUserAsync(aspUser, SaveAspUserCompleted);
                }
                if (chkChangePasswordQuestionAnswer.IsChecked == true &&
                    string.IsNullOrEmpty(txtInputPassword.Password))
                {
                    MessageBox.Show(ResourceHelper.GetReourceValue("UserAccount_.InputPasswordEmpty"), ResourceHelper.GetReourceValue("Common_ValidationError"), MessageBoxButton.OK);
                    return;
                }
            }
            else//means create new user
            {
                if (string.IsNullOrEmpty(uiUsers.Text) || string.IsNullOrEmpty(txtPassword.Password))
                {
                    MessageBox.Show(ResourceHelper.GetReourceValue("UserAccount_.UserPasswordEmpty"), ResourceHelper.GetReourceValue("Common_ValidationError"), MessageBoxButton.OK);
                    return;
                }
                AspUser newUser = new AspUser();
                newUser.OrganisationId = Globals.UserLogin.UserOrganisationId;
                newUser.UserName       = uiUsers.Text;
                newUser.Password       = txtPassword.Password;
                newUser = GetSaveAspUser(newUser);
                if (_currentOrgId > 0)
                {
                    newUser.OrganisationId = _currentOrgId;
                }
                if (string.IsNullOrEmpty(newUser.PasswordQuestion))
                {
                    newUser.PasswordQuestion = ResourceHelper.GetReourceValue("UserAccount_DefaultPasswordQuestion");
                }
                if (string.IsNullOrEmpty(newUser.PasswordAnswer))
                {
                    newUser.PasswordAnswer = ResourceHelper.GetReourceValue("UserAccount_DefaultPasswordAnswer");
                }
                Globals.IsBusy = true;
                DataServiceHelper.SaveAspUserAsync(newUser, CreateAspUserCompleted);
            }
        }
 void FillLanguage()
 {
     uiTitle.Text                 = ResourceHelper.GetReourceValue("BookingAdminPage_uiTitle");
     lblSite.Text                 = ResourceHelper.GetReourceValue("Common_lblSite");
     lblFromDate.Text             = ResourceHelper.GetReourceValue("BookingAdminPage_lblFromDate");
     lblToDate.Text               = ResourceHelper.GetReourceValue("BookingAdminPage_lblToDate");
     lblCustomer.Text             = ResourceHelper.GetReourceValue("BookingAdminPage_lblCustomer");
     lblBookingStatus.Text        = ResourceHelper.GetReourceValue("BookingAdminPage_lblBookingStatus");
     ucSitePicker.InactiveMessage = ResourceHelper.GetReourceValue("Common_chkShowLegacy");
     btnSearch.Content            = ResourceHelper.GetReourceValue("Common_btnSearch");
 }
示例#22
0
 void gvwRole_CellValidating(object sender, GridViewCellValidatingEventArgs e)
 {
     if (e.Cell.Column.UniqueName == "RoleName")
     {
         if (e.NewValue == null || string.IsNullOrEmpty(e.NewValue.ToString()))
         {
             e.IsValid      = false;
             e.ErrorMessage = ResourceHelper.GetReourceValue("Common_RequiredFieldGeneric");
         }
     }
 }
示例#23
0
        public bool CheckValidation()
        {
            bool result = true;

            if (string.IsNullOrEmpty(txtFirstName.Text) && string.IsNullOrEmpty(txtLastName.Text))
            {
                result = false;
                MessageBox.Show(ResourceHelper.GetReourceValue("CustomerDetails_RoomNotValid"), ResourceHelper.GetReourceValue("Common_ValidationError"), MessageBoxButton.OK);
            }

            return(result);
        }
示例#24
0
 void FillLanguage()
 {
     lblSite.Text           = ResourceHelper.GetReourceValue("Common_lblSite");
     lblSiteGroup.Text      = ResourceHelper.GetReourceValue("UserRoleAuthAdminPage_lblSiteGroup");
     lblRole.Text           = ResourceHelper.GetReourceValue("UserRoleAuthAdminPage_lblRole");
     uiTabComponents.Header = ResourceHelper.GetReourceValue("UserRoleAuthAdminPage_uiTabComponents");
     uiTabRoles.Header      = ResourceHelper.GetReourceValue("UserRoleAuthAdminPage_uiTabRoles");
     lblUser.Text           = ResourceHelper.GetReourceValue("UserRoleAuthAdminPage_lblUser");
     uiTitle.Text           = ResourceHelper.GetReourceValue("UserRoleAuthAdminPage_uiTitle");
     btnSave.Content        = ResourceHelper.GetReourceValue("Common_btnSave");
     btnCancel.Content      = ResourceHelper.GetReourceValue("Common_btnCancel");
 }
        void FillLanguage()
        {
            uiTitle.Text = ResourceHelper.GetReourceValue("ServiceAdminPage_uiTitle");
            gvwServices.Columns["ServiceName"].Header = ResourceHelper.GetReourceValue("ServiceAdminPage_ServiceName");
            gvwServices.Columns["Description"].Header = ResourceHelper.GetReourceValue("ServiceAdminPage_Description");
            gvwServices.Columns["Price"].Header       = ResourceHelper.GetReourceValue("ServiceAdminPage_Price");
            gvwServices.Columns["Unit"].Header        = ResourceHelper.GetReourceValue("ServiceAdminPage_Unit");
            gvwServices.Columns["Inactive"].Header    = ResourceHelper.GetReourceValue("ServiceAdminPage_Inactive");

            btnSaveService.Content   = ResourceHelper.GetReourceValue("Common_btnSave");
            btnCancelService.Content = ResourceHelper.GetReourceValue("Common_btnCancel");
        }
示例#26
0
        void btnSave_Click(object sender, RoutedEventArgs e)
        {
            if (gvwSiteGroup.SelectedItem != null)
            {
                SiteGroup sg = gvwSiteGroup.SelectedItem as SiteGroup;
                if (sg != null)
                {
                    _selectedSiteGroup = sg.GroupName;
                }
            }

            List <SiteGroup> saveList = (List <SiteGroup>)gvwSiteGroup.ItemsSource;

            //Check valid data : Name should not be duplicated
            if (saveList != null && saveList.Count > 0)
            {
                for (int i = 0; i < saveList.Count - 1; i++)
                {
                    SiteGroup firstItem = saveList[i];
                    for (int j = i + 1; j < saveList.Count; j++)
                    {
                        SiteGroup secondItem = saveList[j];
                        if (firstItem.GroupName == secondItem.GroupName)
                        {
                            MessageBox.Show(ResourceHelper.GetReourceValue("SiteGroupAdminPage_DuplicatedName"), ResourceHelper.GetReourceValue("Common_ValidationError"), MessageBoxButton.OK);
                            return;
                        }
                    }
                }
            }

            //Get delete items :
            foreach (SiteGroup oldItem in _originalItemSource)
            {
                bool isDeleted = true;
                foreach (SiteGroup saveItem in saveList)
                {
                    if (saveItem.SiteGroupId == oldItem.SiteGroupId)
                    {
                        isDeleted = false;
                        break;
                    }
                }
                if (isDeleted)
                {
                    oldItem.IsDeleted = true;
                    saveList.Add(oldItem);
                }
            }
            Globals.IsBusy = true;
            DataServiceHelper.SaveSiteGroupsAsync(saveList, SaveSiteGroupCompleted);
        }
        void FillLanguage()
        {
            uiTitle.Text = ResourceHelper.GetReourceValue("EquipmentAdminPage_uiTitle");
            gvwEquipments.Columns["EquipmentName"].Header = ResourceHelper.GetReourceValue("EquipmentAdminPage_EquipmentName");
            gvwEquipments.Columns["Description"].Header   = ResourceHelper.GetReourceValue("EquipmentAdminPage_Description");
            gvwEquipments.Columns["RealPrice"].Header     = ResourceHelper.GetReourceValue("EquipmentAdminPage_RealPrice");
            gvwEquipments.Columns["Unit"].Header          = ResourceHelper.GetReourceValue("EquipmentAdminPage_Unit");
            gvwEquipments.Columns["RentPrice"].Header     = ResourceHelper.GetReourceValue("EquipmentAdminPage_RentPrice");
            gvwEquipments.Columns["Inactive"].Header      = ResourceHelper.GetReourceValue("EquipmentAdminPage_Inactive");

            btnSaveEquipment.Content   = ResourceHelper.GetReourceValue("Common_btnSave");
            btnCancelEquipment.Content = ResourceHelper.GetReourceValue("Common_btnCancel");
        }
示例#28
0
        void FillLanguage()
        {
            uiTitle.Text = ResourceHelper.GetReourceValue("SiteAdminPage_uiTitle");
            gvwSites.Columns["Name"].Header            = ResourceHelper.GetReourceValue("SiteAdminPage_Name");
            gvwSites.Columns["AbbreviatedName"].Header = ResourceHelper.GetReourceValue("SiteAdminPage_AbbreviatedName");
            gvwSites.Columns["LicenseKey"].Header      = ResourceHelper.GetReourceValue("SiteAdminPage_LicenseKey");
            gvwSites.Columns["StarRating"].Header      = ResourceHelper.GetReourceValue("SiteAdminPage_StarRating");
            gvwSites.Columns["DisplayIndex"].Header    = ResourceHelper.GetReourceValue("SiteAdminPage_DisplayIndex");
            gvwSites.Columns["Inactive"].Header        = ResourceHelper.GetReourceValue("SiteAdminPage_Inactive");

            btnSaveSite.Content   = ResourceHelper.GetReourceValue("Common_btnSave");
            btnCancelSite.Content = ResourceHelper.GetReourceValue("Common_btnCancel");
        }
示例#29
0
        private void btnDelete_Click(object sender, RoutedEventArgs e)
        {
            MessageBoxResult result = MessageBox.Show(ResourceHelper.GetReourceValue("Common_ConfirmDeleteNoParam"), ResourceHelper.GetReourceValue("Common_ConfirmationRequired"), MessageBoxButton.OKCancel);

            if (result == MessageBoxResult.OK)
            {
                int         recordId   = int.Parse((sender as Button).Tag.ToString());
                List <Room> itemSource = gvwRoom.ItemsSource as List <Room>;
                itemSource          = itemSource.Where(i => i.RecordId != recordId).ToList();
                gvwRoom.ItemsSource = null;
                gvwRoom.ItemsSource = itemSource;
            }
        }
示例#30
0
        void FillLanguage()
        {
            lblCustomerTitle.Text = ResourceHelper.GetReourceValue("CustomerDetails_lblCustomerTitle");
            lblFirstName.Text     = ResourceHelper.GetReourceValue("ContactInformationPanel_lblFirstName");
            lblLastName.Text      = ResourceHelper.GetReourceValue("ContactInformationPanel_lblLastName");
            lblAge.Text           = ResourceHelper.GetReourceValue("CustomerDetails_lblAge");
            lblGender.Text        = ResourceHelper.GetReourceValue("CustomerDetails_lblGender");
            radMale.Content       = ResourceHelper.GetReourceValue("CustomerDetails_radMale");
            radFemale.Content     = ResourceHelper.GetReourceValue("CustomerDetails_radFemale");

            btnOK.Content     = ResourceHelper.GetReourceValue("Common_btnSave");
            btnCancel.Content = ResourceHelper.GetReourceValue("Common_btnCancel");
        }