예제 #1
0
 public StudyBlock(AlgorithmWindow algorithmWindow)
 {
     InitializeComponent();
     _algorithmWindow = algorithmWindow;
     _isEdit          = false;
     SetDefaultValues();
     ActionsList.ItemsSource = _study.DictionaryActionForColor;
 }
예제 #2
0
 public BlockOfTurn(AbstractAction action, AlgorithmWindow algorithmWindow)
 {
     InitializeComponent();
     _algorithmWindow = algorithmWindow;
     _isEdit          = true;
 }
예제 #3
0
 public BlockOfTurn(AlgorithmWindow algorithmWindow)
 {
     InitializeComponent();
     _algorithmWindow = algorithmWindow;
     _isEdit          = false;
 }
예제 #4
0
        /// <summary>
        /// Создание нового алгоритма
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void NewAlgorithmClick(object sender, RoutedEventArgs e)
        {
            var algorithmWindow = new AlgorithmWindow(new Algorithm());

            algorithmWindow.Show();
        }
예제 #5
0
 public MoveBlock(AlgorithmWindow algorithmWindow)
 {
     InitializeComponent();
     _algorithmWindow = algorithmWindow;
     _isEdit          = false;
 }