Exemple #1
0
        public ActFileOperationEditPage(ActFileOperations act)
        {
            InitializeComponent();
            mAct = act;
            TextFileNameTextBox.Init(Context.GetAsContext(mAct.Context), mAct.GetOrCreateInputParam(ActFileOperations.Fields.SourceFilePath), true, true, UCValueExpression.eBrowserType.File);
            DestinationFolderTextBox.Init(Context.GetAsContext(mAct.Context), mAct.GetOrCreateInputParam(ActFileOperations.Fields.DestinationFolder), true, true, UCValueExpression.eBrowserType.File);
            xRunArgumentsTextBox.Init(Context.GetAsContext(mAct.Context), mAct.GetOrCreateInputParam(nameof(ActFileOperations.Arguments)), true, false);

            mAct.SolutionFolder = WorkSpace.UserProfile.Solution.Folder.ToUpper();

            App.FillComboFromEnumVal(FileActionMode, mAct.FileOperationMode);
            App.ObjFieldBinding(FileActionMode, ComboBox.SelectedValueProperty, mAct, "FileOperationMode");
        }
        public ActReadTextFileEditPage(ActReadTextFile act)
        {
            InitializeComponent();
            mAct = act;
            TextFileNameTextBox.Init(mAct.GetOrCreateInputParam(ActReadTextFile.Fields.TextFilePath));
            TextToWrite.Init(mAct.GetOrCreateInputParam(ActReadTextFile.Fields.TextToWrite));

            mAct.SolutionFolder = App.UserProfile.Solution.Folder.ToUpper();

            App.FillComboFromEnumVal(FileActionMode, mAct.FileActionMode);
            App.ObjFieldBinding(FileActionMode, ComboBox.SelectedValueProperty, mAct, "FileActionMode");

            App.FillComboFromEnumVal(TextFileEncoding, mAct.TextFileEncoding);
            App.ObjFieldBinding(TextFileEncoding, ComboBox.SelectedValueProperty, mAct, "TextFileEncoding");
        }
        public ActReadTextFileEditPage(ActReadTextFile act)
        {
            InitializeComponent();
            mAct = act;
            TextFileNameTextBox.Init(Context.GetAsContext(mAct.Context), mAct.GetOrCreateInputParam(ActReadTextFile.Fields.TextFilePath));
            TextToWrite.Init(Context.GetAsContext(mAct.Context), mAct.GetOrCreateInputParam(ActReadTextFile.Fields.TextToWrite));
            LineNumber.Init(Context.GetAsContext(mAct.Context), mAct.GetOrCreateInputParam(ActReadTextFile.Fields.AppendLineNumber));

            mAct.SolutionFolder = WorkSpace.Instance.Solution.Folder.ToUpper();

            GingerCore.General.FillComboFromEnumObj(FileActionMode, mAct.FileActionMode);
            GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(FileActionMode, ComboBox.SelectedValueProperty, mAct, "FileActionMode");

            GingerCore.General.FillComboFromEnumObj(TextFileEncoding, mAct.TextFileEncoding);
            GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(TextFileEncoding, ComboBox.SelectedValueProperty, mAct, "TextFileEncoding");

            GingerCore.General.FillComboFromEnumObj(TextFileAppendType, mAct.AppendAt);
            GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(TextFileAppendType, ComboBox.SelectedValueProperty, mAct, "AppendAt");
        }