public DesignerMainWindow()
        {
            InitializeComponent();
            Utilities.CreateInternalDirectories();
            _practice = Practice.GetInstance();

            Slide slide = CreateNewSlide(_practice.GetPracticeType());
            _practice.AddNewSlide(slide);
            _slideNr++;
            _currentSlideNr++;
            _instance = this;

            PracticeName.Text = _practice.PracticeName;

            // make new thumbnail
            Viewbox vb = MakeNewThumbnail();
            lbThumbs.Items.Add(vb);
            lbThumbs.SelectedIndex = 0;

            // override InkCanvas mouse handlers
            canMainCanvas.AllowDrop = true;
            AddCanvasEventHandlers();
        }
 public static DesignerMainWindow GetInstance()
 {
     return _instance ?? (_instance = new DesignerMainWindow());
 }