Ejemplo n.º 1
0
		private void OpenMnu_Click(object sender, System.EventArgs e)
		{
			if (!BeforeClearCheck())
			{
				return;
			}
			ObisManufacturer mnf = new ObisManufacturer();
			OpenFileDialog dlg = new OpenFileDialog();
			dlg.ValidateNames = true;
			dlg.Filter = "XML OBIS files (*.obx)|*.obx|All files (*.*)|*.*";
			dlg.Multiselect = false;
			if (dlg.ShowDialog() == DialogResult.OK)
			{
				mnf.Load(dlg.FileName);
				m_Manufacturer = mnf;
				BuildTree();
				TestMnu.Enabled = SaveAsMnu.Enabled = SaveMnu.Enabled = SaveTBtn.Enabled = true;
			}
			m_Dirty = false;
		}
Ejemplo n.º 2
0
		private void NewMnu_Click(object sender, System.EventArgs e)
		{
			if (!BeforeClearCheck())
			{
				return;
			}
			m_Manufacturer = new ObisManufacturer("Manufacturer", 0, "");
			TestMnu.Enabled = SaveAsMnu.Enabled = SaveMnu.Enabled = SaveTBtn.Enabled = true;
			BuildTree();
		}