private ScatterViewItem _myDadSVI; //The scatterviewitem that has me as a DataContext //private double _verticalScrollOffset; //private ScatterViewItem _myUncleSVI; //The scatterviewitem that is aligned. Hook our scroll viewers //private SurfaceScrollViewer _mySurfaceScrollViewer; public TranslationViewModel(SurfaceWindow1ViewModel mainVM, IGene model) { _mainVM = mainVM; _model = model; _background = new SolidColorBrush(Colors.Black); //_myUncleSVI = null; //Nothing is aligned to me yet }
/// <summary> /// Default constructor. /// </summary> public SurfaceWindow1() { InitializeComponent(); // Add handlers for Application activation events AddActivationHandlers(); //Define DataContext _myViewModel = new SurfaceWindow1ViewModel(); this.DataContext = _myViewModel; _myViewModel.GenePentagonContactDown +=new GenePentagonContactDownHandler(MoveAndShowGeneInfoMenu); _myViewModel.GeneBarMovedEvent += new Action(HideGeneInfoMenu); }
public PrimerDesignerViewModel(SurfaceWindow1ViewModel surfaceWindowViewModel) { _surfaceWindowViewModel = surfaceWindowViewModel; _visibility = Visibility.Collapsed; _backCommand = new RelayCommand(Execute_BackCommand); }
public SearchShelfViewModel(Action<String> onChromosomeSelected, Action<IGene> onGeneSelected, SurfaceWindow1ViewModel surfaceWindowViewModel) { _searchMenuVM = new SearchMenuViewModel(onChromosomeSelected); _onGeneSelected = onGeneSelected; _surfaceWindowViewModel = surfaceWindowViewModel; _surfaceWindowViewModel.NewChromosomeSelected += OnNewChromosomeSelected; _geneSearchCommand = new RelayCommand(Execute_GeneSearch, CanExecute_GeneSearch); GeneSearchStatus = GeneSearchStatusEnum.Idle; RetractShelf(); }
public ExtendedDesktopViewModel(SurfaceWindow1ViewModel mainVM) { _mainVM = mainVM; }
public ChromosomeBarViewModel(IGenBankProvider provider, SurfaceWindow1ViewModel surfaceWindowVM) { this._provider = provider; this._surfaceWindowVM = surfaceWindowVM; surfaceWindowVM.NewChromosomeSelected += new Action<IChromosomeStream>(OnNewChromosomeStream); }
private ScatterViewItem _myDadSVI; //The scatterviewitem that has me as a DataContext //private double _verticalScrollOffset; //private ScatterViewItem _myUncleSVI; //The scatterviewitem that is aligned. Hook our scroll viewers //private SurfaceScrollViewer _mySurfaceScrollViewer; public SequenceViewModel(SurfaceWindow1ViewModel mainVM, IGene model) { _mainVM = mainVM; _model = model; _background = new SolidColorBrush(Colors.Black); }