public override void EditEnd(bool cancel)
 {
     if (!cancel && Validate())
     {
         _attr.Set(_textBoxPath.Text);
     }
 }
Ejemplo n.º 2
0
        public void OnDoubleClick()
        {
            if (State != Graph.State.Stopped)
            {
                return;
            }

            var dialog = new System.Windows.Forms.OpenFileDialog()
            {
                Filter          = "All files (*.*)|*.*",
                CheckFileExists = true,
                CheckPathExists = true,
                Multiselect     = false,
            };

            if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                _attrFilePath.Set(dialog.FileName);
            }
        }