Example #1
0
        private void tsmSaveAs_Click(object sender, EventArgs e)
        {
            InputBox        inputBox;
            RowCollectionIO rowCollectionIO;
            string          dataObjectPath;

            inputBox = new InputBox("Save data object", "Enter name for new data object");
            inputBox.ShowDialog(Application.OpenForms[0]);

            if (inputBox.DialogResult == DialogResult.OK)
            {
                dataObjectPath = Common.BuildPath(GenericTemplate.moduleParams.DataPath, GenericTemplate.constModuleDataFolder, GenericTemplate.constDataObjectsFolder);
                Common.MakeAllSubFolders(dataObjectPath);
                rowCollectionIO = new RowCollectionIO(dataObjectPath + inputBox.InputTekst + ".xml");

                rowCollectionIO.Save(this);
            }
        }
Example #2
0
        private void tsmSaveAs_Click(object sender, EventArgs e)
        {
            InputBox inputBox;
            RowCollectionIO rowCollectionIO;
            string dataObjectPath;

            inputBox = new InputBox("Save data object", "Enter name for new data object");
            inputBox.ShowDialog(Application.OpenForms[0]);

            if (inputBox.DialogResult == DialogResult.OK)
            {
                dataObjectPath = Common.BuildPath(GenericTemplate.moduleParams.DataPath, GenericTemplate.constModuleDataFolder, GenericTemplate.constDataObjectsFolder);
                Common.MakeAllSubFolders(dataObjectPath);
                rowCollectionIO = new RowCollectionIO(dataObjectPath + inputBox.InputTekst + ".xml");

                rowCollectionIO.Save(this);
            }
        }