private void StartOPeration(object obj) { if (noOfCustommers > 0 && noOfThreads > 0) { customersList = CreateCustomers.CustomerCreation(noOfCustommers); CreateThreads.ResetAll(); CreateThreads.CreateAndPerform(noOfThreads, noOfCustommers, customersList); } else { MessageBox.Show("No of threads & no of customers should be greater than zero."); } }
private void Reset(object obj) { if (noOfCustommers > 0 && noOfThreads > 0) { noOfThreads = 0; NotifyPropertyChanged("NoOfThreads"); noOfCustommers = 0; NotifyPropertyChanged("NoOfCustommers"); customersList.Clear(); CreateThreads.ResetAll(); } else { noOfThreads = 0; NotifyPropertyChanged("NoOfThreads"); noOfCustommers = 0; NotifyPropertyChanged("NoOfCustommers"); } }