示例#1
0
        public void SaveAs(string Path)
        {
            XmlSerializer formatter = new XmlSerializer(typeof(DataStorage));

            using (FileStream fs = new FileStream(Path, FileMode.OpenOrCreate))
                formatter.Serialize(fs, DrawingController.Backup());
        }
示例#2
0
        public MainWindow()
        {
            InitializeComponent();

            DrawingController.CurrentStorage = new DataStorage();
            DrawingController.Scene          = Scene;
            DrawingController.BridgeCreated += drawingWertex_BridgeCreated;

            sceneController = new SceneController(Scene, DrawAreaCanvas);
            DrawingController.ConnectDrawingObject(sceneController);
            fileController = new FileController(DrawingController.Backup());
            fileController.ConnectToHistoryJournal(this);
            OpacityAnimationOut.Completed += OpacityAnimationOut_Completed;
            IsOriented.Checked            += IsOriented_Checked;
            IsOriented.Unchecked          += IsOriented_Unchecked;
        }