private void buttonLoad_Click(object sender, EventArgs e) { try { ApplicationSettings.Instance.LoadFilePath = textBoxLoadPath.Text; int tuplesCount = StoneHandler.LoadDataSet(textBoxLoadPath.Text); WindowsHelperMethods.ShowInformationMessage("فایل DataSet با {0} Tuple موفقیت آمیز خوانده شد.", tuplesCount); } catch (Exception exception) { HandleUIException(exception, "بروز خطا هنگام ایجاد فایل DataSet."); } }
private void buttonRun_Click(object sender, EventArgs e) { try { HelperClasses.TimeTools timer = new HelperClasses.TimeTools(); timer.Start(); StoneHandler.Run(); timer.Stop(); WindowsHelperMethods.ShowInformationMessage("عملیات با موفقیت خاتمه یافت. زمان اجرا : {0} ثانیه.", timer.StringEllapsedTime); } catch (Exception exception) { HandleUIException(exception, "بروز خطا هنگام اجرای Stone."); } }