예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CheckFareController"/> class.
 /// </summary>
 /// <param name="executionParam">
 /// The execution param.
 /// </param>
 internal CheckFareController(ExecutionParam executionParam = null)
 {
     this._executionParam = executionParam;
     var liveFareDir = Path.Combine(ProcessUtils.CurrentProcessDirectory, "LiveFare");
     this._liveFareStorage = new LiveFareFileStorage(liveFareDir);
     this._monitors = new AggeratingFareRequestMonitor();
 }
예제 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LiveFareDataForm"/> class.
        /// </summary>
        /// <param name="fileStorage">
        /// The file storage.
        /// </param>
        public LiveFareDataForm(LiveFareFileStorage fileStorage)
        {
            this._fileStorage = fileStorage;
            this.InitializeComponent();

            this.Text = AppUtil.ProductName + " " + this.Text;
            this.lvFareData.AttachMenuStrip(this.lvFareDataContextMenuStrip);
        }