Beispiel #1
0
 public void Setup()
 {
     SelectPdfCmd = new RelayCommand(x => SelectPdfCmdExecute());
     ClosingCmd = new ActionCommand<System.ComponentModel.CancelEventArgs>(ClosingExecute);
     MySqlHelper.RefreshAll += Refresh;
     Refresh();
 }
Beispiel #2
0
 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());
 }
Beispiel #3
0
 public MainWindowVM()
 {
     pieceListVM = new PieceListVM();
     interpretListVM = new InterpretListVM();
     GenreListVM = new GenreListVM();
     KeyDownCmd = new ActionCommand<KeyEventArgs>(this.KeyDownCmdExecute);
     NewInterpretCmd = new RelayCommand(x => NewInterpretCmdExecute());
     instance = this;
 }
Beispiel #4
0
 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();
 }
Beispiel #5
0
 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();
 }
Beispiel #6
0
        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;
        }