Esempio n. 1
0
        private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            ApplicationDataContainer setting = ApplicationData.Current.RoamingSettings;
            object obj = setting.Values["option"];

            if (obj != null)
            {
                crtOption = new Handler.Options((string)obj);
            }
        }
Esempio n. 2
0
 private void ContentDialog_Loaded(object sender, Windows.UI.Xaml.RoutedEventArgs e)
 {
     option = ((Handler.Options)Tag).Clone();
     CheckBox1.IsChecked = option.isSingleLine;
     CheckBox2.IsChecked = option.isRN;
     CheckBox3.IsChecked = option.isNIgnored;
     CheckBox4.IsChecked = option.isBackslashIgnored;
     CheckBox5.IsChecked = option.isFormatIgnored;
     CheckBox6.IsChecked = option.isQuoteIgnored;
 }
Esempio n. 3
0
        private async void Menu_SwitchOptions_Click(object sender, RoutedEventArgs e)
        {
            var dlg = new OptionDialog();

            dlg.Tag = crtOption;
            await dlg.ShowAsync();

            if (dlg.isOk)
            {
                crtOption = (Handler.Options)dlg.Tag;
                ApplicationDataContainer setting = ApplicationData.Current.RoamingSettings;
                setting.Values["option"] = crtOption.ToString();
            }
        }