Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void saveToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (Filename != String.Empty)
            {
                ProjectSerializer.Save(Filename, TheWorkspace);
                TheWorkspace.Dirty = false;
            }

            UpdateUI();
        }
Beispiel #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void exportToolStripMenuItem_Click(object sender, EventArgs e)
        {
            saveFileDialog1.Filter = "MS Project XML files|*.xml";

            if (saveFileDialog1.ShowDialog() == DialogResult.OK)
            {
                Filename = saveFileDialog1.FileName;
                ProjectSerializer.Export(Filename, TheWorkspace);
                TheWorkspace.Dirty = false;
            }

            UpdateUI();
        }
Beispiel #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void openToolStripMenuItem_Click(object sender, EventArgs e)
        {
            openFileDialog1.Filter = "XML files|*.xml";

            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                Filename     = openFileDialog1.FileName;
                TheWorkspace = ProjectSerializer.Load(Filename);
                TheWorkspace.AssignIDs();
                TheWorkspace.Process();
            }

            BuildUI();
        }