private void BuildRibbon()
        {
            _ribbon                   = new Ribbon();
            _ribbon.Height            = 150;
            _ribbon.ThemeColor        = RibbonTheme.Black;
            _ribbon.OrbDropDown.Width = 150;
            _ribbon.OrbStyle          = RibbonOrbStyle.Office_2013;
            _ribbon.OrbText           = GetText.Text("File");
            _ribbon.QuickAccessToolbar.MenuButtonVisible = false;
            _ribbon.QuickAccessToolbar.Visible           = false;
            _ribbon.QuickAccessToolbar.MinSizeMode       = RibbonElementSizeMode.Compact;
            _ribbon.Tabs.Add(_intBoo.Tsm);
            _ribbon.Tabs.Add(_int_fin.Tsm);

            _btn_open            = new RibbonButton(GetText.Text("Open"));
            _btn_open.Image      = Tools4Libraries.Resources.ResourceIconSet32Default.open_folder;
            _btn_open.SmallImage = Tools4Libraries.Resources.ResourceIconSet16Default.open_folder;
            _btn_open.Click     += B_open_Click;
            _ribbon.OrbDropDown.MenuItems.Add(_btn_open);

            _btn_exit            = new RibbonButton(GetText.Text("Exit"));
            _btn_exit.Image      = Tools4Libraries.Resources.ResourceIconSet32Default.door_out;
            _btn_exit.SmallImage = Tools4Libraries.Resources.ResourceIconSet16Default.door_out;
            _btn_exit.Click     += B_exit_Click;
            _ribbon.OrbDropDown.MenuItems.Add(_btn_exit);

            _ribbon.OrbDropDown.Width = 700;
            this.Controls.Add(_ribbon);
        }
        public void ChangeLanguage()
        {
            ColumnType.HeaderText   = GetText.Text("Type");
            ColumnPerson.HeaderText = GetText.Text("User");
            ColumnName.HeaderText   = GetText.Text("Name");

            RefreshData();
        }
 public void ChangeLanguage()
 {
     labelName.Text         = GetText.Text("Name") + " : ";
     labelColor.Text        = GetText.Text("Color") + " : ";
     buttonColorChoose.Text = GetText.Text("Choose") + " : ";
     labelCapacity.Text     = GetText.Text("Capacity") + " : ";
     labelFloor.Text        = GetText.Text("Floor") + " : ";
     labelType.Text         = GetText.Text("Type") + " : ";
     buttonValidation.Text  = GetText.Text("Search");
 }
Beispiel #4
0
 public override void ChangeLanguage()
 {
     labelName.Text    = GetText.Text("Name") + " : ";
     label1.Text       = GetText.Text("Type") + " : ";
     label2.Text       = GetText.Text("Floor") + " : ";
     label3.Text       = GetText.Text("Capacity") + " : ";
     label4.Text       = GetText.Text("Color") + " : ";
     buttonColor.Text  = GetText.Text("Choose");
     label5.Text       = GetText.Text("Comment") + " : ";
     buttonSave.Text   = GetText.Text("Save");
     buttonCancel.Text = GetText.Text("Cancel");
 }
        public void ChangeLanguage()
        {
            ColumnName.HeaderText        = GetText.Text("Firstname");
            ColumnFamilyName.HeaderText  = GetText.Text("Name");
            ColumnGender.HeaderText      = GetText.Text("Gender");
            ColumnId.HeaderText          = GetText.Text("Id");
            ColumnNationality.HeaderText = GetText.Text("Nationality");
            ColumnMail.HeaderText        = GetText.Text("Mail");
            ColumnComment.HeaderText     = GetText.Text("Comment");

            labelId.Text          = GetText.Text("Id") + " : ";
            labelNationality.Text = GetText.Text("Nationality") + " : ";
            labelGender.Text      = GetText.Text("Gender") + " : ";
            labelFamilyname.Text  = GetText.Text("FamilyName") + " : ";
            labelFirstname.Text   = GetText.Text("FirstName") + " : ";
        }
 public override void ChangeLanguage()
 {
     labelStart.Text        = GetText.Text("Start") + " : ";
     labelEnd.Text          = GetText.Text("End") + " : ";
     checkBoxConfirmed.Text = GetText.Text("ConfirmationDone");
     labelPrice.Text        = GetText.Text("PriceOfTheBook") + " : ";
     labelType.Text         = GetText.Text("Area") + " : ";
     buttonApply.Text       = GetText.Text("Save");
     buttonCancel.Text      = GetText.Text("Cancel");
     labelPerson.Text       = GetText.Text("User") + " : ";
     labelNewPayment.Text   = GetText.Text("NewPayment") + " : ";
     comboBoxCash.Items.Clear();
     comboBoxCash.Items.Add(GetText.Text("CreditCard"));
     comboBoxCash.Items.Add(GetText.Text("Cash"));
     buttonAddPayment.Text = GetText.Text("AddPayment");
     labelDescription.Text = GetText.Text("Description");
 }
Beispiel #7
0
 public void ChangeLanguage()
 {
     _rbWelcome.Text    = GetText.Text("Menu");
     _rbCalendar.Text   = GetText.Text("CalendarView");
     _rbParameters.Text = GetText.Text("Settings");
     _panelView.Text    = GetText.Text("View");
     //_rbUserAdd.Text = GetText.Text("Useradd");
     //_rbUserSearch.Text = GetText.Text("Searchuser");
     //_panelPerson.Text = GetText.Text("User");
     _rbAreaAdd.Text    = GetText.Text("Addarea");
     _rbAreaSearch.Text = GetText.Text("Searcharea");
     _panelArea.Text    = GetText.Text("Area");
     _rbBookAdd.Text    = GetText.Text("Newbook");
     _rbBookSearch.Text = GetText.Text("Searchbook");
     _panelbooking.Text = GetText.Text("Book");
     _rbCheckIn.Text    = GetText.Text("CheckIn");
     _rbCheckOut.Text   = GetText.Text("CheckOut");
     _rbPrices.Text     = GetText.Text("Prices");
 }
        public override void ChangeLanguage()
        {
            checkBoxNonCompletedPaiement.Text = GetText.Text("FilterOnNonCompletedPaiements");
            checkBoxCompletedPaiements.Text   = GetText.Text("FilterOnCompletedPaiements");
            label3.Text = GetText.Text("MinPrice") + " : ";
            label4.Text = GetText.Text("MaxPrice") + " : ";
            checkBoxNonConfirmedbooking.Text = GetText.Text("FilterOnNonConfirmedBookings");
            checkBoxConfirmedbooking.Text    = GetText.Text("FilterOnConfirmedBookings");
            label2.Text            = GetText.Text("MinDate") + " : ";
            label1.Text            = GetText.Text("MaxDate") + " : ";
            labelArea.Text         = GetText.Text("Area") + " : ";
            labelUsers.Text        = GetText.Text("Users") + " : ";
            buttonClearFilter.Text = GetText.Text("ClearFilter");

            ColumnArea.HeaderText      = GetText.Text("Area");
            ColumnUser.HeaderText      = GetText.Text("User");
            ColumnPrice.HeaderText     = GetText.Text("Price");
            ColumnPaid.HeaderText      = GetText.Text("Paid");
            ColumnConfirmed.HeaderText = GetText.Text("Confirmed");
            ColumnCheckIn.HeaderText   = GetText.Text("CheckIn");
            ColumnCheckOut.HeaderText  = GetText.Text("CheckOut");
        }
Beispiel #9
0
        public void RefreshData()
        {
            Person          user;
            Area            area;
            DataGridViewRow row;

            dataGridViewCheckIn.Rows.Clear();
            foreach (Booking booking in _intBoo.Bookings.Where(b => b.CheckIn.Date.Equals(DateTime.Now.Date)))
            {
                user = Person.GetPersonFromId(booking.UserId, _intBoo.Persons);
                area = Area.GetAreaFromId(booking.AreaId, _intBoo.Areas);

                dataGridViewCheckIn.Rows.Add();
                row = dataGridViewCheckIn.Rows[dataGridViewCheckIn.Rows.Count - 1];
                row.Cells[ColumnName.Index].Value   = area.Name;
                row.Cells[ColumnType.Index].Value   = area.Type;
                row.Cells[ColumnPerson.Index].Value = string.Format("{0} {1}", user.FirstName.Value, user.Name);
            }

            labelDate.Text       = DateTime.Now.ToShortDateString();
            labelCheckIn.Text    = GetText.Text("DailyCheckIn");
            labelDepartures.Text = string.Format("{0} {1}", dataGridViewCheckIn.Rows.Count, GetText.Text("arrivals"));
        }
        public override void RefreshData()
        {
            Person          person;
            DataGridViewRow row;

            dataGridViewCheckOut.Rows.Clear();
            foreach (Booking booking in _intBoo.Bookings.Where(b => b.CheckOut.Date.Equals(DateTime.Now.Date)))
            {
                dataGridViewCheckOut.Rows.Add();
                row = dataGridViewCheckOut.Rows[dataGridViewCheckOut.Rows.Count - 1];
                row.Cells[ColumnName.Index].Value = Area.GetAreaFromId(booking.AreaId, _intBoo.Areas).Name;
                row.Cells[ColumnType.Index].Value = Area.GetAreaFromId(booking.AreaId, _intBoo.Areas).Type;

                person = Person.GetPersonFromId(booking.UserId, _intBoo.Persons);
                if (person != null)
                {
                    row.Cells[ColumnPerson.Index].Value = string.Format("{0} {1}", person.FirstName.Value, person.Name);
                }
            }

            labelDate.Text     = DateTime.Now.ToShortDateString();
            labelCheckOut.Text = GetText.Text("DailyCheckOut");
            labelArrivals.Text = string.Format("{0} {1}", dataGridViewCheckOut.Rows.Count, GetText.Text("departures"));
        }
Beispiel #11
0
 public void ChangeLanguage()
 {
     this.labelLanguage.Text        = string.Format("{0} : ", GetText.Text("Language"));
     this.labelMaxPurgeHistory.Text = string.Format("{0} : ", GetText.Text("PurgeHistory"));
 }
 private void Init()
 {
     printdoc1.DocumentName = string.Format("{0} - {1}", GetText.Text("CheckOut"), DateTime.Now.Date);
     printdoc1.PrintPage   += new PrintPageEventHandler(printdoc1_PrintPage);
 }
 public void ChangeLanguage()
 {
     _ribbon.OrbText = GetText.Text("File");
     _btn_open.Text  = GetText.Text("Open");
     _btn_exit.Text  = GetText.Text("Exit");
 }