Beispiel #1
0
 private void addTypeList(string dataType, string dir, bool mode)
 {
     TypeClass type = new TypeClass {
         DataType = dataType,
         Dir = dir,
         FileSaveMode = mode
     };
     this.typeList.Add(type);
 }
Beispiel #2
0
 private void SaveFileSaveK()
 {
     fileSave.TypeList.Clear();
     TypeClass type = new TypeClass {
         DataType = "F",
         Dir = this.txbKanriFile.Text
     };
     fileSave.TypeList.Add(type);
     foreach (DataGridViewRow row in (IEnumerable) this.dgvFileSaveK.Rows)
     {
         type = new TypeClass {
             DataType = row.Cells[this.cFSKDataType.Index].Value.ToString(),
             Dir = row.Cells[this.cFSKDir.Index].Value.ToString(),
             FileSaveMode = (bool) row.Cells[this.cFSKFileSaveMode.Index].Value
         };
         fileSave.TypeList.Add(type);
     }
     fileSave.AllFileSave.Mode = this.ckbFileSave.Checked;
     string[] strArray = new string[4];
     strArray[0] = (this.cmbFileNameRule1.SelectedIndex + 1).ToString();
     if (this.cmbFileNameRule2.SelectedIndex <= 0)
     {
         strArray[1] = "9";
     }
     else
     {
         strArray[1] = this.cmbFileNameRule2.SelectedIndex.ToString();
     }
     if (this.cmbFileNameRule3.SelectedIndex <= 0)
     {
         strArray[2] = "9";
     }
     else
     {
         strArray[2] = this.cmbFileNameRule3.SelectedIndex.ToString();
     }
     if (this.cmbFileNameRule4.SelectedIndex <= 0)
     {
         strArray[3] = "9";
     }
     else
     {
         strArray[3] = this.cmbFileNameRule4.SelectedIndex.ToString();
     }
     fileSave.FileNaming.FileNameRule = string.Concat(strArray);
     fileSave.SendFile.SendUser = this.txbSendFile.Text;
 }