public ManageDictionary(CrammerDictionary dictionary)
        {
            InitializeComponent();

            // Load all entries, even non-active
            mDictionary.load(dictionary.DictionaryFile, false);
        }
Beispiel #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);
        }
        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;
 }
 public ExportDict(CrammerDictionary dict)
 {
     InitializeComponent();
     mDictionary = dict;
 }
        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));
            }
        }
 private void ContentPanel_Loaded(object sender, RoutedEventArgs e)
 {
     mCurrentDict = (Application.Current as App).CurrentDictionary;
     populateAll();
 }