Exemplo n.º 1
0
        private void bLoad_Click(object sender, EventArgs e)
        {
            if (ofdProfile.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                // deserialize profile settings
                XmlSerializer reader = new XmlSerializer(typeof(ConverterProfile));
                FileStream    fs     = (FileStream)ofdProfile.OpenFile();
                profile = (ConverterProfile)(reader.Deserialize(fs));
                LoadProfileSettings();

                // force preview refresh
                tmrRefresh.Stop();
                backgroundWorker.RunWorkerAsync();
            }
        }
Exemplo n.º 2
0
        public MainForm()
        {
            InitializeComponent();

            // initializing variables
            info_before  = null;
            image_before = null;
            image_after  = null;

            // creating empty profile
            profile = new ConverterProfile();

            // initializing form values
            LoadProfileSettings();

            // other visual setup
            bOrderUp.Text   = ((char)0x2191).ToString();
            bOrderDown.Text = ((char)0x2193).ToString();
        }