Esempio n. 1
0
		private void done_Click(object sender, EventArgs e)
		{
			if (Db4oFile.FileName != "" && XmlFile.FileName != "")
			{
				statusLabel.Text = "Processing...";
				this.ResumeLayout();

				// Here's the real work
				var converter = new Db4oToXmlConverter();
				converter.db4o2xml(Db4oFile.FileName, xml.Text,compressed.Checked);

				Done = true;
				statusLabel.Text = "Done";
				this.Hide();
			}
			else
				MessageBox.Show("Must choose Db4o source and Xml target");
		}
Esempio n. 2
0
        private void done_Click(object sender, EventArgs e)
        {
            if (Db4oFile.FileName != "" && XmlFile.FileName != "")
            {
                statusLabel.Text = "Processing...";
                this.ResumeLayout();

                // Here's the real work
                var converter = new Db4oToXmlConverter();
                converter.db4o2xml(Db4oFile.FileName, xml.Text, compressed.Checked);

                Done             = true;
                statusLabel.Text = "Done";
                this.Hide();
            }
            else
            {
                MessageBox.Show("Must choose Db4o source and Xml target");
            }
        }