Esempio n. 1
0
        private void btnAyarlar_Click(object sender, EventArgs e)
        {
            FormSettings settings = new FormSettings();

            if (settings.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                timerJop.Interval      = Convert.ToInt32(Properties.Settings.Default.sure) * 60000;
                fileSystemWatcher.Path = Properties.Settings.Default.argeklasor;
            }
        }
Esempio n. 2
0
        private void btnAyarlar_Click(object sender, EventArgs e)
        {
            FormSettings settings = new FormSettings();

            if (settings.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                timerJop.Interval      = AppSettingHelper.Default.timeout * 60000;
                fileSystemWatcher.Path = AppSettingHelper.Default.argeklasor;
            }
        }
Esempio n. 3
0
        public FormGeneral()
        {
            InitializeComponent();
            fGen = this;

            currentListOfDirectories = new List <DirectoryInfo>();
            currentListOfFiles       = new List <FileInfo>();
            watcher          = new FileSystemWatcher();
            watcher.Changed += RefreshList;
            watcher.Created += RefreshList;
            watcher.Deleted += RefreshList;
            watcher.Renamed += RefreshList;
            formSettings     = new FormSettings();
            formSettings.Show();
            formSettings.Visible = false;
            //Settings.SetDefaultSettings();
            //Settings.GetSettings();
            RedrawForm();
            Start();
        }
Esempio n. 4
0
 public FormGeneral()
 {
     InitializeComponent();
     fGen             = this;
     persData         = new PersData[7];
     persData[0].name = "Passport ID:";
     persData[1].name = "Phone numbers:";
     persData[2].name = "INN:";
     persData[3].name = "SNILS:";
     persData[4].name = "EMail:";
     persData[5].name = "FTP adresses:";
     persData[6].name = "VK adresses:";
     for (int i = 0; i < persData.Length; i++)
     {
         persData[i].data = new List <string>();
     }
     regex    = new Regex[7];
     regex[0] = new Regex(@"\d{4}\s\d{6}");                                                                                                  //passportID
     regex[1] = new Regex(@"\+?\d{11}");                                                                                                     //phoneNumber
     regex[2] = new Regex(@"\d{12}");                                                                                                        //inn
     regex[3] = new Regex(@"\d{3}\-\d{3}\-\d{3}\s\d{2}");                                                                                    //snils
     regex[4] = new Regex(@"(?i)[a-z]+([a-z]|[A-Z]|_|\-|\.|[0-9])*(?i)[a-z]+\@(?i)[a-z]+([a-z]|[A-Z]|_|\-|\.|[0-9])*(?i)[a-z]\.[a-z]{2,4}"); //email
     regex[5] = new Regex(@"ftp://[a-zA-Z_\-\.0-9]+[\.][a-z]{2,4}/?");                                                                       //[0-9]{1,3}][/]?]");                                         //ftp
     regex[6] = new Regex(@"^((https?|ftp)\:\/\/)?vk\.com/?.*");                                                                             //vk
     currentListOfDirectories = new List <DirectoryInfo>();
     currentListOfFiles       = new List <FileInfo>();
     watcher          = new FileSystemWatcher();
     watcher.Changed += RefreshList;
     watcher.Created += RefreshList;
     watcher.Deleted += RefreshList;
     watcher.Renamed += RefreshList;
     formSettings     = new FormSettings();
     formSettings.Show();
     formSettings.Visible = false;
     Settings.SetDefaultSettings();
     RedrawForm();
     Start();
 }