12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace RecipeEditorLib.RecipeModel.Params
- {
- public class PathFileParam : Param
- {
- //value is full path name
- private string _value;
- public string Value
- {
- get { return this._value; }
- set
- {
- this._value = value;
- if (this.Feedback != null)
- {
- this.Feedback(this);
- }
- if (string.IsNullOrEmpty(_value))
- {
- FileName = "";
- }
- else
- {
- //int index = _value.LastIndexOf("\\");
- //if (index > -1)
- //{
- // FileName = _value.Substring(index + 1);
- //}
- //else
- {
- FileName = _value;
- }
- }
-
- this.NotifyOfPropertyChange("Value");
- }
- }
- private string _fileName;
- public string FileName
- {
- get { return _fileName; }
- set
- {
- _fileName = value;
- NotifyOfPropertyChange("FileName");
- }
- }
- private string _prefixPath;
- public string PrefixPath
- {
- get { return _prefixPath; }
- set
- {
- _prefixPath = value;
- NotifyOfPropertyChange("PrefixPath");
- }
- }
- }
- }
|