コード例 #1
0
 public Writing(IUser auctor, string text, WritingType type)
 {
     CreaturaDate = DateTime.Now;
     Text         = text;
     Type         = type;
     Auctor       = auctor;
 }
コード例 #2
0
 private void InitMeta()
 {
     _codeAndTranslate = false;
     _type             = WritingType.Normal;
     _keepInvalidChar  = true;
     _cesarKey         = 0;
     _algorithm        = TypeC.Cesar;
     _aeroUseInt       = true;
     _cesarLeftToRight = true;
     _inputDir         = null;
     _outputDir        = null;
     Error             = null;
     _vigenereKey      = null;
     _isInteractive    = true;
 }
コード例 #3
0
ファイル: Metadata.cs プロジェクト: MaelCoulmance/Cryptage2
        public Metadata(string input, string output, State state, bool keepInvalidChar, bool codeAndTranslate,
                        WritingType type, int?cesarKey = null, bool isInteractive = false)
        {
            if (!isInteractive)
            {
                if (input.Equals("") || !(input.EndsWith(".txt") || input.EndsWith(".txt/")))
                {
                    throw new ArgumentException("Invalid input path", nameof(input));
                }

                if (output.Equals("") || !(output.EndsWith(".txt") || output.EndsWith(".txt/")))
                {
                    throw new ArgumentException("Invalid output path", nameof(output));
                }
            }


            this.Input         = input;
            this.Output        = output;
            this.IsInteractive = isInteractive;

            string[] inp  = input.Split("/");
            string[] inpF = inp[^ 1].Split(".");
コード例 #4
0
 private void motParMotLayoutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     normaleLayoutToolStripMenuItem.Checked   = false;
     motParMotLayoutToolStripMenuItem.Checked = true;
     _type = WritingType.WordPerWord;
 }
コード例 #5
0
 public WriteService(WritingType writingType, Table table, object[] args)
 {
     _writingType = writingType;
     Table        = table;
     _parameters  = args;
 }