Beispiel #1
0
 public StudyBlock(AlgorithmWindow algorithmWindow)
 {
     InitializeComponent();
     _algorithmWindow = algorithmWindow;
     _isEdit          = false;
     SetDefaultValues();
     ActionsList.ItemsSource = _study.DictionaryActionForColor;
 }
Beispiel #2
0
 public BlockOfTurn(AbstractAction action, AlgorithmWindow algorithmWindow)
 {
     InitializeComponent();
     _algorithmWindow = algorithmWindow;
     _isEdit          = true;
 }
Beispiel #3
0
 public BlockOfTurn(AlgorithmWindow algorithmWindow)
 {
     InitializeComponent();
     _algorithmWindow = algorithmWindow;
     _isEdit          = false;
 }
Beispiel #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();
        }
Beispiel #5
0
 public MoveBlock(AlgorithmWindow algorithmWindow)
 {
     InitializeComponent();
     _algorithmWindow = algorithmWindow;
     _isEdit          = false;
 }