Beispiel #1
0
        private void bpLoad_Click(object sender, EventArgs e)
        {
            OpenFileDialog dlg = new OpenFileDialog();

            dlg.Filter = "Fichiers SplitEditor (*.xml)|*.xml";
            DialogResult result = dlg.ShowDialog();

            if (result == DialogResult.OK)
            {
                FileStream file = File.Open(dlg.FileName, FileMode.Open);
                try {
                    SplitEcran spl = (SplitEcran) new XmlSerializer(typeof(SplitEcran)).Deserialize(file);
                    bitmapCpc.splitEcran = spl;
                }
                catch (Exception ex) {
                    MessageBox.Show(ex.StackTrace, ex.Message);
                }
                file.Close();
                DisplayLigne(true);
            }
        }
Beispiel #2
0
        private const int SEUIL_LUM_2 = 170;            // 0x80;

        public ImportSplit(SplitEcran spl)
        {
            splitEcran = spl;
            InitializeComponent();
        }