Пример #1
0
        public override bool OpenFile(xdc.Forms.SourceFileForm targetForm, string filename)
        {
            try
            {
                targetForm.LoadFile(filename);
            } catch (Exception e)
            {
                MessageBox.Show("Unable to open file: " + filename + "(" + e.Message + ")");
                return(false);
            }

            return(true);
        }
Пример #2
0
        public void Add(string actualFilename, string localFilename, SourceFileForm form)
        {
            OpenFileStruct file = new OpenFileStruct();

            file.localFilename = localFilename;
            file.remoteFilename = actualFilename;
            file.form = form;

            _openFiles.Add(file.localFilename, file);
        }