Esempio n. 1
0
        public MainWindow()
        {
            InitializeComponent();
            MainApplicationWindow mainApplicationWindow = new MainApplicationWindow();

            mainApplicationWindow.Show();
            this.Close();
        }
Esempio n. 2
0
        public WaitingContentPanel(MainApplicationWindow parent)
        {
            //Set the parent to a reference of the MainApplicationWindow
            this.parent = parent;

            //Initialize the control UI
            InitializeComponent();

            //Hook up any local event handlers
            InitializeInternalEventsAndTimers();
        }
Esempio n. 3
0
        public ConnectionQuestionsContentPanel(MainApplicationWindow parent)
        {
            //Set the local instance of the parent window
            this.parent = parent;

            //Init the UI
            InitializeComponent();

            //Add and configure the custom check boxes
            AddAndConfigureCustomCheckboxes();
        }
        public WaitingContentPanel(MainApplicationWindow parent)
        {
            //Set the parent to a reference of the MainApplicationWindow
            this.parent = parent;

            //Initialize the control UI
            InitializeComponent();

            //Hook up any local event handlers
            InitializeInternalEventsAndTimers();
        }
        public ConnectionQuestionsContentPanel(MainApplicationWindow parent)
        {
            //Set the local instance of the parent window
            this.parent = parent;

            //Init the UI
            InitializeComponent();

            //Add and configure the custom check boxes
            AddAndConfigureCustomCheckboxes();
        }
        internal ConnectionErrorContentPanel(MainApplicationWindow parent, List<Card> potentiallyConnectedCards)
        {
            //Set the local instance of the parent
            this.parent = parent;

            //Set the local instance of the potentially connected cards
            this.potentiallyConnectedCards = potentiallyConnectedCards;

            //Initialize the UI
            InitializeComponent();

            //Display the connection errors
            DisplayConnectionErrors();
        }
Esempio n. 7
0
        internal ConnectionErrorContentPanel(MainApplicationWindow parent, List <Card> potentiallyConnectedCards)
        {
            //Set the local instance of the parent
            this.parent = parent;

            //Set the local instance of the potentially connected cards
            this.potentiallyConnectedCards = potentiallyConnectedCards;

            //Initialize the UI
            InitializeComponent();

            //Display the connection errors
            DisplayConnectionErrors();
        }
        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();
        }
Esempio n. 9
0
        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();
        }
Esempio n. 11
0
        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;
        }
        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;
        }