Exemplo n.º 1
0
        public LogDetails()
        {
            InitializeComponent();

            prop = Properties.Settings.Default;

            detailsList = new List <LDetails>();
            detailsList.Add(new LDetails("Create directory", prop.logCreateDir, x => { prop.logCreateDir = x; }));
            detailsList.Add(new LDetails("Delete directory", prop.logDelDir, x => { prop.logDelDir = x; }));
            detailsList.Add(new LDetails("Delete file", prop.logDelFile, x => { prop.logDelFile = x; }));
            detailsList.Add(new LDetails("Move file", prop.logMoveFile, x => { prop.logMoveFile = x; }));
            detailsList.Add(new LDetails("Rename file", prop.logRenameFile, x => { prop.logRenameFile = x; }));
            detailsList.Add(new LDetails("Change file creation date", prop.logChangeCreationDate, x => { prop.logChangeCreationDate = x; }));

            prop = Properties.Settings.Default;
        }
Exemplo n.º 2
0
        private void DemoInfoForm_Load(object sender, EventArgs e)
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));

            try {
                demo = Demo.GetDemoFromFileRaw(demoFile);
                prop = Properties.Settings.Default;
                demo.useValidation = prop.renameValidation;

                loadFriendlyConfig(dataGridView);
                textNewName.Text = demo.demoNewName;

                fileHelper = new FileHelper();
            } catch (Exception ex) {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }