Example #1
0
        public void OpenNewDrawing()
        {
            this.gdDrawing.Children.Clear();
            this.currentDb             = new Drawingboard();
            this.currentDb.CloseEvent += db_CloseEvent;
            this.gdDrawing.Children.Add(this.currentDb);

            this.gdDrawing.Visibility = System.Windows.Visibility.Visible;
            this.sbShow.Begin();
        }
Example #2
0
        void rec_TouchUp(object sender, TouchEventArgs e)
        {
            Rectangle rec = sender as Rectangle;

            if (rec.Tag != null)
            {
                string id = rec.Tag.ToString();

                this.currentDb             = new Drawingboard();
                this.currentDb.CloseEvent += this.db_CloseEvent;
                this.currentDb.Load(this.boards[id]);
                this.gdDrawing.Children.Clear();
                this.gdDrawing.Children.Add(this.currentDb);
                this.gdDrawing.Visibility = System.Windows.Visibility.Visible;
                this.sbShow.Begin();
            }
        }