internal SavingCardContentPanel(MainApplicationWindow parent, Card card)
        {
            //Save the reference to the parent
            this.parent = parent;

            //Save the reference to the card object
            this.card = card;

            //Initialize the UI
            InitializeComponent();

            //Attach any event handlers
            AttacheInternalEventHandlers();

            //Start saving the card
            SaveCardAndHandleReturn();
        }
        internal EditingCardContentPanel(MainApplicationWindow parent, Card card, bool justSaved)
        {
            //Set the local instance of the parent form
            this.parent = parent;

            //Set the local reference to the Card object
            this.card = card;

            //Initialize the UI
            InitializeComponent();

            //Initialize the message boxes
            InitializeMessageBoxes();

            //If just saved then show the saved message
            if (justSaved)
                ToggleJustSavedMessage();
        }
        internal EjectingCardContentPanel(MainApplicationWindow parent, Card card)
        {
            //Init the UI
            InitializeComponent();

            //Let the system know the card is being removed
            Dependencies.SystemContext.CardIsBeingRemoved(card);

            //Set a timer to wait then reset the content panel
            var t = new Timer { Interval = 2000 };
            t.Tick += delegate(object sender, EventArgs e)
                {
                    t.Enabled = false;
                    var eventArgs = new MainApplicationWindow.ContentPanelStateChangeEventArgs
                        {
                            ContentPanelState = MainApplicationWindow.ContentPanelStates.Waiting,
                        };
                    parent.RaiseContentPanelStateChange(this, eventArgs);
                };
            t.Enabled = true;
        }