예제 #1
0
        private void IndexName_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Window w = new Window();

            w.Width  = 500;
            w.Height = 200;

            IndexTickerInfoEditorView itiev = new IndexTickerInfoEditorView();

            // data load
            IndexTickerInfo iti = this.definedIndexList_.SelectedItem as IndexTickerInfo;

            itiev.ViewModel_ = this.viewModel_.loadDefinedIndex(iti.Name_);

            w.Content = itiev;

            if (w.ShowDialog() == true)
            {
                this.selectedViewModel_ = itiev.ViewModel_;
                this.viewModel_.updateDefinedIndex(itiev.ViewModel_);
                //this.indexSymbolTextBox_.Text = this.selectedViewModel_.Name_;
            }
            else
            {
            }
        }
예제 #2
0
        private void editButton_Click(object sender, RoutedEventArgs e)
        {
            Window w = new Window();

            w.Width  = 500;
            w.Height = 200;

            IndexTickerInfoEditorView itiev = new IndexTickerInfoEditorView();

            w.Content = itiev;

            if (w.ShowDialog() == true)
            {
                this.selectedViewModel_       = itiev.ViewModel_;
                this.indexSymbolTextBox_.Text = this.selectedViewModel_.Name_;
            }
            else
            {
            }
        }
        private void editButton_Click(object sender, RoutedEventArgs e)
        {
            Window w = new Window();
            w.Width = 500;
            w.Height = 200;

            IndexTickerInfoEditorView itiev = new IndexTickerInfoEditorView();

            w.Content = itiev;

            if (w.ShowDialog() == true)
            {
                this.selectedViewModel_ = itiev.ViewModel_;
                this.indexSymbolTextBox_.Text = this.selectedViewModel_.Name_;
            }
            else
            {

            }
        }
        private void IndexName_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Window w = new Window();
            w.Width = 500;
            w.Height = 200;

            IndexTickerInfoEditorView itiev = new IndexTickerInfoEditorView();

            // data load
            IndexTickerInfo iti = this.definedIndexList_.SelectedItem as IndexTickerInfo;

            itiev.ViewModel_ = this.viewModel_.loadDefinedIndex(iti.Name_);

            w.Content = itiev;

            if (w.ShowDialog() == true)
            {
                this.selectedViewModel_ = itiev.ViewModel_;
                this.viewModel_.updateDefinedIndex(itiev.ViewModel_);
                //this.indexSymbolTextBox_.Text = this.selectedViewModel_.Name_;
            }
            else
            {

            }
        }