Esempio n. 1
0
        /// <summary>
        /// Method used for saving the states to Registry.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>

        private void OnSaveToRegStateClick(object sender, RoutedEventArgs e)
        {
            //Save State
            BinaryFormatter formatter1 = new BinaryFormatter();

            DocContainer.SaveDockState(formatter1);
        }
Esempio n. 2
0
 /// <summary>
 /// Method used for saving the states to Binary.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnSaveToBinStateClick(object sender, RoutedEventArgs e)
 {
     //Save to Binary State
     if (BinFormatterRadio.IsChecked == true)
     {
         Binload.IsEnabled = true;
         BinaryFormatter formatter1 = new BinaryFormatter();
         DocContainer.SaveDockState(formatter1, StorageFormat.Binary,
                                    AppDomain.CurrentDomain.BaseDirectory.ToString() + "\\docum_bin.bin");
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Method used for saving the states to XML.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnSaveToXMLStateClick(object sender, RoutedEventArgs e)
 {
     //Save to XML sate
     if (BinFormatterRadio.IsChecked == true)
     {
         BinaryFormatter formatter1 = new BinaryFormatter();
         DocContainer.SaveDockState(formatter1, StorageFormat.Xml,
                                    AppDomain.CurrentDomain.BaseDirectory.ToString() + "\\docum_xml.xml");
     }
     else
     {
         SoapFormatter formatter1 = new SoapFormatter();
         DocContainer.SaveDockState(formatter1, StorageFormat.Xml,
                                    AppDomain.CurrentDomain.BaseDirectory.ToString() + "\\docum_xml.xml");
     }
 }
Esempio n. 4
0
 /// <summary>
 /// Method used for saving the states to IS.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnSaveStateToIsoStorageClick(object sender, RoutedEventArgs e)
 {
     Isload.IsEnabled = true;
     //Save State to Isolated Storage
     DocContainer.SaveDockState();
 }
Esempio n. 5
0
 /// <summary>
 /// Method used for saving the states to IS.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnSaveStateToIsoStorageClick(object sender, RoutedEventArgs e)
 {
     //Save State to Isolated Storage
     DocContainer.SaveDockState();
 }