public OpenRemoteServer () : base (Catalog.GetString ("Open remote DAAP server"), null) { VBox.Spacing = 6; VBox.PackStart (new Label () { Xalign = 0.0f, Text = Catalog.GetString ("Enter server IP address and port:") }, true, true, 0); HBox box = new HBox (); box.Spacing = 12; VBox.PackStart (box, false, false, 0); address_entry = ComboBoxEntry.NewText (); address_entry.Entry.Activated += OnEntryActivated; address_entry.Entry.WidthChars = 30; address_entry.Show (); port_entry = new SpinButton (1d, 65535d, 1d); port_entry.Value = 3689; port_entry.Show (); box.PackStart (address_entry, true, true, 0); box.PackEnd (port_entry, false, false, 0); address_entry.HasFocus = true; VBox.ShowAll (); AddStockButton (Stock.Cancel, ResponseType.Cancel); AddStockButton (Stock.Add, ResponseType.Ok, true); LoadHistory(); }
public override bool GetPreferenceTabWidget(PreferencesDialog parent, out string tabLabel, out Gtk.Widget preferenceWidget) { Gtk.Label label; Gtk.SpinButton menuNoteCountSpinner; Gtk.Alignment align; int menuNoteCount; // Addin's tab caption tabLabel = Catalog.GetString("Advanced"); Gtk.VBox opts_list = new Gtk.VBox(false, 12); opts_list.BorderWidth = 12; opts_list.Show(); align = new Gtk.Alignment(0.5f, 0.5f, 0.0f, 1.0f); align.Show(); opts_list.PackStart(align, false, false, 0); Gtk.Table table = new Gtk.Table(1, 2, false); table.ColumnSpacing = 6; table.RowSpacing = 6; table.Show(); align.Add(table); // Menu Note Count option label = new Gtk.Label(Catalog.GetString("Minimum number of notes to show in Recent list (maximum 18)")); label.UseMarkup = true; label.Justify = Gtk.Justification.Left; label.SetAlignment(0.0f, 0.5f); label.Show(); table.Attach(label, 0, 1, 0, 1); menuNoteCount = (int)Preferences.Get(Preferences.MENU_NOTE_COUNT); // we have a hard limit of 18 set, thus not allowing anything bigger than 18 menuNoteCountSpinner = new Gtk.SpinButton(1, 18, 1); menuNoteCountSpinner.Value = menuNoteCount <= 18 ? menuNoteCount : 18; menuNoteCountSpinner.Show(); table.Attach(menuNoteCountSpinner, 1, 2, 0, 1); menuNoteCountSpinner.ValueChanged += UpdateMenuNoteCountPreference; if (opts_list != null) { preferenceWidget = opts_list; return(true); } else { preferenceWidget = null; return(false); } }
public ToolBarSpinButton(int width,double min, double max, double step ) { SpinButton = new SpinButton (min,max,1); SpinButton.AddEvents ((int)Gdk.EventMask.ButtonPressMask); SpinButton.WidthRequest = width; SpinButton.Show (); Add (SpinButton); Show (); }
public override bool GetPreferenceTabWidget ( PreferencesDialog parent, out string tabLabel, out Gtk.Widget preferenceWidget) { Gtk.Label label; Gtk.SpinButton menuNoteCountSpinner; Gtk.Alignment align; int menuNoteCount; // Addin's tab caption tabLabel = Catalog.GetString ("Advanced"); Gtk.VBox opts_list = new Gtk.VBox (false, 12); opts_list.BorderWidth = 12; opts_list.Show (); align = new Gtk.Alignment (0.5f, 0.5f, 0.0f, 1.0f); align.Show (); opts_list.PackStart (align, false, false, 0); Gtk.Table table = new Gtk.Table (1, 2, false); table.ColumnSpacing = 6; table.RowSpacing = 6; table.Show (); align.Add (table); // Menu Note Count option label = new Gtk.Label (Catalog.GetString ("Minimum number of notes to show in Recent list (maximum 18)")); label.UseMarkup = true; label.Justify = Gtk.Justification.Left; label.SetAlignment (0.0f, 0.5f); label.Show (); table.Attach (label, 0, 1, 0, 1); menuNoteCount = (int) Preferences.Get (Preferences.MENU_NOTE_COUNT); // we have a hard limit of 18 set, thus not allowing anything bigger than 18 menuNoteCountSpinner = new Gtk.SpinButton (1, 18, 1); menuNoteCountSpinner.Value = menuNoteCount <= 18 ? menuNoteCount : 18; menuNoteCountSpinner.Show (); table.Attach (menuNoteCountSpinner, 1, 2, 0, 1); menuNoteCountSpinner.ValueChanged += UpdateMenuNoteCountPreference; if (opts_list != null) { preferenceWidget = opts_list; return true; } else { preferenceWidget = null; return false; } }
public CalculatorPreferences() { // TextLabel Gtk.Label method_label = new Gtk.Label (Catalog.GetString ( "Choose calculation method:")); method_label.Wrap = true; method_label.Xalign = 0; PackStart (method_label); // Radio buttons auto_radio = new Gtk.RadioButton (Catalog.GetString ( "Automatic")); PackStart (auto_radio); alternate_radio = new Gtk.RadioButton (auto_radio, Catalog.GetString("Manual")); PackStart(alternate_radio); //Check if the preferences have been set earlier and adjust buttons if (Preferences.Get(CalculatorAddin.CALCULATOR_AUTOMATIC_MODE) == null) { alternate_radio.Active = true;; }else if((bool) Preferences.Get(CalculatorAddin.CALCULATOR_AUTOMATIC_MODE)) { auto_radio.Active = true; }else{ alternate_radio.Active = true; } auto_radio.Toggled += OnSelectedRadioToggled; //Decimal settings Gtk.Label decimal_label = new Gtk.Label (Catalog.GetString ( "Choose number of decimals:")); decimal_label.Wrap = true; decimal_label.Xalign = 0; PackStart (decimal_label); Gtk.SpinButton decimal_spinner = new Gtk.SpinButton (1, 12, 1); int decimal_count; try { decimal_count = (int) Preferences.Get (CalculatorAddin.CALCULATOR_DECIMAL_COUNT); } catch (Exception) { Logger.Debug("CalcAddin: Couldn't find a preference for decimal count."); decimal_count = 3; //Defaults to 3 if no preference is set. } decimal_spinner.Value = decimal_count <= 12 ? decimal_count : 3; PackStart (decimal_spinner); decimal_spinner.Show(); decimal_spinner.ValueChanged += OnDecimalValueChanged; }
public MenuMinMaxNoteCountPreference () { table = new Gtk.Table (2, 2, false); table.ColumnSpacing = 6; table.RowSpacing = 6; table.Show (); // Menu Min Note Count option menuMinNoteCountLabel = new Gtk.Label (Catalog.GetString ("Minimum number of notes to show in Recent list")); menuMinNoteCountLabel.UseMarkup = true; menuMinNoteCountLabel.Justify = Gtk.Justification.Left; menuMinNoteCountLabel.SetAlignment (0.0f, 0.5f); menuMinNoteCountLabel.Show (); table.Attach (menuMinNoteCountLabel, 0, 1, 0, 1); menuMinNoteCount = (int) Preferences.Get (Preferences.MENU_NOTE_COUNT); menuMaxNoteCount = (int) Preferences.Get (Preferences.MENU_MAX_NOTE_COUNT); // This is to avoid having Max bigger than absolute maximum if someone changed the setting // outside of the Tomboy using e.g. gconf menuMaxNoteCount = (menuMaxNoteCount <= int.MaxValue ? menuMaxNoteCount : int.MaxValue); // This is to avoid having Min bigger than Max if someone changed the setting // outside of the Tomboy using e.g. gconf menuMinNoteCount = (menuMinNoteCount <= menuMaxNoteCount ? menuMinNoteCount : menuMaxNoteCount); menuMinNoteCountSpinner = new Gtk.SpinButton (1, menuMaxNoteCount, 1); menuMinNoteCountSpinner.Value = menuMinNoteCount; menuMinNoteCountSpinner.Show (); table.Attach (menuMinNoteCountSpinner, 1, 2, 0, 1); menuMinNoteCountSpinner.ValueChanged += UpdateMenuMinNoteCountPreference; // Menu Max Note Count option menuMaxNoteCountLabel = new Gtk.Label (Catalog.GetString ("Maximum number of notes to show in Recent list")); menuMaxNoteCountLabel.UseMarkup = true; menuMaxNoteCountLabel.Justify = Gtk.Justification.Left; menuMaxNoteCountLabel.SetAlignment (0.0f, 0.5f); menuMaxNoteCountLabel.Show (); table.Attach (menuMaxNoteCountLabel, 0, 1, 1, 2); menuMaxNoteCountSpinner = new Gtk.SpinButton (menuMinNoteCount, int.MaxValue, 1); menuMaxNoteCountSpinner.Value = menuMaxNoteCount; menuMaxNoteCountSpinner.Show (); table.Attach (menuMaxNoteCountSpinner, 1, 2, 1, 2); menuMaxNoteCountSpinner.ValueChanged += UpdateMenuMaxNoteCountPreference; align = new Gtk.Alignment (0.0f, 0.0f, 0.0f, 1.0f); align.Show (); align.Add (table); }
public MenuMinMaxNoteCountPreference() { table = new Gtk.Table(2, 2, false); table.ColumnSpacing = 6; table.RowSpacing = 6; table.Show(); // Menu Min Note Count option menuMinNoteCountLabel = new Gtk.Label(Catalog.GetString("Minimum number of notes to show in Recent list")); menuMinNoteCountLabel.UseMarkup = true; menuMinNoteCountLabel.Justify = Gtk.Justification.Left; menuMinNoteCountLabel.SetAlignment(0.0f, 0.5f); menuMinNoteCountLabel.Show(); table.Attach(menuMinNoteCountLabel, 0, 1, 0, 1); menuMinNoteCount = (int)Preferences.Get(Preferences.MENU_NOTE_COUNT); menuMaxNoteCount = (int)Preferences.Get(Preferences.MENU_MAX_NOTE_COUNT); // This is to avoid having Max bigger than absolute maximum if someone changed the setting // outside of the Tomboy using e.g. gconf menuMaxNoteCount = (menuMaxNoteCount <= int.MaxValue ? menuMaxNoteCount : int.MaxValue); // This is to avoid having Min bigger than Max if someone changed the setting // outside of the Tomboy using e.g. gconf menuMinNoteCount = (menuMinNoteCount <= menuMaxNoteCount ? menuMinNoteCount : menuMaxNoteCount); menuMinNoteCountSpinner = new Gtk.SpinButton(1, menuMaxNoteCount, 1); menuMinNoteCountSpinner.Value = menuMinNoteCount; menuMinNoteCountSpinner.Show(); table.Attach(menuMinNoteCountSpinner, 1, 2, 0, 1); menuMinNoteCountSpinner.ValueChanged += UpdateMenuMinNoteCountPreference; // Menu Max Note Count option menuMaxNoteCountLabel = new Gtk.Label(Catalog.GetString("Maximum number of notes to show in Recent list")); menuMaxNoteCountLabel.UseMarkup = true; menuMaxNoteCountLabel.Justify = Gtk.Justification.Left; menuMaxNoteCountLabel.SetAlignment(0.0f, 0.5f); menuMaxNoteCountLabel.Show(); table.Attach(menuMaxNoteCountLabel, 0, 1, 1, 2); menuMaxNoteCountSpinner = new Gtk.SpinButton(menuMinNoteCount, int.MaxValue, 1); menuMaxNoteCountSpinner.Value = menuMaxNoteCount; menuMaxNoteCountSpinner.Show(); table.Attach(menuMaxNoteCountSpinner, 1, 2, 1, 2); menuMaxNoteCountSpinner.ValueChanged += UpdateMenuMaxNoteCountPreference; align = new Gtk.Alignment(0.0f, 0.0f, 0.0f, 1.0f); align.Show(); align.Add(table); }
// FIXME clicking the spinbutton too fast seems to switch the view to browse public FaceBox(Gtk.Box tb, PhotoImageView vw) : base() { m_list = new ArrayList(); face_store = Core.Database.Faces; View = vw; tag_store = FSpot.Core.Database.Tags; Gtk.Label lab = new Gtk.Label("Face det:"); lab.Show(); tb.PackStart(lab, false, true, 0); face_button = new ToolbarButton(); face_button.Add(new Gtk.Image("f-spot-sepia", IconSize.Button)); tb.PackStart(face_button, false, true, 0); face_button.Clicked += HandleFaceButtonClicked; tag_entry = new Gtk.Entry("test"); tag_entry.Show(); tag_entry.Sensitive = false; tb.PackStart(tag_entry, false, true, 0); m_newtag_button = new ToolbarButton(); m_newtag_button.Add(new Gtk.Image("f-spot-new-tag", IconSize.Button)); m_newtag_button.Show(); m_newtag_button.Sensitive = false; tb.PackStart(m_newtag_button, false, true, 0); m_newtag_button.Clicked += HandleNewTagButtonClicked; m_spin = new SpinButton(1, 1, 1); m_spin.Show(); m_spin.Sensitive = false; tb.PackStart(m_spin, false, true, 0); m_spin.Changed += HandleSpinChanged; //m.spin.ValueChanged += jesli w bazie, to pokaz jego tag //this.Add(tag_widget); }
void showWidgetsPowerful(ArrayList widgetArray) { Constants.GenericWindowShow stuff = (Constants.GenericWindowShow)widgetArray[0]; bool editable = (bool)widgetArray[1]; string text = (string)widgetArray[2]; if (stuff == Constants.GenericWindowShow.ENTRY) { entry.Show(); entry.IsEditable = editable; entry.Sensitive = editable; entry.Text = text; } else if (stuff == Constants.GenericWindowShow.ENTRY2) { hbox_entry2.Show(); entry2.IsEditable = editable; entry2.Sensitive = editable; entry2.Text = text; } else if (stuff == Constants.GenericWindowShow.ENTRY3) { hbox_entry3.Show(); entry3.IsEditable = editable; entry3.Sensitive = editable; entry3.Text = text; } else if (stuff == Constants.GenericWindowShow.SPININT) { hbox_spin_int.Show(); spin_int.IsEditable = editable; spin_int.Sensitive = editable; } else if (stuff == Constants.GenericWindowShow.SPINDOUBLE) { spin_double.Show(); spin_double.IsEditable = editable; } else if (stuff == Constants.GenericWindowShow.HBOXSPINDOUBLE2) { hbox_spin_double2.Show(); spin_double2.IsEditable = editable; spin_double2.Sensitive = editable; } else if (stuff == Constants.GenericWindowShow.SPININT2) { hbox_spin_int2.Show(); spin_int2.IsEditable = editable; } else if (stuff == Constants.GenericWindowShow.SPININT3) { hbox_spin_int3.Show(); spin_int3.IsEditable = editable; } else if (stuff == Constants.GenericWindowShow.HEIGHTMETRIC) { hbox_height_metric.Show(); } else if (stuff == Constants.GenericWindowShow.COMBO) { /* * hbox_combo.Show(); * combo.Show(); */ } else if (stuff == Constants.GenericWindowShow.COMBOALLNONESELECTED) { //createComboCheckBoxes(); //combo_all_none_selected.Active = // UtilGtk.ComboMakeActive(comboCheckBoxesOptions, Catalog.GetString("Selected")); hbox_combo_all_none_selected.Show(); hbox_all_none_selected.Show(); } else if (stuff == Constants.GenericWindowShow.BUTTONMIDDLE) { hbuttonbox_middle.Show(); } else if (stuff == Constants.GenericWindowShow.TEXTVIEW) { scrolled_window_textview.Show(); } else //if(stuff == Constants.GenericWindowShow.TREEVIEW) { scrolled_window_treeview.Show(); } }
void createEmptyTable() { entries = new ArrayList(); radiosM = new ArrayList(); radiosF = new ArrayList(); spins = new ArrayList(); Gtk.Label nameLabel = new Gtk.Label("<b>" + Catalog.GetString("Full name") + "</b>"); Gtk.Label sexLabel = new Gtk.Label("<b>" + Catalog.GetString("Sex") + "</b>"); Gtk.Label weightLabel = new Gtk.Label("<b>" + Catalog.GetString("Weight") + "</b>(" + Catalog.GetString("Kg") + ")" ); nameLabel.UseMarkup = true; sexLabel.UseMarkup = true; weightLabel.UseMarkup = true; nameLabel.Xalign = 0; sexLabel.Xalign = 0; weightLabel.Xalign = 0; weightLabel.Show(); nameLabel.Show(); sexLabel.Show(); uint padding = 4; table_main.Attach (nameLabel, (uint) 1, (uint) 2, 0, 1, Gtk.AttachOptions.Fill | Gtk.AttachOptions.Expand , Gtk.AttachOptions.Shrink, padding, padding); table_main.Attach (sexLabel, (uint) 2, (uint) 3, 0, 1, Gtk.AttachOptions.Shrink, Gtk.AttachOptions.Shrink, padding, padding); table_main.Attach (weightLabel, (uint) 3, (uint) 4, 0, 1, Gtk.AttachOptions.Shrink, Gtk.AttachOptions.Shrink, padding, padding); for (int count=1; count <= rows; count ++) { Gtk.Label myLabel = new Gtk.Label((count).ToString()); table_main.Attach (myLabel, (uint) 0, (uint) 1, (uint) count, (uint) count +1, Gtk.AttachOptions.Shrink, Gtk.AttachOptions.Shrink, padding, padding); myLabel.Show(); //labels.Add(myLabel); Gtk.Entry myEntry = new Gtk.Entry(); table_main.Attach (myEntry, (uint) 1, (uint) 2, (uint) count, (uint) count +1, Gtk.AttachOptions.Fill | Gtk.AttachOptions.Expand , Gtk.AttachOptions.Shrink, padding, padding); myEntry.Show(); entries.Add(myEntry); Gtk.RadioButton myRadioM = new Gtk.RadioButton(Catalog.GetString(Constants.M)); myRadioM.Show(); radiosM.Add(myRadioM); Gtk.RadioButton myRadioF = new Gtk.RadioButton(myRadioM, Catalog.GetString(Constants.F)); myRadioF.Show(); radiosF.Add(myRadioF); Gtk.HBox sexBox = new HBox(); sexBox.PackStart(myRadioM, false, false, 4); sexBox.PackStart(myRadioF, false, false, 4); sexBox.Show(); table_main.Attach (sexBox, (uint) 2, (uint) 3, (uint) count, (uint) count +1, Gtk.AttachOptions.Shrink, Gtk.AttachOptions.Shrink, padding, padding); Gtk.SpinButton mySpin = new Gtk.SpinButton(0, 300, .1); table_main.Attach (mySpin, (uint) 3, (uint) 4, (uint) count, (uint) count +1, Gtk.AttachOptions.Shrink, Gtk.AttachOptions.Shrink, padding, padding); mySpin.Show(); spins.Add(mySpin); } string sportStuffString = ""; if(currentSession.PersonsSportID != Constants.SportUndefinedID) sportStuffString += Catalog.GetString("Sport") + ":<i>" + Catalog.GetString(SqliteSport.Select(false, currentSession.PersonsSportID).Name) + "</i>."; if(currentSession.PersonsSpeciallityID != Constants.SpeciallityUndefinedID) sportStuffString += " " + Catalog.GetString("Specialty") + ":<i>" + SqliteSpeciallity.Select(false, currentSession.PersonsSpeciallityID) + "</i>."; if(currentSession.PersonsPractice != Constants.LevelUndefinedID) sportStuffString += " " + Catalog.GetString("Level") + ":<i>" + Util.FindLevelName(currentSession.PersonsPractice) + "</i>."; if(sportStuffString.Length > 0) sportStuffString = Catalog.GetString("Persons will be created with default session values") + ":\n" + sportStuffString; label_message.Text = sportStuffString; label_message.UseMarkup = true; label_message.Visible = true; table_main.Show(); scrolledwindow.Visible = true; notebook.CurrentPage = 0; //once loaded table cannot be created again //don't do this: it crashes //button_manually_created.Sensitive = false; //do this: created_table = true; button_accept.Sensitive = true; }
public PreferenceSpinButton(PreferenceBase preference, int min_value, int max_value) { var spin_button = new SpinButton (min_value, max_value, 1); spin_button.ValueChanged += delegate { if (sync) { this.preference.BoxedValue = (int)spin_button.Value; } }; spin_button.Show (); PackEnd (spin_button, false, false, 0); this.preference = preference; spin_button.Value = (int)preference.BoxedValue; sync = true; }
public override void Initialize() { Widget = (Gtk.SpinButton) CreateWidget (); Widget.Numeric = true; Widget.Alignment = 1.0f; Widget.Show (); }
// FIXME clicking the spinbutton too fast seems to switch the view to browse public FaceBox (Gtk.Box tb, PhotoImageView vw) : base() { m_list = new ArrayList(); face_store = Core.Database.Faces; View = vw; tag_store = FSpot.Core.Database.Tags; Gtk.Label lab = new Gtk.Label("Face det:"); lab.Show(); tb.PackStart(lab, false, true, 0); face_button = new ToolbarButton (); face_button.Add (new Gtk.Image ("f-spot-sepia", IconSize.Button)); tb.PackStart (face_button, false, true, 0); face_button.Clicked += HandleFaceButtonClicked; tag_entry = new Gtk.Entry ("test"); tag_entry.Show(); tag_entry.Sensitive = false; tb.PackStart(tag_entry, false, true, 0); m_newtag_button = new ToolbarButton (); m_newtag_button.Add (new Gtk.Image ("f-spot-new-tag", IconSize.Button)); m_newtag_button.Show(); m_newtag_button.Sensitive = false; tb.PackStart(m_newtag_button,false,true,0); m_newtag_button.Clicked += HandleNewTagButtonClicked; m_spin = new SpinButton(1,1,1); m_spin.Show(); m_spin.Sensitive = false; tb.PackStart(m_spin, false, true, 0); m_spin.Changed += HandleSpinChanged; //m.spin.ValueChanged += jesli w bazie, to pokaz jego tag //this.Add(tag_widget); }
void create() { entries = new ArrayList(); radiosM = new ArrayList(); radiosF = new ArrayList(); spins = new ArrayList(); Gtk.Label nameLabel = new Gtk.Label("<b>" + Catalog.GetString("Full name") + "</b>"); Gtk.Label sexLabel = new Gtk.Label("<b>" + Catalog.GetString("Sex") + "</b>"); Gtk.Label weightLabel = new Gtk.Label("<b>" + Catalog.GetString("Weight") + "</b>(" + Catalog.GetString("Kg") + ")" ); nameLabel.UseMarkup = true; sexLabel.UseMarkup = true; weightLabel.UseMarkup = true; nameLabel.Xalign = 0; sexLabel.Xalign = 0; weightLabel.Xalign = 0; weightLabel.Show(); nameLabel.Show(); sexLabel.Show(); table_main.Attach (nameLabel, (uint) 1, (uint) 2, 0, 1); table_main.Attach (sexLabel, (uint) 2, (uint) 3, 0, 1); table_main.Attach (weightLabel, (uint) 3, (uint) 4, 0, 1); for (int count=1; count <= rows; count ++) { Gtk.Label myLabel = new Gtk.Label((count).ToString()); table_main.Attach (myLabel, (uint) 0, (uint) 1, (uint) count, (uint) count +1); myLabel.Show(); //labels.Add(myLabel); Gtk.Entry myEntry = new Gtk.Entry(); table_main.Attach (myEntry, (uint) 1, (uint) 2, (uint) count, (uint) count +1); myEntry.Show(); entries.Add(myEntry); Gtk.RadioButton myRadioM = new Gtk.RadioButton(Catalog.GetString(Constants.M)); myRadioM.Show(); radiosM.Add(myRadioM); Gtk.RadioButton myRadioF = new Gtk.RadioButton(myRadioM, Catalog.GetString(Constants.F)); myRadioF.Show(); radiosF.Add(myRadioF); Gtk.HBox sexBox = new HBox(); sexBox.PackStart(myRadioM, false, false, 4); sexBox.PackStart(myRadioF, false, false, 4); sexBox.Show(); table_main.Attach (sexBox, (uint) 2, (uint) 3, (uint) count, (uint) count +1); Gtk.SpinButton mySpin = new Gtk.SpinButton(0, 300, .1); table_main.Attach (mySpin, (uint) 3, (uint) 4, (uint) count, (uint) count +1); mySpin.Show(); spins.Add(mySpin); } string sportStuffString = ""; if(currentSession.PersonsSportID != Constants.SportUndefinedID) sportStuffString += Catalog.GetString("Sport") + ":<i>" + Catalog.GetString(SqliteSport.Select(currentSession.PersonsSportID).Name) + "</i>."; if(currentSession.PersonsSpeciallityID != Constants.SpeciallityUndefinedID) sportStuffString += " " + Catalog.GetString("Speciallity") + ":<i>" + SqliteSpeciallity.Select(currentSession.PersonsSpeciallityID) + "</i>."; if(currentSession.PersonsPractice != Constants.LevelUndefinedID) sportStuffString += " " + Catalog.GetString("Level") + ":<i>" + Util.FindLevelName(currentSession.PersonsPractice) + "</i>."; if(sportStuffString.Length > 0) sportStuffString = Catalog.GetString("Persons will be created with default session values") + ":\n" + sportStuffString; label_sport_stuff.Text = sportStuffString; label_sport_stuff.UseMarkup = true; table_main.Show(); }