コード例 #1
0
 public static void setState(DownloadOptionsParams values)
 {
     m_install_directory          = values.programLocation;
     m_data_directory             = values.dataLocation;
     m_create_desktop_shortcut    = values.createDesktopShortcut;
     m_create_start_menu_shortcut = values.createStartMenuShortcut;
 }
コード例 #2
0
        public DownloadOptionsControl(DownloadOptionsParams initialValues)
        {
            InitializeComponent();

            DesktopShortcutCheckBox.Checked = initialValues.createDesktopShortcut;
            StartMenuCheckBox.Checked       = initialValues.createStartMenuShortcut;
            ProgramLocationTextBox.Text     = initialValues.programLocation;
            DataLocationTextBox.Text        = initialValues.programLocation;
        }
コード例 #3
0
        public DownloadOptionsParams getParams()
        {
            DownloadOptionsParams rVal = new DownloadOptionsParams();

            rVal.createDesktopShortcut   = DesktopShortcutCheckBox.Checked;
            rVal.createStartMenuShortcut = StartMenuCheckBox.Checked;
            rVal.programLocation         = ProgramLocationTextBox.Text;
            rVal.programLocation         = DataLocationTextBox.Text;
            return(rVal);
        }
コード例 #4
0
        private void InitializeDefaultParams()
        {
            m_doParams = new DownloadOptionsParams();
            m_doParams.createDesktopShortcut   = true;
            m_doParams.createStartMenuShortcut = true;
            m_doParams.programLocation         = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) + "\\Facebook Message Analyzer\\";
            m_doParams.dataLocation            = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "\\Solace Inc.\\Facebook Message Analyzer\\";

            m_mdParams = new ModuleDownloadParams();
            // TODO: May need to change the md param instance variable
            m_mdParams.selectedModules = new List <Type>();
        }
コード例 #5
0
        private void savePreviousState()
        {
            switch (m_state)
            {
            case InstallerScreenState.DownloadOptions:
                m_doParams = ((DownloadOptionsControl)m_preferenceControl).getParams();
                break;

            case InstallerScreenState.ModuleOptions:
                m_mdParams = ((ModuleDownloadControl)m_preferenceControl).getParams();
                break;
            }
        }