Beispiel #1
0
        //This method manage the blink button click
        private void BlinkButton_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                Synchronizer.BlinkBoard(this.parent.Inserted_boards.ElementAt(this.boardId - 1));
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.StackTrace);
                Console.WriteLine(ex.Message);

                if (Features.openedWindow.Equals(Features.Window_Mode.Create) || Features.openedWindow.Equals(Features.Window_Mode.Modify))
                {
                    this.parent.Hide();
                    MainWindow mainWindow = new MainWindow();
                    mainWindow.Show();
                    this.parent.Close();
                }
            }
        }