Ejemplo n.º 1
0
        private void button_modify_Click(object sender, RoutedEventArgs e)
        {
            string        LanguageName     = (listview_locallabel.SelectedItem as label).lang;
            string        ElementNameValue = (listview_locallabel.SelectedItem as label).Text[0];
            List <string> ExistList        = new List <string>();

            foreach (label Item in LanguageList)
            {
                ExistList.Add(Item.lang);
            }

            LocalizationWizard LWizard = new LocalizationWizard("Name", LanguageName, ElementNameValue, ExistList: ExistList);

            if (LWizard.ShowDialog() == true)
            {
                if (LanguageList.Contains((listview_locallabel.SelectedItem as label)))
                {
                    LanguageList.Remove((listview_locallabel.SelectedItem as label));
                }

                var label = new label();
                label.lang = LWizard.LangComboBox.Text;
                label.Text = LWizard.ElementNameTextBox.Text.Trim().Split('\n');
                LanguageList.Add(label);
            }

            if (listview_locallabel.Items.Count == 0 || listview_locallabel.SelectedItem == null)
            {
                LangListBtnEnable(false);
            }
        }
Ejemplo n.º 2
0
        private void button_delete_Click(object sender, RoutedEventArgs e)
        {
            if (LanguageList.Contains((listview_locallabel.SelectedItem as label)))
            {
                LanguageList.Remove((listview_locallabel.SelectedItem as label));
            }

            if (listview_locallabel.Items.Count == 0 || listview_locallabel.SelectedItem == null)
            {
                LangListBtnEnable(false);
            }
        }
Ejemplo n.º 3
0
        static ApplicationSettings()
        {
            AllowSound = true;
            ShowNotificationsGlobal = true;
            AllowLogging            = true;
            AllowAdDedup            = true;

            GlobalNotifyTerms  = string.Empty;
            GlobalPruningTerms = string.Empty;
            SavedChannels      = new List <string>();
            Interested         = new List <string>();
            NotInterested      = new List <string>();
            IgnoreUpdates      = new List <string>();
            RecentChannels     = new List <string>(10);
            RecentCharacters   = new List <string>(20);


            FontSize            = 13;
            EntryFontSize       = 13;
            GenderColorSettings = GenderColorSettings.GenderOnly;
            ShowGenderIcons     = true;

            Langauge = Thread.CurrentThread.CurrentCulture.Name;
            if (!LanguageList.Contains(Langauge))
            {
                Langauge = "en";
            }

            SpellCheckEnabled     = true;
            FriendsAreAccountWide = true;

            AutoAwayTime = 60;
            AutoIdleTime = 30;

            AllowAutoIdle        = true;
            AllowStatusAutoReset = true;
            AllowAutoBusy        = true;

            AllowMinimizeToTray = true;
            AllowStatusDiscolor = true;

            AllowTextboxDisable     = true;
            AllowGreedyTextboxFocus = false;

            CheckForOwnName              = true;
            TemplateCharacter            = string.Empty;
            HideFriendsFromSearchResults = true;

            SettingsVersion = Constants.ClientVersion;
            UseMilitaryTime = true;

            OpenOfflineChatsInNoteView = true;
            OpenProfilesInClient       = true;
            ShowMoreInAdsLength        = 400;

            ChannelDisplayThreshold = 5;
            AllowOfInterestColoring = true;

            ShowStatusToasts = true;
            ShowLoginToasts  = true;

            ShowAvatarsInToasts  = true;
            ShowNamesInToasts    = true;
            ShowMessagesInToasts = true;

            AllowMarkupPastedLinks = true;
            PreloadMessageAmount   = 10;

            UseCustomTimeStamp = false;
            CustomTimeStamp    = "[h:mm tt]";

            ShowAvatars = true;
        }