public void Setup() { SelectPdfCmd = new RelayCommand(x => SelectPdfCmdExecute()); ClosingCmd = new ActionCommand<System.ComponentModel.CancelEventArgs>(ClosingExecute); MySqlHelper.RefreshAll += Refresh; Refresh(); }
public InterpretListVM() { MySqlHelper.RefreshAll += Refresh; MouseDoubleClickCmd = new ActionCommand<MouseButtonEventArgs>(MouseDoubleClickCmdExecute); ShowPiecesCmd = new RelayCommand( x => ShowPiecesCmdExecute(x)); NewInterpretCmd = new RelayCommand(x => NewInterpretCmdExecute()); KeyUpCmd = new ActionCommand<KeyEventArgs>(KeyUpCmdExecute); DeleteInterpretCmd = new RelayCommand(x => DeleteInterpretCmdExecute()); }
public MainWindowVM() { pieceListVM = new PieceListVM(); interpretListVM = new InterpretListVM(); GenreListVM = new GenreListVM(); KeyDownCmd = new ActionCommand<KeyEventArgs>(this.KeyDownCmdExecute); NewInterpretCmd = new RelayCommand(x => NewInterpretCmdExecute()); instance = this; }
private void Setup() { AddGenreCmd = new RelayCommand(x => AddGenreCmdExecute()); AddInterpretCmd = new RelayCommand(x => AddInterpretCmdExecute()); DeleteGenreCmd = new RelayCommand(x => DeleteGenreCmdExecute()); DeleteInterpretCmd = new RelayCommand(x => DeleteInterpretCmdExecute()); ClosingCmd = new ActionCommand<System.ComponentModel.CancelEventArgs>(ClosingExecute); EditPartCmd = new RelayCommand(x => EditPartCmdExecute()); MySqlHelper.RefreshAll += Refresh; Refresh(); }
public void Setup() { SelectedFiles = new ObservableCollection<File>(); ImportCmd = new RelayCommand(x => ImportCmdExecute()); OKCmd = new RelayCommand(x => OKCmdExecute()); SelectedSelectedFileDownCmd = new RelayCommand(x => SelectedSelectedFileDownCmdExecute()); SelectedSelectedFileUpCmd = new RelayCommand(x => SelectedSelectedFileUpCmdExecute()); ImportFileMouseClickCmd = new ActionCommand<MouseButtonEventArgs>(ImportFileMouseClickCmdExecute); ClosingCmd = new ActionCommand<System.ComponentModel.CancelEventArgs>(ClosingExecute); MySqlHelper.RefreshAll += Refresh; Refresh(); }
public PieceListVM() { filterTitle = ""; filterInterpret = ""; filterGenre = ""; MouseDoubleClickCmd = new ActionCommand<MouseButtonEventArgs>(MouseDoubleClickCmdExecute); NewPieceCmd = new RelayCommand(x => NewPieceCmdExecute()); KeyUpCmd = new ActionCommand<KeyEventArgs>(KeyUpCmdExecute); DeletePieceCmd = new RelayCommand(x => DeletePieceCmdExecute()); MySqlHelper.RefreshAll += Refresh; }