Пример #1
0
 public PatrolPattern GetInitializedCurrentPattern(GenreFolder parent)
 {
     try
     {
         CurrentPattern.ParentFolder = parent;
         CurrentPattern.Initialize(currentBoards,
             patternTextBox.Text,
             ngPatternTextBox.Text,
             //ignorePatternCheckBox.Checked,
             jpgCheckBox.Checked,
             pngCheckBox.Checked,
             gifCheckBox.Checked,
             bmpCheckBox.Checked,
             zipCheckBox.Checked,
             nameTextBox.Text,
             subFolderFormatControl.Text);
     }
     catch (ArgumentException ex)
     {
         MessageBox.Show(string.Format("{0}:{1}\n正しい値を入力しなおしてください。", CurrentPattern.Name, ex.Message),
             "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
         return null;
     }
     return CurrentPattern;
 }
Пример #2
0
 /// <summary>
 /// 指定した空フォルダーを追加します
 /// </summary>
 /// <param name="emptyFolder"></param>
 public void AddEmptyFolder(string path)
 {
     GenreFolder emptyFolder = new GenreFolder(path);
     TreeNode folderNode = new TreeNode(emptyFolder.Name)
     {
         Tag = emptyFolder,
         Name = emptyFolder.Name,
         ImageIndex = PatrolPatternsEditForm.FolderImageIndex,
         SelectedImageIndex = PatrolPatternsEditForm.FolderImageIndex
     };
     Nodes.Add(folderNode);
     OnFolderAdded(folderNode);
 }