Exemplo n.º 1
0
 private void WriteChangeToOptionsOfFileSizes()
 {
     if (dud_FileSeziBaseFrom.SelectedIndex > -1 && dud_FileSeziBaseTo.SelectedIndex > -1)
     {
         _mBox.ApplicationOptions.FileSizeIgnoreFrom = (long)nud_IgnoreFrom.Value *
                                                       Convert.FromStringToByteGetLong(dud_FileSeziBaseFrom
                                                                                       .SelectedItem
                                                                                       .ToString());
         _mBox.ApplicationOptions.FileSizeIgnoreTo = (long)nud_IgnoreTo.Value *
                                                     Convert.FromStringToByteGetLong(dud_FileSeziBaseTo
                                                                                     .SelectedItem
                                                                                     .ToString());
     }
 }
Exemplo n.º 2
0
 private void dud_FileSeziBaseTo_SelectedItemChanged(object sender, EventArgs e)
 {
     if (dud_FileSeziBaseFrom.SelectedIndex > -1 && dud_FileSeziBaseTo.SelectedIndex > -1)
     {
         if (Convert.FromStringToByteGetLong(
                 dud_FileSeziBaseFrom.SelectedItem.ToString())
             >
             Convert.FromStringToByteGetLong(dud_FileSeziBaseTo.SelectedItem.ToString()))
         {
             dud_FileSeziBaseFrom.SelectedIndex = dud_FileSeziBaseTo.SelectedIndex;
         }
         WriteChangeToOptionsOfFileSizes();
     }
 }