Ejemplo n.º 1
0
        private void FontBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var font = (FontBox.SelectedItem as ComboBoxItem).Content.ToString();

            Pager.FontFamily = BookHelper.GetFont(font);
            Pager.SetBlockProperty();
            AppDataHelper.SetValue("FontFamily", font);
        }
Ejemplo n.º 2
0
 private void storeData()
 {
     AppDataHelper.SetValue("uname", txt_UserName.Text);
     if (s_remember.IsChecked == true)
     {
         AppDataHelper.SetValue("upasswd", txt_Password.Password);
     }
     else
     {
         AppDataHelper.SetValue("upasswd", "");
     }
     AppDataHelper.SetValue("isrem", s_remember.IsChecked.ToString());
     AppDataHelper.SetValue("isauto", s_auto.IsChecked.ToString());
 }
Ejemplo n.º 3
0
        private void ColorPicker_SelectedColorChanged(object sender, EventArgs e)
        {
            if (colorPicker.Owner == null)
            {
                return;
            }
            var rect = colorPicker.Owner as Rectangle;

            rect.Fill = new SolidColorBrush(colorPicker.SelectedColor);
            if (rect.Name == "BackgroundRect")
            {
                Pager.Background = rect.Fill;
                Pager.SetBackground();
                AppDataHelper.SetValue("Background", Pager.Background);
            }
            else
            {
                Pager.Foreground = rect.Fill;
                Pager.SetBlockProperty();
                AppDataHelper.SetValue("Foreground", Pager.Foreground);
            }
            colorPicker.Owner = null;
        }
Ejemplo n.º 4
0
 public static void PassAuth(string Username, string Password)
 {
     AppDataHelper.SetValue("uname", Username);
     AppDataHelper.SetValue("upasswd", Password);
 }
Ejemplo n.º 5
0
 private void DiffSlider_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
 {
     Pager.CharacterSpacing = Convert.ToInt32((sender as Slider).Value);
     Pager.SetBlockProperty();
     AppDataHelper.SetValue("CharacterSpacing", Pager.CharacterSpacing);
 }
Ejemplo n.º 6
0
 private void LineHeightSlider_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
 {
     Pager.LineHeight = (sender as Slider).Value;
     Pager.SetBlockProperty();
     AppDataHelper.SetValue("LineHeight", Pager.LineHeight);
 }
Ejemplo n.º 7
0
 private void FontSizeSlider_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
 {
     Pager.FontSize = (sender as Slider).Value;
     Pager.SetBlockProperty();
     AppDataHelper.SetValue("FontSize", Pager.FontSize);
 }