Ejemplo n.º 1
0
        private void OnClosed(object sender, EventArgs e)
        {
            if (windowState == FormWindowState.Minimized)
                windowState = FormWindowState.Normal;

            IsolatedStorageFormState item = new IsolatedStorageFormState(store, storageArea);
            item.Store(new FormState(dimensions, windowState));
            store.Dispose();
        }
Ejemplo n.º 2
0
        private void OnLoad(object sender, System.EventArgs e)
        {
            string[] files = store.GetFileNames(storageArea);
            if (files.Length == 0) return;

            IsolatedStorageFormState item = new IsolatedStorageFormState(store, storageArea);
            FormState state = item.Load();
            if (null == state) return;

            form.Bounds = state.Dimension;
            form.WindowState = state.WindowState;
        }
Ejemplo n.º 3
0
        private void OnClosed(object sender, EventArgs e)
        {
            if (windowState == FormWindowState.Minimized)
            {
                windowState = FormWindowState.Normal;
            }

            IsolatedStorageFormState item = new IsolatedStorageFormState(store, storageArea);

            item.Store(new FormState(dimensions, windowState));
            store.Dispose();
        }
Ejemplo n.º 4
0
        private void OnLoad(object sender, System.EventArgs e)
        {
            string[] files = store.GetFileNames(storageArea);
            if (files.Length == 0)
            {
                return;
            }

            IsolatedStorageFormState item = new IsolatedStorageFormState(store, storageArea);
            FormState state = item.Load();

            if (null == state)
            {
                return;
            }

            form.Bounds      = state.Dimension;
            form.WindowState = state.WindowState;
        }