Example #1
0
        private void BtnLoadProfileClick(object sender, EventArgs e)
        {
            // load file to working copy of the profile
            OpenFileDialog openFileDialog = new OpenFileDialog();

            openFileDialog.Title            = ScreenManagerLang.dlgColorProfile_ToolTip_LoadProfile;
            openFileDialog.Filter           = ScreenManagerLang.FileFilter_XML;
            openFileDialog.FilterIndex      = 1;
            openFileDialog.InitialDirectory = Software.ColorProfileDirectory;

            if (openFileDialog.ShowDialog() == DialogResult.OK)
            {
                string filePath = openFileDialog.FileName;
                if (filePath.Length > 0)
                {
                    ToolManager.LoadPresets(filePath);
                    LoadPresets(false);
                }
            }
        }