Esempio n. 1
0
 private void FormSettings_Load(object sender, EventArgs e)
 {
     //TODO Заглушка: аутентификация только с клавы
     comboBox_use_auth_key.SelectedIndex = 0;
     if (File.Exists(ManageSetting.path_to_set_file))
     {
         ManageSetting.LoadSettings(ref o);
     }
     else
     {
         o.key_fname      = "50";//50;
         o.left_init_dir  = @"";
         o.right_init_dir = @"";
         o.prefix         = "0";
         o.key_size       = "256";
         o.pwd_file_enc   = "41425";
         o.def_name_fcont = "Contacts.cr";
         //o.pwd = "password";
         //ManageSetting.CreateSettings(o);
     }
     LoadToControls();
 }
Esempio n. 2
0
 private void button_ok_Click(object sender, EventArgs e)
 {
     SaveFromControls();
     ManageSetting.CreateSettings(o);
     this.DialogResult = DialogResult.OK;
 }