Ejemplo n.º 1
0
        /// <summary>
        /// Начало работы. Переход к выбору алгеброгеометрического кода.
        /// </summary>
        /// <param name="sender">MainWindow.</param>
        /// <param name="e">RoutedEventArgs.</param>
        private void startButton_Click(object sender, RoutedEventArgs e)
        {
            SelectCodeWindow win = new SelectCodeWindow();

            win.Top  = this.Top;
            win.Left = this.Left;
            win.Show();
            this.Close();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Конструктор окна СhoiceWindow.
        /// </summary>
        /// <param name="name">Название кода</param>
        /// <param name="index">Номер кода в списке сохраненных</param>
        /// <param name="codes">Выбранный код</param>
        /// <param name="win">Окно, вызвавшее конструктор СhoiceWindow</param>
        public СhoiceWindow(string name, int index, List <Code> codes, SelectCodeWindow win)
        {
            InitializeComponent();

            label.Content = "Вы уверены, что хотите \nудалить " + name + "?";
            this.index    = index;
            this.codes    = codes;
            this.win      = win;
        }
Ejemplo n.º 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.win1 = ((Генератор_алгеброгеометрических_кодов.SelectCodeWindow)(target));
                return;

            case 2:
                this.mainLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.codeSelector = ((System.Windows.Controls.ComboBox)(target));

            #line 30 "..\..\SelectCodeWindow.xaml"
                this.codeSelector.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.codeSelectorComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.previousWindowButton = ((System.Windows.Controls.Button)(target));

            #line 42 "..\..\SelectCodeWindow.xaml"
                this.previousWindowButton.Click += new System.Windows.RoutedEventHandler(this.previousWindowButton_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.trashButton = ((System.Windows.Controls.Button)(target));

            #line 49 "..\..\SelectCodeWindow.xaml"
                this.trashButton.Click += new System.Windows.RoutedEventHandler(this.trashButton_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.nextWindowButton = ((System.Windows.Controls.Button)(target));

            #line 56 "..\..\SelectCodeWindow.xaml"
                this.nextWindowButton.Click += new System.Windows.RoutedEventHandler(this.nextWindowButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }