예제 #1
0
        /// <summary>
        /// Choose the source/import file
        /// </summary>
        /// <param name="obj">Not in use</param>
        private void ChooseSourceFileExecuted(object obj)
        {
            RwOpenFileDialogCreationData dialogCreationData = new RwOpenFileDialogCreationData
            {
                Multiselect = false,
                Title       = "Select Mfg file",
                Filter      = "Textfile|*.txt"
            };

            SourceFilename = RwFileAndDirectoryUtilities.OpenFileDialog(dialogCreationData);
            if (!string.IsNullOrEmpty(SourceFilename))
            {
                ReadMfgData();
            }
        }
        /// <summary>
        /// Choose a source file on the file system
        /// </summary>
        /// <param name="obj">Not in use</param>
        private void ChooseSourceFileExecuted(object obj)
        {
            RwOpenFileDialogCreationData creationData = new RwOpenFileDialogCreationData
            {
                Title       = "Select the files with frame informations",
                Multiselect = false,
                Filter      = "Frame file|*.csv"
            };

            SourceFilename = RwFileAndDirectoryUtilities.OpenFileDialog(creationData);
            if (!string.IsNullOrEmpty(SourceFilename))
            {
                ReadFrameData();
            }
        }