Exemplo n.º 1
0
 //Pos Config Data
 private void ConfigurationData()
 {
     try
     {
         EclipsePOS.WPF.SystemManager.Data.posConfigDataSet posConfigDataSet = new  posConfigDataSet();
         EclipsePOS.WPF.SystemManager.Data.posConfigDataSetTableAdapters.pos_configTableAdapter posConfigTableAdapter = new  EclipsePOS.WPF.SystemManager.Data.posConfigDataSetTableAdapters.pos_configTableAdapter();
         posConfigTableAdapter.Fill(posConfigDataSet.pos_config);
         posConfigDataSet.WriteXml(View.OutputFolderPath() + "\\PosConfig.xml", XmlWriteMode.WriteSchema);
     }
     catch (Exception e)
     {
         //Microsoft.Windows.Controls.MessageBox.Show(e.ToString());
     }
 }
Exemplo n.º 2
0
        //Configurations
        private void ConfigurationData()
        {
            try
            {
                EclipsePOS.WPF.SystemManager.Data.posConfigDataSet dataSetXml = new  posConfigDataSet();
                dataSetXml.ReadXml(View.InputFolderPath() + "\\PosConfig.xml", XmlReadMode.ReadSchema);

                EclipsePOS.WPF.SystemManager.Data.posConfigDataSet dataSetRDB = new  posConfigDataSet();
                EclipsePOS.WPF.SystemManager.Data.posConfigDataSetTableAdapters.pos_configTableAdapter tableAdapter = new  EclipsePOS.WPF.SystemManager.Data.posConfigDataSetTableAdapters.pos_configTableAdapter();
                tableAdapter.Fill(dataSetRDB.pos_config);

                dataSetRDB.Merge(dataSetXml);
                tableAdapter.Update(dataSetRDB);
            }
            catch (Exception e)
            {
                //Microsoft.Windows.Controls.MessageBox.Show(e.ToString());
                return;
            }
        }