// -- Consturctor, 需實作所有ICommand public GetOrder_ViewModel(Window_GetOrder parent) { parentWindow = parent; Model_Instance = new GetOrder_Model(this); Do_ExtractData = new RelayCommand(ExtractData, (x) => true); }
private void ButtonGetOrder_Click(object sender, RoutedEventArgs e) { this.Hide(); var GetOrder_instance = new Window_GetOrder(this); GetOrder_instance.Show(); }