public Writing(IUser auctor, string text, WritingType type) { CreaturaDate = DateTime.Now; Text = text; Type = type; Auctor = auctor; }
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; }
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(".");
private void motParMotLayoutToolStripMenuItem_Click(object sender, EventArgs e) { normaleLayoutToolStripMenuItem.Checked = false; motParMotLayoutToolStripMenuItem.Checked = true; _type = WritingType.WordPerWord; }
public WriteService(WritingType writingType, Table table, object[] args) { _writingType = writingType; Table = table; _parameters = args; }