Exemplo n.º 1
0
        private void mnuImportMultiText_Click(object sender, System.EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;
            MultiTextDataAdapter adapter = new MultiTextDataAdapter();
            DesignData           design  = adapter.ImportDesign();

            if (design != null)
            {
                design.Save();
            }

            Cursor.Current = Cursors.Default;
        }
Exemplo n.º 2
0
        private void mnuExportMultiText_Click(object sender, System.EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;

            if (designsPanel1.SelectedDesign != null)
            {
                MultiTextDataAdapter adapter = new MultiTextDataAdapter();
                adapter.Export(designsPanel1.SelectedDesign);
                designsPanel1.SelectedDesign.Unload();
            }
            else
            {
                MessageBox.Show("Export failed, no design selected");
            }

            Cursor.Current = Cursors.Default;
        }