Exemplo n.º 1
0
        public ManageDictionary(CrammerDictionary dictionary)
        {
            InitializeComponent();

            // Load all entries, even non-active
            mDictionary.load(dictionary.DictionaryFile, false);
        }
Exemplo n.º 2
0
        public PickEngine(CrammerDictionary dict, bool cleanState)
        {
            mCrammerDict = dict;

            // Are we able to restore from a previous session?
            // If not, initialize for a fresh one.
            init(cleanState);
        }
Exemplo n.º 3
0
        public PickEngine(CrammerDictionary dict, bool cancelRestore)
        {
            mCrammerDict = dict;
            mStateManager = new StateManager(this);

            // Are we able to restore from a previous session?
            // If not, initialize for a fresh one.
            init(cancelRestore);
        }
 public DictionaryOptions(CrammerDictionary dictionary)
 {
     InitializeComponent();
     mDictionary = dictionary;
     Font1 = mDictionary.Font1;
     Font2 = mDictionary.Font2;
     Color1 = mDictionary.Color1;
     Color2 = mDictionary.Color2;
     label1.Font = Font1;
     label2.Font = Font2;
 }
Exemplo n.º 5
0
 public ExportDict(CrammerDictionary dict)
 {
     InitializeComponent();
     mDictionary = dict;
 }
Exemplo n.º 6
0
        private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
        {
            try
            {
                // If already initialized, do not restore
                if (mMainPageInitialized == false)
                {
                    mMainPageInitialized = true;
                    mCurrentDictionary = (Application.Current as App).CurrentDictionary;
                    loadDictionaryAndPickFirstWord(false);
                }

                mNormalFontSize = mCurrentDictionary.FontSizeNormal;
            }
            catch (Exception ex)
            {
                (Application.Current as App).ErrorMessage = ex.Message;
                this.NavigationService.Navigate(new Uri("/ErrorMessage.xaml", UriKind.Relative));
            }
        }
Exemplo n.º 7
0
 private void ContentPanel_Loaded(object sender, RoutedEventArgs e)
 {
     mCurrentDict = (Application.Current as App).CurrentDictionary;
     populateAll();
 }