// Decompiled with JetBrains decompiler // Type: CarotDAV.FsTestForm // Assembly: CarotDAV, Version=1.13.2.18337, Culture=neutral, PublicKeyToken=null // MVID: C31F2651-A4A8-4D09-916A-8C6106F5E7C8 // Assembly location: F:\Eigene Dateien\Dropbox\portable Collection\Progs\CarotDAV\CarotDAV.exe using Microsoft.VisualBasic.CompilerServices; using Rei.Fs; using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Drawing; using System.IO; using System.Net; using System.Runtime.CompilerServices; using System.Text; using System.Windows.Forms; namespace CarotDAV { [DesignerGenerated] public class FsTestForm : Form { private IContainer components; [AccessedThroughProperty("ButtonClose")] private Button _ButtonClose; [AccessedThroughProperty("ButtonGetInfoBasic")] private Button _ButtonGetInfoBasic; [AccessedThroughProperty("TextBox1")] private TextBox _TextBox1; [AccessedThroughProperty("ButtonGetEntries")] private Button _ButtonGetEntries; [AccessedThroughProperty("TextBox2")] private TextBox _TextBox2; [AccessedThroughProperty("ButtonClear")] private Button _ButtonClear; [AccessedThroughProperty("ButtonGetInfoRoot")] private Button _ButtonGetInfoRoot; [AccessedThroughProperty("ButtonCreate")] private Button _ButtonCreate; [AccessedThroughProperty("ButtonCopy")] private Button _ButtonCopy; [AccessedThroughProperty("ButtonMove")] private Button _ButtonMove; [AccessedThroughProperty("ButtonWrite")] private Button _ButtonWrite; [AccessedThroughProperty("ButtonWriteResume")] private Button _ButtonWriteResume; [AccessedThroughProperty("ButtonRead")] private Button _ButtonRead; [AccessedThroughProperty("Label1")] private Label _Label1; [AccessedThroughProperty("ButtonDelete")] private Button _ButtonDelete; [AccessedThroughProperty("CheckBoxF4")] private CheckBox _CheckBoxF4; [AccessedThroughProperty("Label2")] private Label _Label2; [AccessedThroughProperty("CheckBoxF6")] private CheckBox _CheckBoxF6; [AccessedThroughProperty("CheckBoxF1")] private CheckBox _CheckBoxF1; [AccessedThroughProperty("CheckBoxF5")] private CheckBox _CheckBoxF5; [AccessedThroughProperty("CheckBoxF2")] private CheckBox _CheckBoxF2; [AccessedThroughProperty("Label3")] private Label _Label3; [AccessedThroughProperty("CheckBoxE1")] private CheckBox _CheckBoxE1; [AccessedThroughProperty("CheckBoxE2")] private CheckBox _CheckBoxE2; [AccessedThroughProperty("CheckBoxE4")] private CheckBox _CheckBoxE4; [AccessedThroughProperty("CheckBoxE6")] private CheckBox _CheckBoxE6; [AccessedThroughProperty("CheckBoxF3")] private CheckBox _CheckBoxF3; [AccessedThroughProperty("CheckBoxF7")] private CheckBox _CheckBoxF7; [AccessedThroughProperty("CheckBoxE5")] private CheckBox _CheckBoxE5; [AccessedThroughProperty("CheckBoxR3")] private CheckBox _CheckBoxR3; [AccessedThroughProperty("CheckBoxR1")] private CheckBox _CheckBoxR1; [AccessedThroughProperty("CheckBoxR2")] private CheckBox _CheckBoxR2; [AccessedThroughProperty("CheckBoxF8")] private CheckBox _CheckBoxF8; [AccessedThroughProperty("TextBoxExceptChar")] private TextBox _TextBoxExceptChar; [AccessedThroughProperty("Label4")] private Label _Label4; [AccessedThroughProperty("TextBoxFileSize")] private TextBox _TextBoxFileSize; [AccessedThroughProperty("Label5")] private Label _Label5; [AccessedThroughProperty("CheckBoxL")] private CheckBox _CheckBoxL; [AccessedThroughProperty("CheckBoxR")] private CheckBox _CheckBoxR; [AccessedThroughProperty("CheckBoxW")] private CheckBox _CheckBoxW; [AccessedThroughProperty("CheckBoxC")] private CheckBox _CheckBoxC; [AccessedThroughProperty("CheckBoxCP")] private CheckBox _CheckBoxCP; [AccessedThroughProperty("CheckBoxMV")] private CheckBox _CheckBoxMV; [AccessedThroughProperty("CheckBoxRN")] private CheckBox _CheckBoxRN; [AccessedThroughProperty("CheckBoxLO")] private CheckBox _CheckBoxLO; [AccessedThroughProperty("CheckBoxLMT")] private CheckBox _CheckBoxLMT; [AccessedThroughProperty("CheckBoxCT")] private CheckBox _CheckBoxCT; [AccessedThroughProperty("CheckBoxLAT")] private CheckBox _CheckBoxLAT; [AccessedThroughProperty("CheckBoxPR")] private CheckBox _CheckBoxPR; [AccessedThroughProperty("CheckBoxPW")] private CheckBox _CheckBoxPW; [AccessedThroughProperty("CheckBoxPP")] private CheckBox _CheckBoxPP; [AccessedThroughProperty("CheckBoxIG")] private CheckBox _CheckBoxIG; [AccessedThroughProperty("Label6")] private Label _Label6; [AccessedThroughProperty("CheckBoxF9")] private CheckBox _CheckBoxF9; [AccessedThroughProperty("CheckBoxE3")] private CheckBox _CheckBoxE3; [AccessedThroughProperty("CheckBoxE0")] private CheckBox _CheckBoxE0; [AccessedThroughProperty("ButtonWriteOver")] private Button _ButtonWriteOver; [AccessedThroughProperty("CheckBoxOW")] private CheckBox _CheckBoxOW; [AccessedThroughProperty("ButtonSetTimes")] private Button _ButtonSetTimes; [AccessedThroughProperty("CheckBoxFT")] private CheckBox _CheckBoxFT; [AccessedThroughProperty("Label7")] private Label _Label7; [AccessedThroughProperty("ButtonCopyOverWrite")] private Button _ButtonCopyOverWrite; [AccessedThroughProperty("ButtonMoveOverWrite")] private Button _ButtonMoveOverWrite; [AccessedThroughProperty("CheckBoxMoveOver")] private CheckBox _CheckBoxMoveOver; [AccessedThroughProperty("CheckBoxCopyOver")] private CheckBox _CheckBoxCopyOver; [AccessedThroughProperty("CheckBoxSameName")] private CheckBox _CheckBoxSameName; private FsBase pFS; private CacheManager pCache; private UCSNormalization pUploadFilenameNormalization; private UCSNormalization pDownloadFilenameNormalization; private string[] Name_asc; private string[] Name_space; private string[] Name_long; private string[] Name_symbol1; private string[] Name_symbol2; private string[] Name_symbol3; private string[] Name_uni; private string[] Name_longuni; private string[] Name_bwspace; private string[] Ext_none; private string[] Ext_txt; private string[] Ext_zip; private string[] Ext_data; private string[] Ext_bin; private string[] Ext_uni; private string[] Ext_multi; private long DefFileSize; private int seed; private int seed2; public FsTestForm() { this.Load += new EventHandler(this.FsTestForm_Load); this.Name_asc = new string[3] { "testtest", "TESTTEST", "TEST0123" }; this.Name_space = new string[2]{ "t e s t", "test " }; this.Name_long = new string[1] { "This is a test long filename for CarotDAV" }; this.Name_symbol1 = new string[3] { "!$'()", "+,-.;=@[", "]^_`{}" }; this.Name_symbol2 = new string[2]{ "\"*:", "<>?\\|" }; this.Name_symbol3 = new string[1]{ "#%&~" }; this.Name_uni = new string[3] { "あイ一丁\x2462", "\x2460\x2461\x2462\x2463", "纊褜云鍈柿蓜" }; this.Name_longuni = new string[1] { "これはCarotDAVのテストで用いるファイルです。" }; this.Name_bwspace = new string[1]{ " test" }; this.Ext_none = new string[1]{ "" }; this.Ext_txt = new string[4] { ".txt", ".doc", ".xls", ".pdf" }; this.Ext_zip = new string[2]{ ".zip", ".rar" }; this.Ext_data = new string[2]{ ".dat", ".cpp" }; this.Ext_bin = new string[4] { ".exe", ".com", ".db", ".info" }; this.Ext_uni = new string[2]{ ".もふ", ".\x2460" }; this.Ext_multi = new string[3] { ".tar.gz", ".txt.txt.txt", ".exe.com.bin.doc" }; this.DefFileSize = 10240L; this.InitializeComponent(); } [DebuggerNonUserCode] protected override void Dispose(bool disposing) { try { if (!disposing || this.components == null) return; this.components.Dispose(); } finally { base.Dispose(disposing); } } [DebuggerStepThrough] private void InitializeComponent() { this.ButtonClose = new Button(); this.ButtonGetInfoBasic = new Button(); this.TextBox1 = new TextBox(); this.ButtonGetEntries = new Button(); this.TextBox2 = new TextBox(); this.ButtonClear = new Button(); this.ButtonGetInfoRoot = new Button(); this.ButtonCreate = new Button(); this.ButtonCopy = new Button(); this.ButtonMove = new Button(); this.ButtonWrite = new Button(); this.ButtonWriteResume = new Button(); this.ButtonRead = new Button(); this.Label1 = new Label(); this.ButtonDelete = new Button(); this.CheckBoxF4 = new CheckBox(); this.Label2 = new Label(); this.CheckBoxF6 = new CheckBox(); this.CheckBoxF1 = new CheckBox(); this.CheckBoxF5 = new CheckBox(); this.CheckBoxF2 = new CheckBox(); this.Label3 = new Label(); this.CheckBoxE1 = new CheckBox(); this.CheckBoxE2 = new CheckBox(); this.CheckBoxE4 = new CheckBox(); this.CheckBoxE6 = new CheckBox(); this.CheckBoxF3 = new CheckBox(); this.CheckBoxF7 = new CheckBox(); this.CheckBoxE5 = new CheckBox(); this.CheckBoxR3 = new CheckBox(); this.CheckBoxR1 = new CheckBox(); this.CheckBoxR2 = new CheckBox(); this.CheckBoxF8 = new CheckBox(); this.TextBoxExceptChar = new TextBox(); this.Label4 = new Label(); this.TextBoxFileSize = new TextBox(); this.Label5 = new Label(); this.CheckBoxL = new CheckBox(); this.CheckBoxR = new CheckBox(); this.CheckBoxW = new CheckBox(); this.CheckBoxC = new CheckBox(); this.CheckBoxCP = new CheckBox(); this.CheckBoxMV = new CheckBox(); this.CheckBoxRN = new CheckBox(); this.CheckBoxLO = new CheckBox(); this.CheckBoxLMT = new CheckBox(); this.CheckBoxCT = new CheckBox(); this.CheckBoxLAT = new CheckBox(); this.CheckBoxPR = new CheckBox(); this.CheckBoxPW = new CheckBox(); this.CheckBoxPP = new CheckBox(); this.CheckBoxIG = new CheckBox(); this.Label6 = new Label(); this.CheckBoxF9 = new CheckBox(); this.CheckBoxE3 = new CheckBox(); this.CheckBoxE0 = new CheckBox(); this.ButtonWriteOver = new Button(); this.CheckBoxOW = new CheckBox(); this.ButtonSetTimes = new Button(); this.CheckBoxFT = new CheckBox(); this.Label7 = new Label(); this.ButtonCopyOverWrite = new Button(); this.ButtonMoveOverWrite = new Button(); this.CheckBoxMoveOver = new CheckBox(); this.CheckBoxCopyOver = new CheckBox(); this.CheckBoxSameName = new CheckBox(); this.SuspendLayout(); this.ButtonClose.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; this.ButtonClose.DialogResult = DialogResult.Cancel; Button buttonClose1 = this.ButtonClose; Point point1 = new Point(680, 489); Point point2 = point1; buttonClose1.Location = point2; this.ButtonClose.Name = "ButtonClose"; Button buttonClose2 = this.ButtonClose; Size size1 = new Size(72, 24); Size size2 = size1; buttonClose2.Size = size2; this.ButtonClose.TabIndex = 65; this.ButtonClose.Text = "Close"; this.ButtonClose.UseVisualStyleBackColor = true; Button buttonGetInfoBasic1 = this.ButtonGetInfoBasic; point1 = new Point(8, 80); Point point3 = point1; buttonGetInfoBasic1.Location = point3; this.ButtonGetInfoBasic.Name = "ButtonGetInfoBasic"; Button buttonGetInfoBasic2 = this.ButtonGetInfoBasic; size1 = new Size(104, 24); Size size3 = size1; buttonGetInfoBasic2.Size = size3; this.ButtonGetInfoBasic.TabIndex = 3; this.ButtonGetInfoBasic.Text = "GetInfo Basic"; this.ButtonGetInfoBasic.UseVisualStyleBackColor = true; this.TextBox1.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; TextBox textBox1_1 = this.TextBox1; point1 = new Point(8, 301); Point point4 = point1; textBox1_1.Location = point4; this.TextBox1.Multiline = true; this.TextBox1.Name = "TextBox1"; this.TextBox1.ScrollBars = ScrollBars.Both; TextBox textBox1_2 = this.TextBox1; size1 = new Size(744, 180); Size size4 = size1; textBox1_2.Size = size4; this.TextBox1.TabIndex = 63; Button buttonGetEntries1 = this.ButtonGetEntries; point1 = new Point(8, 112); Point point5 = point1; buttonGetEntries1.Location = point5; this.ButtonGetEntries.Name = "ButtonGetEntries"; Button buttonGetEntries2 = this.ButtonGetEntries; size1 = new Size(104, 24); Size size5 = size1; buttonGetEntries2.Size = size5; this.ButtonGetEntries.TabIndex = 4; this.ButtonGetEntries.Text = "GetEntries"; this.ButtonGetEntries.UseVisualStyleBackColor = true; this.TextBox2.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; TextBox textBox2_1 = this.TextBox2; point1 = new Point(8, 24); Point point6 = point1; textBox2_1.Location = point6; this.TextBox2.Name = "TextBox2"; TextBox textBox2_2 = this.TextBox2; size1 = new Size(744, 19); Size size6 = size1; textBox2_2.Size = size6; this.TextBox2.TabIndex = 1; this.ButtonClear.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; this.ButtonClear.DialogResult = DialogResult.Cancel; Button buttonClear1 = this.ButtonClear; point1 = new Point(600, 489); Point point7 = point1; buttonClear1.Location = point7; this.ButtonClear.Name = "ButtonClear"; Button buttonClear2 = this.ButtonClear; size1 = new Size(72, 24); Size size7 = size1; buttonClear2.Size = size7; this.ButtonClear.TabIndex = 64; this.ButtonClear.Text = "Clear"; this.ButtonClear.UseVisualStyleBackColor = true; Button buttonGetInfoRoot1 = this.ButtonGetInfoRoot; point1 = new Point(8, 48); Point point8 = point1; buttonGetInfoRoot1.Location = point8; this.ButtonGetInfoRoot.Name = "ButtonGetInfoRoot"; Button buttonGetInfoRoot2 = this.ButtonGetInfoRoot; size1 = new Size(104, 24); Size size8 = size1; buttonGetInfoRoot2.Size = size8; this.ButtonGetInfoRoot.TabIndex = 2; this.ButtonGetInfoRoot.Text = "GetInfo Root"; this.ButtonGetInfoRoot.UseVisualStyleBackColor = true; Button buttonCreate1 = this.ButtonCreate; point1 = new Point(136, 48); Point point9 = point1; buttonCreate1.Location = point9; this.ButtonCreate.Name = "ButtonCreate"; Button buttonCreate2 = this.ButtonCreate; size1 = new Size(104, 24); Size size9 = size1; buttonCreate2.Size = size9; this.ButtonCreate.TabIndex = 9; this.ButtonCreate.Text = "Create"; this.ButtonCreate.UseVisualStyleBackColor = true; Button buttonCopy1 = this.ButtonCopy; point1 = new Point(136, 240); Point point10 = point1; buttonCopy1.Location = point10; this.ButtonCopy.Name = "ButtonCopy"; Button buttonCopy2 = this.ButtonCopy; size1 = new Size(48, 24); Size size10 = size1; buttonCopy2.Size = size10; this.ButtonCopy.TabIndex = 16; this.ButtonCopy.Text = "Copy"; this.ButtonCopy.UseVisualStyleBackColor = true; Button buttonMove1 = this.ButtonMove; point1 = new Point(136, 208); Point point11 = point1; buttonMove1.Location = point11; this.ButtonMove.Name = "ButtonMove"; Button buttonMove2 = this.ButtonMove; size1 = new Size(48, 24); Size size11 = size1; buttonMove2.Size = size11; this.ButtonMove.TabIndex = 14; this.ButtonMove.Text = "Move"; this.ButtonMove.UseVisualStyleBackColor = true; Button buttonWrite1 = this.ButtonWrite; point1 = new Point(136, 112); Point point12 = point1; buttonWrite1.Location = point12; this.ButtonWrite.Name = "ButtonWrite"; Button buttonWrite2 = this.ButtonWrite; size1 = new Size(104, 24); Size size12 = size1; buttonWrite2.Size = size12; this.ButtonWrite.TabIndex = 11; this.ButtonWrite.Text = "Write"; this.ButtonWrite.UseVisualStyleBackColor = true; Button buttonWriteResume1 = this.ButtonWriteResume; point1 = new Point(136, 176); Point point13 = point1; buttonWriteResume1.Location = point13; this.ButtonWriteResume.Name = "ButtonWriteResume"; Button buttonWriteResume2 = this.ButtonWriteResume; size1 = new Size(104, 24); Size size13 = size1; buttonWriteResume2.Size = size13; this.ButtonWriteResume.TabIndex = 13; this.ButtonWriteResume.Text = "*WriteResume"; this.ButtonWriteResume.UseVisualStyleBackColor = true; Button buttonRead1 = this.ButtonRead; point1 = new Point(8, 144); Point point14 = point1; buttonRead1.Location = point14; this.ButtonRead.Name = "ButtonRead"; Button buttonRead2 = this.ButtonRead; size1 = new Size(104, 24); Size size14 = size1; buttonRead2.Size = size14; this.ButtonRead.TabIndex = 5; this.ButtonRead.Text = "Read"; this.ButtonRead.UseVisualStyleBackColor = true; this.Label1.AutoSize = true; Label label1_1 = this.Label1; point1 = new Point(8, 8); Point point15 = point1; label1_1.Location = point15; this.Label1.Name = "Label1"; Label label1_2 = this.Label1; size1 = new Size(50, 12); Size size15 = size1; label1_2.Size = size15; this.Label1.TabIndex = 0; this.Label1.Text = "Base Uri"; Button buttonDelete1 = this.ButtonDelete; point1 = new Point(136, 80); Point point16 = point1; buttonDelete1.Location = point16; this.ButtonDelete.Name = "ButtonDelete"; Button buttonDelete2 = this.ButtonDelete; size1 = new Size(104, 24); Size size16 = size1; buttonDelete2.Size = size16; this.ButtonDelete.TabIndex = 10; this.ButtonDelete.Text = "Delete"; this.ButtonDelete.UseVisualStyleBackColor = true; this.CheckBoxF4.AutoSize = true; this.CheckBoxF4.Checked = true; this.CheckBoxF4.CheckState = CheckState.Checked; CheckBox checkBoxF4_1 = this.CheckBoxF4; point1 = new Point(264, 120); Point point17 = point1; checkBoxF4_1.Location = point17; this.CheckBoxF4.Name = "CheckBoxF4"; CheckBox checkBoxF4_2 = this.CheckBoxF4; size1 = new Size(149, 16); Size size17 = size1; checkBoxF4_2.Size = size17; this.CheckBoxF4.TabIndex = 23; this.CheckBoxF4.Text = "symbol1 !$'()+,-.;=@[]^_`{}"; this.CheckBoxF4.UseVisualStyleBackColor = true; this.Label2.AutoSize = true; Label label2_1 = this.Label2; point1 = new Point(248, 56); Point point18 = point1; label2_1.Location = point18; this.Label2.Name = "Label2"; Label label2_2 = this.Label2; size1 = new Size(105, 12); Size size18 = size1; label2_2.Size = size18; this.Label2.TabIndex = 19; this.Label2.Text = "Filename Charactor"; this.CheckBoxF6.AutoSize = true; this.CheckBoxF6.Checked = true; this.CheckBoxF6.CheckState = CheckState.Checked; CheckBox checkBoxF6_1 = this.CheckBoxF6; point1 = new Point(264, 168); Point point19 = point1; checkBoxF6_1.Location = point19; this.CheckBoxF6.Name = "CheckBoxF6"; CheckBox checkBoxF6_2 = this.CheckBoxF6; size1 = new Size(71, 16); Size size19 = size1; checkBoxF6_2.Size = size19; this.CheckBoxF6.TabIndex = 26; this.CheckBoxF6.Text = "Unicode1"; this.CheckBoxF6.UseVisualStyleBackColor = true; this.CheckBoxF1.AutoSize = true; this.CheckBoxF1.Checked = true; this.CheckBoxF1.CheckState = CheckState.Checked; CheckBox checkBoxF1_1 = this.CheckBoxF1; point1 = new Point(264, 72); Point point20 = point1; checkBoxF1_1.Location = point20; this.CheckBoxF1.Name = "CheckBoxF1"; CheckBox checkBoxF1_2 = this.CheckBoxF1; size1 = new Size(60, 16); Size size20 = size1; checkBoxF1_2.Size = size20; this.CheckBoxF1.TabIndex = 20; this.CheckBoxF1.Text = "abc012"; this.CheckBoxF1.UseVisualStyleBackColor = true; this.CheckBoxF5.AutoSize = true; CheckBox checkBoxF5_1 = this.CheckBoxF5; point1 = new Point(264, 152); Point point21 = point1; checkBoxF5_1.Location = point21; this.CheckBoxF5.Name = "CheckBoxF5"; CheckBox checkBoxF5_2 = this.CheckBoxF5; size1 = new Size(122, 16); Size size21 = size1; checkBoxF5_2.Size = size21; this.CheckBoxF5.TabIndex = 25; this.CheckBoxF5.Text = "*symbol3 \"*/:<>?\\|"; this.CheckBoxF5.UseVisualStyleBackColor = true; this.CheckBoxF2.AutoSize = true; this.CheckBoxF2.Checked = true; this.CheckBoxF2.CheckState = CheckState.Checked; CheckBox checkBoxF2_1 = this.CheckBoxF2; point1 = new Point(264, 88); Point point22 = point1; checkBoxF2_1.Location = point22; this.CheckBoxF2.Name = "CheckBoxF2"; CheckBox checkBoxF2_2 = this.CheckBoxF2; size1 = new Size(54, 16); Size size22 = size1; checkBoxF2_2.Size = size22; this.CheckBoxF2.TabIndex = 21; this.CheckBoxF2.Text = "space"; this.CheckBoxF2.UseVisualStyleBackColor = true; this.Label3.AutoSize = true; Label label3_1 = this.Label3; point1 = new Point(416, 56); Point point23 = point1; label3_1.Location = point23; this.Label3.Name = "Label3"; Label label3_2 = this.Label3; size1 = new Size(55, 12); Size size23 = size1; label3_2.Size = size23; this.Label3.TabIndex = 31; this.Label3.Text = "Extension"; this.CheckBoxE1.AutoSize = true; this.CheckBoxE1.Checked = true; this.CheckBoxE1.CheckState = CheckState.Checked; CheckBox checkBoxE1_1 = this.CheckBoxE1; point1 = new Point(424, 88); Point point24 = point1; checkBoxE1_1.Location = point24; this.CheckBoxE1.Name = "CheckBoxE1"; CheckBox checkBoxE1_2 = this.CheckBoxE1; size1 = new Size(107, 16); Size size24 = size1; checkBoxE1_2.Size = size24; this.CheckBoxE1.TabIndex = 33; this.CheckBoxE1.Text = ".txt .doc .xls .pdf"; this.CheckBoxE1.UseVisualStyleBackColor = true; this.CheckBoxE2.AutoSize = true; this.CheckBoxE2.Checked = true; this.CheckBoxE2.CheckState = CheckState.Checked; CheckBox checkBoxE2_1 = this.CheckBoxE2; point1 = new Point(424, 104); Point point25 = point1; checkBoxE2_1.Location = point25; this.CheckBoxE2.Name = "CheckBoxE2"; CheckBox checkBoxE2_2 = this.CheckBoxE2; size1 = new Size(60, 16); Size size25 = size1; checkBoxE2_2.Size = size25; this.CheckBoxE2.TabIndex = 34; this.CheckBoxE2.Text = ".zip .rar"; this.CheckBoxE2.UseVisualStyleBackColor = true; this.CheckBoxE4.AutoSize = true; this.CheckBoxE4.Checked = true; this.CheckBoxE4.CheckState = CheckState.Checked; CheckBox checkBoxE4_1 = this.CheckBoxE4; point1 = new Point(424, 136); Point point26 = point1; checkBoxE4_1.Location = point26; this.CheckBoxE4.Name = "CheckBoxE4"; CheckBox checkBoxE4_2 = this.CheckBoxE4; size1 = new Size(114, 16); Size size26 = size1; checkBoxE4_2.Size = size26; this.CheckBoxE4.TabIndex = 36; this.CheckBoxE4.Text = ".exe .com .db .info"; this.CheckBoxE4.UseVisualStyleBackColor = true; this.CheckBoxE6.AutoSize = true; this.CheckBoxE6.Checked = true; this.CheckBoxE6.CheckState = CheckState.Checked; CheckBox checkBoxE6_1 = this.CheckBoxE6; point1 = new Point(424, 168); Point point27 = point1; checkBoxE6_1.Location = point27; this.CheckBoxE6.Name = "CheckBoxE6"; CheckBox checkBoxE6_2 = this.CheckBoxE6; size1 = new Size(49, 16); Size size27 = size1; checkBoxE6_2.Size = size27; this.CheckBoxE6.TabIndex = 38; this.CheckBoxE6.Text = "multi"; this.CheckBoxE6.UseVisualStyleBackColor = true; this.CheckBoxF3.AutoSize = true; this.CheckBoxF3.Checked = true; this.CheckBoxF3.CheckState = CheckState.Checked; CheckBox checkBoxF3_1 = this.CheckBoxF3; point1 = new Point(264, 104); Point point28 = point1; checkBoxF3_1.Location = point28; this.CheckBoxF3.Name = "CheckBoxF3"; CheckBox checkBoxF3_2 = this.CheckBoxF3; size1 = new Size(67, 16); Size size28 = size1; checkBoxF3_2.Size = size28; this.CheckBoxF3.TabIndex = 22; this.CheckBoxF3.Text = "long asc"; this.CheckBoxF3.UseVisualStyleBackColor = true; this.CheckBoxF7.AutoSize = true; this.CheckBoxF7.Checked = true; this.CheckBoxF7.CheckState = CheckState.Checked; CheckBox checkBoxF7_1 = this.CheckBoxF7; point1 = new Point(264, 184); Point point29 = point1; checkBoxF7_1.Location = point29; this.CheckBoxF7.Name = "CheckBoxF7"; CheckBox checkBoxF7_2 = this.CheckBoxF7; size1 = new Size(66, 16); Size size29 = size1; checkBoxF7_2.Size = size29; this.CheckBoxF7.TabIndex = 27; this.CheckBoxF7.Text = "long Uni"; this.CheckBoxF7.UseVisualStyleBackColor = true; this.CheckBoxE5.AutoSize = true; this.CheckBoxE5.Checked = true; this.CheckBoxE5.CheckState = CheckState.Checked; CheckBox checkBoxE5_1 = this.CheckBoxE5; point1 = new Point(424, 152); Point point30 = point1; checkBoxE5_1.Location = point30; this.CheckBoxE5.Name = "CheckBoxE5"; CheckBox checkBoxE5_2 = this.CheckBoxE5; size1 = new Size(71, 16); Size size30 = size1; checkBoxE5_2.Size = size30; this.CheckBoxE5.TabIndex = 37; this.CheckBoxE5.Text = "Unicode1"; this.CheckBoxE5.UseVisualStyleBackColor = true; this.CheckBoxR3.AutoSize = true; CheckBox checkBoxR3_1 = this.CheckBoxR3; point1 = new Point(8, 216); Point point31 = point1; checkBoxR3_1.Location = point31; this.CheckBoxR3.Name = "CheckBoxR3"; CheckBox checkBoxR3_2 = this.CheckBoxR3; size1 = new Size(136, 16); Size size31 = size1; checkBoxR3_2.Size = size31; this.CheckBoxR3.TabIndex = 8; this.CheckBoxR3.Text = "*check other property"; this.CheckBoxR3.UseVisualStyleBackColor = true; this.CheckBoxR1.AutoSize = true; this.CheckBoxR1.Checked = true; this.CheckBoxR1.CheckState = CheckState.Checked; CheckBox checkBoxR1_1 = this.CheckBoxR1; point1 = new Point(8, 184); Point point32 = point1; checkBoxR1_1.Location = point32; this.CheckBoxR1.Name = "CheckBoxR1"; CheckBox checkBoxR1_2 = this.CheckBoxR1; size1 = new Size(80, 16); Size size32 = size1; checkBoxR1_2.Size = size32; this.CheckBoxR1.TabIndex = 6; this.CheckBoxR1.Text = "check date"; this.CheckBoxR1.UseVisualStyleBackColor = true; this.CheckBoxR2.AutoSize = true; this.CheckBoxR2.Checked = true; this.CheckBoxR2.CheckState = CheckState.Checked; CheckBox checkBoxR2_1 = this.CheckBoxR2; point1 = new Point(8, 200); Point point33 = point1; checkBoxR2_1.Location = point33; this.CheckBoxR2.Name = "CheckBoxR2"; CheckBox checkBoxR2_2 = this.CheckBoxR2; size1 = new Size(89, 16); Size size33 = size1; checkBoxR2_2.Size = size33; this.CheckBoxR2.TabIndex = 7; this.CheckBoxR2.Text = "check ability"; this.CheckBoxR2.UseVisualStyleBackColor = true; this.CheckBoxF8.AutoSize = true; this.CheckBoxF8.Checked = true; this.CheckBoxF8.CheckState = CheckState.Checked; CheckBox checkBoxF8_1 = this.CheckBoxF8; point1 = new Point(264, 136); Point point34 = point1; checkBoxF8_1.Location = point34; this.CheckBoxF8.Name = "CheckBoxF8"; CheckBox checkBoxF8_2 = this.CheckBoxF8; size1 = new Size(94, 16); Size size34 = size1; checkBoxF8_2.Size = size34; this.CheckBoxF8.TabIndex = 24; this.CheckBoxF8.Text = "symbol2 #%&&~"; this.CheckBoxF8.UseVisualStyleBackColor = true; TextBox textBoxExceptChar1 = this.TextBoxExceptChar; point1 = new Point(264, 240); Point point35 = point1; textBoxExceptChar1.Location = point35; this.TextBoxExceptChar.Name = "TextBoxExceptChar"; TextBox textBoxExceptChar2 = this.TextBoxExceptChar; size1 = new Size(100, 19); Size size35 = size1; textBoxExceptChar2.Size = size35; this.TextBoxExceptChar.TabIndex = 30; this.TextBoxExceptChar.Text = "'"; this.Label4.AutoSize = true; Label label4_1 = this.Label4; point1 = new Point(256, 224); Point point36 = point1; label4_1.Location = point36; this.Label4.Name = "Label4"; Label label4_2 = this.Label4; size1 = new Size(98, 12); Size size36 = size1; label4_2.Size = size36; this.Label4.TabIndex = 29; this.Label4.Text = "Except charactors"; TextBox textBoxFileSize1 = this.TextBoxFileSize; point1 = new Point(424, 240); Point point37 = point1; textBoxFileSize1.Location = point37; this.TextBoxFileSize.Name = "TextBoxFileSize"; TextBox textBoxFileSize2 = this.TextBoxFileSize; size1 = new Size(100, 19); Size size37 = size1; textBoxFileSize2.Size = size37; this.TextBoxFileSize.TabIndex = 42; this.TextBoxFileSize.Text = "2500"; this.Label5.AutoSize = true; Label label5_1 = this.Label5; point1 = new Point(416, 224); Point point38 = point1; label5_1.Location = point38; this.Label5.Name = "Label5"; Label label5_2 = this.Label5; size1 = new Size(91, 12); Size size38 = size1; label5_2.Size = size38; this.Label5.TabIndex = 41; this.Label5.Text = "File Size [kByte]"; this.CheckBoxL.AutoSize = true; this.CheckBoxL.Enabled = false; CheckBox checkBoxL1 = this.CheckBoxL; point1 = new Point(592, 72); Point point39 = point1; checkBoxL1.Location = point39; this.CheckBoxL.Name = "CheckBoxL"; CheckBox checkBoxL2 = this.CheckBoxL; size1 = new Size(58, 16); Size size39 = size1; checkBoxL2.Size = size39; this.CheckBoxL.TabIndex = 44; this.CheckBoxL.Text = "Listing"; this.CheckBoxL.UseVisualStyleBackColor = true; this.CheckBoxR.AutoSize = true; this.CheckBoxR.Enabled = false; CheckBox checkBoxR1 = this.CheckBoxR; point1 = new Point(592, 88); Point point40 = point1; checkBoxR1.Location = point40; this.CheckBoxR.Name = "CheckBoxR"; CheckBox checkBoxR2 = this.CheckBoxR; size1 = new Size(50, 16); Size size40 = size1; checkBoxR2.Size = size40; this.CheckBoxR.TabIndex = 45; this.CheckBoxR.Text = "Read"; this.CheckBoxR.UseVisualStyleBackColor = true; this.CheckBoxW.AutoSize = true; this.CheckBoxW.Enabled = false; CheckBox checkBoxW1 = this.CheckBoxW; point1 = new Point(592, 104); Point point41 = point1; checkBoxW1.Location = point41; this.CheckBoxW.Name = "CheckBoxW"; CheckBox checkBoxW2 = this.CheckBoxW; size1 = new Size(50, 16); Size size41 = size1; checkBoxW2.Size = size41; this.CheckBoxW.TabIndex = 46; this.CheckBoxW.Text = "Write"; this.CheckBoxW.UseVisualStyleBackColor = true; this.CheckBoxC.AutoSize = true; this.CheckBoxC.Enabled = false; CheckBox checkBoxC1 = this.CheckBoxC; point1 = new Point(592, 120); Point point42 = point1; checkBoxC1.Location = point42; this.CheckBoxC.Name = "CheckBoxC"; CheckBox checkBoxC2 = this.CheckBoxC; size1 = new Size(75, 16); Size size42 = size1; checkBoxC2.Size = size42; this.CheckBoxC.TabIndex = 47; this.CheckBoxC.Text = "CreateCol"; this.CheckBoxC.UseVisualStyleBackColor = true; this.CheckBoxCP.AutoSize = true; this.CheckBoxCP.Enabled = false; CheckBox checkBoxCp1 = this.CheckBoxCP; point1 = new Point(592, 136); Point point43 = point1; checkBoxCp1.Location = point43; this.CheckBoxCP.Name = "CheckBoxCP"; CheckBox checkBoxCp2 = this.CheckBoxCP; size1 = new Size(50, 16); Size size43 = size1; checkBoxCp2.Size = size43; this.CheckBoxCP.TabIndex = 48; this.CheckBoxCP.Text = "Copy"; this.CheckBoxCP.UseVisualStyleBackColor = true; this.CheckBoxMV.AutoSize = true; this.CheckBoxMV.Enabled = false; CheckBox checkBoxMv1 = this.CheckBoxMV; point1 = new Point(592, 152); Point point44 = point1; checkBoxMv1.Location = point44; this.CheckBoxMV.Name = "CheckBoxMV"; CheckBox checkBoxMv2 = this.CheckBoxMV; size1 = new Size(51, 16); Size size44 = size1; checkBoxMv2.Size = size44; this.CheckBoxMV.TabIndex = 49; this.CheckBoxMV.Text = "Move"; this.CheckBoxMV.UseVisualStyleBackColor = true; this.CheckBoxRN.AutoSize = true; this.CheckBoxRN.Enabled = false; CheckBox checkBoxRn1 = this.CheckBoxRN; point1 = new Point(592, 168); Point point45 = point1; checkBoxRn1.Location = point45; this.CheckBoxRN.Name = "CheckBoxRN"; CheckBox checkBoxRn2 = this.CheckBoxRN; size1 = new Size(65, 16); Size size45 = size1; checkBoxRn2.Size = size45; this.CheckBoxRN.TabIndex = 50; this.CheckBoxRN.Text = "Rename"; this.CheckBoxRN.UseVisualStyleBackColor = true; this.CheckBoxLO.AutoSize = true; this.CheckBoxLO.Enabled = false; CheckBox checkBoxLo1 = this.CheckBoxLO; point1 = new Point(592, 184); Point point46 = point1; checkBoxLo1.Location = point46; this.CheckBoxLO.Name = "CheckBoxLO"; CheckBox checkBoxLo2 = this.CheckBoxLO; size1 = new Size(48, 16); Size size46 = size1; checkBoxLo2.Size = size46; this.CheckBoxLO.TabIndex = 51; this.CheckBoxLO.Text = "Lock"; this.CheckBoxLO.UseVisualStyleBackColor = true; this.CheckBoxLMT.AutoSize = true; this.CheckBoxLMT.Enabled = false; CheckBox checkBoxLmt1 = this.CheckBoxLMT; point1 = new Point(672, 72); Point point47 = point1; checkBoxLmt1.Location = point47; this.CheckBoxLMT.Name = "CheckBoxLMT"; CheckBox checkBoxLmt2 = this.CheckBoxLMT; size1 = new Size(46, 16); Size size47 = size1; checkBoxLmt2.Size = size47; this.CheckBoxLMT.TabIndex = 56; this.CheckBoxLMT.Text = "LMT"; this.CheckBoxLMT.UseVisualStyleBackColor = true; this.CheckBoxCT.AutoSize = true; this.CheckBoxCT.Enabled = false; CheckBox checkBoxCt1 = this.CheckBoxCT; point1 = new Point(672, 88); Point point48 = point1; checkBoxCt1.Location = point48; this.CheckBoxCT.Name = "CheckBoxCT"; CheckBox checkBoxCt2 = this.CheckBoxCT; size1 = new Size(39, 16); Size size48 = size1; checkBoxCt2.Size = size48; this.CheckBoxCT.TabIndex = 57; this.CheckBoxCT.Text = "CT"; this.CheckBoxCT.UseVisualStyleBackColor = true; this.CheckBoxLAT.AutoSize = true; this.CheckBoxLAT.Enabled = false; CheckBox checkBoxLat1 = this.CheckBoxLAT; point1 = new Point(672, 104); Point point49 = point1; checkBoxLat1.Location = point49; this.CheckBoxLAT.Name = "CheckBoxLAT"; CheckBox checkBoxLat2 = this.CheckBoxLAT; size1 = new Size(45, 16); Size size49 = size1; checkBoxLat2.Size = size49; this.CheckBoxLAT.TabIndex = 58; this.CheckBoxLAT.Text = "LAT"; this.CheckBoxLAT.UseVisualStyleBackColor = true; this.CheckBoxPR.AutoSize = true; this.CheckBoxPR.Enabled = false; CheckBox checkBoxPr1 = this.CheckBoxPR; point1 = new Point(672, 120); Point point50 = point1; checkBoxPr1.Location = point50; this.CheckBoxPR.Name = "CheckBoxPR"; CheckBox checkBoxPr2 = this.CheckBoxPR; size1 = new Size(83, 16); Size size50 = size1; checkBoxPr2.Size = size50; this.CheckBoxPR.TabIndex = 59; this.CheckBoxPR.Text = "PartialRead"; this.CheckBoxPR.UseVisualStyleBackColor = true; this.CheckBoxPW.AutoSize = true; this.CheckBoxPW.Enabled = false; CheckBox checkBoxPw1 = this.CheckBoxPW; point1 = new Point(672, 136); Point point51 = point1; checkBoxPw1.Location = point51; this.CheckBoxPW.Name = "CheckBoxPW"; CheckBox checkBoxPw2 = this.CheckBoxPW; size1 = new Size(83, 16); Size size51 = size1; checkBoxPw2.Size = size51; this.CheckBoxPW.TabIndex = 60; this.CheckBoxPW.Text = "PartialWrite"; this.CheckBoxPW.UseVisualStyleBackColor = true; this.CheckBoxPP.AutoSize = true; this.CheckBoxPP.Enabled = false; CheckBox checkBoxPp1 = this.CheckBoxPP; point1 = new Point(672, 152); Point point52 = point1; checkBoxPp1.Location = point52; this.CheckBoxPP.Name = "CheckBoxPP"; CheckBox checkBoxPp2 = this.CheckBoxPP; size1 = new Size(67, 16); Size size52 = size1; checkBoxPp2.Size = size52; this.CheckBoxPP.TabIndex = 61; this.CheckBoxPP.Text = "Property"; this.CheckBoxPP.UseVisualStyleBackColor = true; this.CheckBoxIG.AutoSize = true; this.CheckBoxIG.Enabled = false; CheckBox checkBoxIg1 = this.CheckBoxIG; point1 = new Point(672, 168); Point point53 = point1; checkBoxIg1.Location = point53; this.CheckBoxIG.Name = "CheckBoxIG"; CheckBox checkBoxIg2 = this.CheckBoxIG; size1 = new Size(81, 16); Size size53 = size1; checkBoxIg2.Size = size53; this.CheckBoxIG.TabIndex = 62; this.CheckBoxIG.Text = "IgnoreCase"; this.CheckBoxIG.UseVisualStyleBackColor = true; this.Label6.AutoSize = true; Label label6_1 = this.Label6; point1 = new Point(584, 56); Point point54 = point1; label6_1.Location = point54; this.Label6.Name = "Label6"; Label label6_2 = this.Label6; size1 = new Size(56, 12); Size size54 = size1; label6_2.Size = size54; this.Label6.TabIndex = 43; this.Label6.Text = "FS Ability"; this.CheckBoxF9.AutoSize = true; CheckBox checkBoxF9_1 = this.CheckBoxF9; point1 = new Point(264, 200); Point point55 = point1; checkBoxF9_1.Location = point55; this.CheckBoxF9.Name = "CheckBoxF9"; CheckBox checkBoxF9_2 = this.CheckBoxF9; size1 = new Size(110, 16); Size size55 = size1; checkBoxF9_2.Size = size55; this.CheckBoxF9.TabIndex = 28; this.CheckBoxF9.Text = "begin with space"; this.CheckBoxF9.UseVisualStyleBackColor = true; this.CheckBoxE3.AutoSize = true; this.CheckBoxE3.Checked = true; this.CheckBoxE3.CheckState = CheckState.Checked; CheckBox checkBoxE3_1 = this.CheckBoxE3; point1 = new Point(424, 120); Point point56 = point1; checkBoxE3_1.Location = point56; this.CheckBoxE3.Name = "CheckBoxE3"; CheckBox checkBoxE3_2 = this.CheckBoxE3; size1 = new Size(66, 16); Size size56 = size1; checkBoxE3_2.Size = size56; this.CheckBoxE3.TabIndex = 35; this.CheckBoxE3.Text = ".dat .cpp"; this.CheckBoxE3.UseVisualStyleBackColor = true; this.CheckBoxE0.AutoSize = true; this.CheckBoxE0.Checked = true; this.CheckBoxE0.CheckState = CheckState.Checked; CheckBox checkBoxE0_1 = this.CheckBoxE0; point1 = new Point(424, 72); Point point57 = point1; checkBoxE0_1.Location = point57; this.CheckBoxE0.Name = "CheckBoxE0"; CheckBox checkBoxE0_2 = this.CheckBoxE0; size1 = new Size(48, 16); Size size57 = size1; checkBoxE0_2.Size = size57; this.CheckBoxE0.TabIndex = 32; this.CheckBoxE0.Text = "none"; this.CheckBoxE0.UseVisualStyleBackColor = true; Button buttonWriteOver1 = this.ButtonWriteOver; point1 = new Point(136, 144); Point point58 = point1; buttonWriteOver1.Location = point58; this.ButtonWriteOver.Name = "ButtonWriteOver"; Button buttonWriteOver2 = this.ButtonWriteOver; size1 = new Size(104, 24); Size size58 = size1; buttonWriteOver2.Size = size58; this.ButtonWriteOver.TabIndex = 12; this.ButtonWriteOver.Text = "*WriteOver"; this.ButtonWriteOver.UseVisualStyleBackColor = true; this.CheckBoxOW.AutoSize = true; this.CheckBoxOW.Enabled = false; CheckBox checkBoxOw1 = this.CheckBoxOW; point1 = new Point(592, 200); Point point59 = point1; checkBoxOw1.Location = point59; this.CheckBoxOW.Name = "CheckBoxOW"; CheckBox checkBoxOw2 = this.CheckBoxOW; size1 = new Size(74, 16); Size size59 = size1; checkBoxOw2.Size = size59; this.CheckBoxOW.TabIndex = 52; this.CheckBoxOW.Text = "OverWrite"; this.CheckBoxOW.UseVisualStyleBackColor = true; Button buttonSetTimes1 = this.ButtonSetTimes; point1 = new Point(136, 272); Point point60 = point1; buttonSetTimes1.Location = point60; this.ButtonSetTimes.Name = "ButtonSetTimes"; Button buttonSetTimes2 = this.ButtonSetTimes; size1 = new Size(104, 24); Size size60 = size1; buttonSetTimes2.Size = size60; this.ButtonSetTimes.TabIndex = 18; this.ButtonSetTimes.Text = "*SetTimes"; this.ButtonSetTimes.UseVisualStyleBackColor = true; this.CheckBoxFT.AutoSize = true; CheckBox checkBoxFt1 = this.CheckBoxFT; point1 = new Point(426, 198); Point point61 = point1; checkBoxFt1.Location = point61; this.CheckBoxFT.Name = "CheckBoxFT"; CheckBox checkBoxFt2 = this.CheckBoxFT; size1 = new Size(86, 16); Size size61 = size1; checkBoxFt2.Size = size61; this.CheckBoxFT.TabIndex = 40; this.CheckBoxFT.Text = "Future Time"; this.CheckBoxFT.UseVisualStyleBackColor = true; this.Label7.AutoSize = true; Label label7_1 = this.Label7; point1 = new Point(414, 186); Point point62 = point1; label7_1.Location = point62; this.Label7.Name = "Label7"; Label label7_2 = this.Label7; size1 = new Size(30, 12); Size size62 = size1; label7_2.Size = size62; this.Label7.TabIndex = 39; this.Label7.Text = "Time"; Button buttonCopyOverWrite1 = this.ButtonCopyOverWrite; point1 = new Point(192, 240); Point point63 = point1; buttonCopyOverWrite1.Location = point63; this.ButtonCopyOverWrite.Name = "ButtonCopyOverWrite"; Button buttonCopyOverWrite2 = this.ButtonCopyOverWrite; size1 = new Size(48, 24); Size size63 = size1; buttonCopyOverWrite2.Size = size63; this.ButtonCopyOverWrite.TabIndex = 17; this.ButtonCopyOverWrite.Text = "*Copy"; this.ButtonCopyOverWrite.UseVisualStyleBackColor = true; Button buttonMoveOverWrite1 = this.ButtonMoveOverWrite; point1 = new Point(192, 208); Point point64 = point1; buttonMoveOverWrite1.Location = point64; this.ButtonMoveOverWrite.Name = "ButtonMoveOverWrite"; Button buttonMoveOverWrite2 = this.ButtonMoveOverWrite; size1 = new Size(48, 24); Size size64 = size1; buttonMoveOverWrite2.Size = size64; this.ButtonMoveOverWrite.TabIndex = 15; this.ButtonMoveOverWrite.Text = "*Move"; this.ButtonMoveOverWrite.UseVisualStyleBackColor = true; this.CheckBoxMoveOver.AutoSize = true; this.CheckBoxMoveOver.Enabled = false; CheckBox checkBoxMoveOver1 = this.CheckBoxMoveOver; point1 = new Point(592, 216); Point point65 = point1; checkBoxMoveOver1.Location = point65; this.CheckBoxMoveOver.Name = "CheckBoxMoveOver"; CheckBox checkBoxMoveOver2 = this.CheckBoxMoveOver; size1 = new Size(75, 16); Size size65 = size1; checkBoxMoveOver2.Size = size65; this.CheckBoxMoveOver.TabIndex = 53; this.CheckBoxMoveOver.Text = "MoveOver"; this.CheckBoxMoveOver.UseVisualStyleBackColor = true; this.CheckBoxCopyOver.AutoSize = true; this.CheckBoxCopyOver.Enabled = false; CheckBox checkBoxCopyOver1 = this.CheckBoxCopyOver; point1 = new Point(592, 232); Point point66 = point1; checkBoxCopyOver1.Location = point66; this.CheckBoxCopyOver.Name = "CheckBoxCopyOver"; CheckBox checkBoxCopyOver2 = this.CheckBoxCopyOver; size1 = new Size(74, 16); Size size66 = size1; checkBoxCopyOver2.Size = size66; this.CheckBoxCopyOver.TabIndex = 54; this.CheckBoxCopyOver.Text = "CopyOver"; this.CheckBoxCopyOver.UseVisualStyleBackColor = true; this.CheckBoxSameName.AutoSize = true; this.CheckBoxSameName.Enabled = false; CheckBox checkBoxSameName1 = this.CheckBoxSameName; point1 = new Point(592, 248); Point point67 = point1; checkBoxSameName1.Location = point67; this.CheckBoxSameName.Name = "CheckBoxSameName"; CheckBox checkBoxSameName2 = this.CheckBoxSameName; size1 = new Size(81, 16); Size size67 = size1; checkBoxSameName2.Size = size67; this.CheckBoxSameName.TabIndex = 55; this.CheckBoxSameName.Text = "SameName"; this.CheckBoxSameName.UseVisualStyleBackColor = true; this.AutoScaleDimensions = new SizeF(6f, 12f); this.AutoScaleMode = AutoScaleMode.Font; this.CancelButton = (IButtonControl) this.ButtonClose; size1 = new Size(761, 522); this.ClientSize = size1; this.Controls.Add((Control) this.CheckBoxIG); this.Controls.Add((Control) this.CheckBoxPP); this.Controls.Add((Control) this.CheckBoxPW); this.Controls.Add((Control) this.CheckBoxPR); this.Controls.Add((Control) this.CheckBoxLAT); this.Controls.Add((Control) this.CheckBoxCT); this.Controls.Add((Control) this.CheckBoxLMT); this.Controls.Add((Control) this.CheckBoxFT); this.Controls.Add((Control) this.CheckBoxSameName); this.Controls.Add((Control) this.CheckBoxCopyOver); this.Controls.Add((Control) this.CheckBoxMoveOver); this.Controls.Add((Control) this.CheckBoxOW); this.Controls.Add((Control) this.CheckBoxLO); this.Controls.Add((Control) this.CheckBoxRN); this.Controls.Add((Control) this.CheckBoxMV); this.Controls.Add((Control) this.CheckBoxCP); this.Controls.Add((Control) this.CheckBoxC); this.Controls.Add((Control) this.CheckBoxW); this.Controls.Add((Control) this.CheckBoxR); this.Controls.Add((Control) this.CheckBoxL); this.Controls.Add((Control) this.TextBoxFileSize); this.Controls.Add((Control) this.TextBoxExceptChar); this.Controls.Add((Control) this.Label6); this.Controls.Add((Control) this.Label7); this.Controls.Add((Control) this.Label3); this.Controls.Add((Control) this.CheckBoxF5); this.Controls.Add((Control) this.CheckBoxF7); this.Controls.Add((Control) this.CheckBoxF6); this.Controls.Add((Control) this.Label5); this.Controls.Add((Control) this.Label4); this.Controls.Add((Control) this.Label2); this.Controls.Add((Control) this.CheckBoxF3); this.Controls.Add((Control) this.CheckBoxF9); this.Controls.Add((Control) this.CheckBoxF2); this.Controls.Add((Control) this.CheckBoxE6); this.Controls.Add((Control) this.CheckBoxE5); this.Controls.Add((Control) this.CheckBoxE4); this.Controls.Add((Control) this.CheckBoxE3); this.Controls.Add((Control) this.CheckBoxE2); this.Controls.Add((Control) this.CheckBoxE0); this.Controls.Add((Control) this.CheckBoxE1); this.Controls.Add((Control) this.CheckBoxR2); this.Controls.Add((Control) this.CheckBoxR1); this.Controls.Add((Control) this.CheckBoxR3); this.Controls.Add((Control) this.CheckBoxF1); this.Controls.Add((Control) this.CheckBoxF8); this.Controls.Add((Control) this.CheckBoxF4); this.Controls.Add((Control) this.Label1); this.Controls.Add((Control) this.ButtonRead); this.Controls.Add((Control) this.ButtonWriteResume); this.Controls.Add((Control) this.ButtonWriteOver); this.Controls.Add((Control) this.ButtonWrite); this.Controls.Add((Control) this.ButtonMoveOverWrite); this.Controls.Add((Control) this.ButtonMove); this.Controls.Add((Control) this.ButtonDelete); this.Controls.Add((Control) this.ButtonCreate); this.Controls.Add((Control) this.ButtonCopyOverWrite); this.Controls.Add((Control) this.ButtonSetTimes); this.Controls.Add((Control) this.ButtonCopy); this.Controls.Add((Control) this.ButtonClear); this.Controls.Add((Control) this.TextBox2); this.Controls.Add((Control) this.ButtonGetEntries); this.Controls.Add((Control) this.TextBox1); this.Controls.Add((Control) this.ButtonGetInfoRoot); this.Controls.Add((Control) this.ButtonGetInfoBasic); this.Controls.Add((Control) this.ButtonClose); this.Name = nameof (FsTestForm); this.Text = nameof (FsTestForm); this.ResumeLayout(false); this.PerformLayout(); } internal virtual Button ButtonClose { get { return this._ButtonClose; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ButtonClose_Click); if (this._ButtonClose != null) this._ButtonClose.Click -= eventHandler; this._ButtonClose = value; if (this._ButtonClose == null) return; this._ButtonClose.Click += eventHandler; } } internal virtual Button ButtonGetInfoBasic { get { return this._ButtonGetInfoBasic; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ButtonGetInfoBasic_Click); if (this._ButtonGetInfoBasic != null) this._ButtonGetInfoBasic.Click -= eventHandler; this._ButtonGetInfoBasic = value; if (this._ButtonGetInfoBasic == null) return; this._ButtonGetInfoBasic.Click += eventHandler; } } internal virtual TextBox TextBox1 { get { return this._TextBox1; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._TextBox1 = value; } } internal virtual Button ButtonGetEntries { get { return this._ButtonGetEntries; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ButtonGetEntries_Click); if (this._ButtonGetEntries != null) this._ButtonGetEntries.Click -= eventHandler; this._ButtonGetEntries = value; if (this._ButtonGetEntries == null) return; this._ButtonGetEntries.Click += eventHandler; } } internal virtual TextBox TextBox2 { get { return this._TextBox2; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._TextBox2 = value; } } internal virtual Button ButtonClear { get { return this._ButtonClear; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ButtonClear_Click); if (this._ButtonClear != null) this._ButtonClear.Click -= eventHandler; this._ButtonClear = value; if (this._ButtonClear == null) return; this._ButtonClear.Click += eventHandler; } } internal virtual Button ButtonGetInfoRoot { get { return this._ButtonGetInfoRoot; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ButtonGetInfoRoot_Click); if (this._ButtonGetInfoRoot != null) this._ButtonGetInfoRoot.Click -= eventHandler; this._ButtonGetInfoRoot = value; if (this._ButtonGetInfoRoot == null) return; this._ButtonGetInfoRoot.Click += eventHandler; } } internal virtual Button ButtonCreate { get { return this._ButtonCreate; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ButtonCreate_Click); if (this._ButtonCreate != null) this._ButtonCreate.Click -= eventHandler; this._ButtonCreate = value; if (this._ButtonCreate == null) return; this._ButtonCreate.Click += eventHandler; } } internal virtual Button ButtonCopy { get { return this._ButtonCopy; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ButtonCopy_Click); if (this._ButtonCopy != null) this._ButtonCopy.Click -= eventHandler; this._ButtonCopy = value; if (this._ButtonCopy == null) return; this._ButtonCopy.Click += eventHandler; } } internal virtual Button ButtonMove { get { return this._ButtonMove; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ButtonMove_Click); if (this._ButtonMove != null) this._ButtonMove.Click -= eventHandler; this._ButtonMove = value; if (this._ButtonMove == null) return; this._ButtonMove.Click += eventHandler; } } internal virtual Button ButtonWrite { get { return this._ButtonWrite; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ButtonWriteNew_Click); if (this._ButtonWrite != null) this._ButtonWrite.Click -= eventHandler; this._ButtonWrite = value; if (this._ButtonWrite == null) return; this._ButtonWrite.Click += eventHandler; } } internal virtual Button ButtonWriteResume { get { return this._ButtonWriteResume; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ButtonWriteResume_Click); if (this._ButtonWriteResume != null) this._ButtonWriteResume.Click -= eventHandler; this._ButtonWriteResume = value; if (this._ButtonWriteResume == null) return; this._ButtonWriteResume.Click += eventHandler; } } internal virtual Button ButtonRead { get { return this._ButtonRead; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ButtonRead_Click); if (this._ButtonRead != null) this._ButtonRead.Click -= eventHandler; this._ButtonRead = value; if (this._ButtonRead == null) return; this._ButtonRead.Click += eventHandler; } } internal virtual Label Label1 { get { return this._Label1; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._Label1 = value; } } internal virtual Button ButtonDelete { get { return this._ButtonDelete; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ButtonDelete_Click); if (this._ButtonDelete != null) this._ButtonDelete.Click -= eventHandler; this._ButtonDelete = value; if (this._ButtonDelete == null) return; this._ButtonDelete.Click += eventHandler; } } internal virtual CheckBox CheckBoxF4 { get { return this._CheckBoxF4; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxF4 = value; } } internal virtual Label Label2 { get { return this._Label2; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._Label2 = value; } } internal virtual CheckBox CheckBoxF6 { get { return this._CheckBoxF6; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxF6 = value; } } internal virtual CheckBox CheckBoxF1 { get { return this._CheckBoxF1; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxF1 = value; } } internal virtual CheckBox CheckBoxF5 { get { return this._CheckBoxF5; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxF5 = value; } } internal virtual CheckBox CheckBoxF2 { get { return this._CheckBoxF2; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxF2 = value; } } internal virtual Label Label3 { get { return this._Label3; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._Label3 = value; } } internal virtual CheckBox CheckBoxE1 { get { return this._CheckBoxE1; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxE1 = value; } } internal virtual CheckBox CheckBoxE2 { get { return this._CheckBoxE2; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxE2 = value; } } internal virtual CheckBox CheckBoxE4 { get { return this._CheckBoxE4; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxE4 = value; } } internal virtual CheckBox CheckBoxE6 { get { return this._CheckBoxE6; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxE6 = value; } } internal virtual CheckBox CheckBoxF3 { get { return this._CheckBoxF3; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxF3 = value; } } internal virtual CheckBox CheckBoxF7 { get { return this._CheckBoxF7; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxF7 = value; } } internal virtual CheckBox CheckBoxE5 { get { return this._CheckBoxE5; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxE5 = value; } } internal virtual CheckBox CheckBoxR3 { get { return this._CheckBoxR3; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxR3 = value; } } internal virtual CheckBox CheckBoxR1 { get { return this._CheckBoxR1; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxR1 = value; } } internal virtual CheckBox CheckBoxR2 { get { return this._CheckBoxR2; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxR2 = value; } } internal virtual CheckBox CheckBoxF8 { get { return this._CheckBoxF8; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxF8 = value; } } internal virtual TextBox TextBoxExceptChar { get { return this._TextBoxExceptChar; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._TextBoxExceptChar = value; } } internal virtual Label Label4 { get { return this._Label4; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._Label4 = value; } } internal virtual TextBox TextBoxFileSize { get { return this._TextBoxFileSize; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._TextBoxFileSize = value; } } internal virtual Label Label5 { get { return this._Label5; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._Label5 = value; } } internal virtual CheckBox CheckBoxL { get { return this._CheckBoxL; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxL = value; } } internal virtual CheckBox CheckBoxR { get { return this._CheckBoxR; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxR = value; } } internal virtual CheckBox CheckBoxW { get { return this._CheckBoxW; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxW = value; } } internal virtual CheckBox CheckBoxC { get { return this._CheckBoxC; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxC = value; } } internal virtual CheckBox CheckBoxCP { get { return this._CheckBoxCP; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxCP = value; } } internal virtual CheckBox CheckBoxMV { get { return this._CheckBoxMV; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxMV = value; } } internal virtual CheckBox CheckBoxRN { get { return this._CheckBoxRN; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxRN = value; } } internal virtual CheckBox CheckBoxLO { get { return this._CheckBoxLO; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxLO = value; } } internal virtual CheckBox CheckBoxLMT { get { return this._CheckBoxLMT; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxLMT = value; } } internal virtual CheckBox CheckBoxCT { get { return this._CheckBoxCT; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxCT = value; } } internal virtual CheckBox CheckBoxLAT { get { return this._CheckBoxLAT; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxLAT = value; } } internal virtual CheckBox CheckBoxPR { get { return this._CheckBoxPR; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxPR = value; } } internal virtual CheckBox CheckBoxPW { get { return this._CheckBoxPW; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxPW = value; } } internal virtual CheckBox CheckBoxPP { get { return this._CheckBoxPP; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxPP = value; } } internal virtual CheckBox CheckBoxIG { get { return this._CheckBoxIG; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxIG = value; } } internal virtual Label Label6 { get { return this._Label6; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._Label6 = value; } } internal virtual CheckBox CheckBoxF9 { get { return this._CheckBoxF9; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxF9 = value; } } internal virtual CheckBox CheckBoxE3 { get { return this._CheckBoxE3; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxE3 = value; } } internal virtual CheckBox CheckBoxE0 { get { return this._CheckBoxE0; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxE0 = value; } } internal virtual Button ButtonWriteOver { get { return this._ButtonWriteOver; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ButtonWriteOver_Click); if (this._ButtonWriteOver != null) this._ButtonWriteOver.Click -= eventHandler; this._ButtonWriteOver = value; if (this._ButtonWriteOver == null) return; this._ButtonWriteOver.Click += eventHandler; } } internal virtual CheckBox CheckBoxOW { get { return this._CheckBoxOW; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxOW = value; } } internal virtual Button ButtonSetTimes { get { return this._ButtonSetTimes; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ButtonSetTimes_Click); if (this._ButtonSetTimes != null) this._ButtonSetTimes.Click -= eventHandler; this._ButtonSetTimes = value; if (this._ButtonSetTimes == null) return; this._ButtonSetTimes.Click += eventHandler; } } internal virtual CheckBox CheckBoxFT { get { return this._CheckBoxFT; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxFT = value; } } internal virtual Label Label7 { get { return this._Label7; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._Label7 = value; } } internal virtual Button ButtonCopyOverWrite { get { return this._ButtonCopyOverWrite; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ButtonCopyOverWrite_Click); if (this._ButtonCopyOverWrite != null) this._ButtonCopyOverWrite.Click -= eventHandler; this._ButtonCopyOverWrite = value; if (this._ButtonCopyOverWrite == null) return; this._ButtonCopyOverWrite.Click += eventHandler; } } internal virtual Button ButtonMoveOverWrite { get { return this._ButtonMoveOverWrite; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ButtonMoveOverWrite_Click); if (this._ButtonMoveOverWrite != null) this._ButtonMoveOverWrite.Click -= eventHandler; this._ButtonMoveOverWrite = value; if (this._ButtonMoveOverWrite == null) return; this._ButtonMoveOverWrite.Click += eventHandler; } } internal virtual CheckBox CheckBoxMoveOver { get { return this._CheckBoxMoveOver; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxMoveOver = value; } } internal virtual CheckBox CheckBoxCopyOver { get { return this._CheckBoxCopyOver; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxCopyOver = value; } } internal virtual CheckBox CheckBoxSameName { get { return this._CheckBoxSameName; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._CheckBoxSameName = value; } } private void FsTestForm_Load(object sender, EventArgs e) { this.Icon = CarotDAV.My.Resources.Resources.CarotDAV; this.seed = DateTime.Now.Millisecond; this.seed2 = checked (this.seed + 1); } private void Log(string mes) { if (mes == null) { this.TextBox1.Text = ""; } else { TextBox textBox1 = this.TextBox1; textBox1.Text = textBox1.Text + mes + "\r\n"; } this.TextBox1.Select(this.TextBox1.Text.Length, 0); this.TextBox1.ScrollToCaret(); } private bool RiEqual(ResourceInfo ri1, ResourceInfo ri2) { return ri1.IsCollection == ri2.IsCollection && ri1.Size == ri2.Size && (!(ri1.Id != ri2.Id) && ri1.HasError == ri2.HasError) && (ri1.IsEncrypted == ri2.IsEncrypted && ri1.IsMinor == ri2.IsMinor && ri1.IsSplitted == ri2.IsSplitted) && (!this.CheckBoxR1.Checked || DateTime.Compare(ri1.CreationTime, ri2.CreationTime) == 0 && DateTime.Compare(ri1.LastAccessTime, ri2.LastAccessTime) == 0 && DateTime.Compare(ri1.LastModifiedTime, ri2.LastModifiedTime) == 0) && (!this.CheckBoxR2.Checked || ri1.CanCopy == ri2.CanCopy && ri1.CanDelete == ri2.CanDelete && (ri1.CanMove == ri2.CanMove && ri1.CanRename == ri2.CanRename) && ri1.CanSetInfo == ri2.CanSetInfo) && (!this.CheckBoxR3.Checked || Operators.CompareString(ri1.StatusDescription, ri2.StatusDescription, false) == 0 && SettingSupport.IsSameContents((object) ri1, (object) ri2, true)); } public void SetClient(FsBase fs, CacheManager cm, UCSNormalization downnormalization, UCSNormalization uploadnormalization, Uri root) { this.pFS = fs; this.pCache = cm; this.pDownloadFilenameNormalization = downnormalization; this.pUploadFilenameNormalization = uploadnormalization; this.TextBox2.Text = root.ToString(); this.CheckBoxL.Checked = (this.pFS.Ability & FsAbility.Listing) != FsAbility.None; this.CheckBoxR.Checked = (this.pFS.Ability & FsAbility.Read) != FsAbility.None; this.CheckBoxW.Checked = (this.pFS.Ability & FsAbility.Write) != FsAbility.None; this.CheckBoxC.Checked = (this.pFS.Ability & FsAbility.CreateCollection) != FsAbility.None; this.CheckBoxCP.Checked = (this.pFS.Ability & FsAbility.Copy) != FsAbility.None; this.CheckBoxMV.Checked = (this.pFS.Ability & FsAbility.Move) != FsAbility.None; this.CheckBoxRN.Checked = (this.pFS.Ability & FsAbility.Rename) != FsAbility.None; this.CheckBoxLO.Checked = (this.pFS.Ability & FsAbility.Lock) != FsAbility.None; this.CheckBoxOW.Checked = (this.pFS.Ability & FsAbility.OverWriteFile) != FsAbility.None; this.CheckBoxLMT.Checked = (this.pFS.Ability & FsAbility.LastModifiedTime) != FsAbility.None; this.CheckBoxCT.Checked = (this.pFS.Ability & FsAbility.CreationTime) != FsAbility.None; this.CheckBoxLAT.Checked = (this.pFS.Ability & FsAbility.LastAccessTime) != FsAbility.None; this.CheckBoxPR.Checked = (this.pFS.Ability & FsAbility.PartialRead) != FsAbility.None; this.CheckBoxPW.Checked = (this.pFS.Ability & FsAbility.PartialWrite) != FsAbility.None; this.CheckBoxPP.Checked = (this.pFS.Ability & FsAbility.Property) != FsAbility.None; this.CheckBoxIG.Checked = (this.pFS.Ability & FsAbility.IgnoreCase) != FsAbility.None; this.CheckBoxMoveOver.Checked = (this.pFS.Ability & FsAbility.MoveOver) != FsAbility.None; this.CheckBoxCopyOver.Checked = (this.pFS.Ability & FsAbility.CopyOver) != FsAbility.None; this.CheckBoxSameName.Checked = (this.pFS.Ability & FsAbility.IgnoreSameName) != FsAbility.None; } public void SetUri(Uri u) { this.TextBox2.Text = u.ToString(); } private void ButtonClose_Click(object sender, EventArgs e) { this.Close(); } private void ButtonClear_Click(object sender, EventArgs e) { this.TextBox1.Text = ""; } private void ButtonGetInfoRoot_Click(object sender, EventArgs e) { this.Log((string) null); try { this.GetInfoTest(UriUtil.GetRoot(new Uri(this.TextBox2.Text))); this.Log("OK"); } catch (Exception ex) { ProjectData.SetProjectError(ex); this.Log(ex.ToString()); ProjectData.ClearProjectError(); } } private void ButtonGetInfoBasic_Click(object sender, EventArgs e) { this.Log((string) null); try { this.GetInfoTest(new Uri(this.TextBox2.Text)); this.Log("OK"); } catch (Exception ex) { ProjectData.SetProjectError(ex); this.Log(ex.ToString()); ProjectData.ClearProjectError(); } } private void ButtonGetEntries_Click(object sender, EventArgs e) { this.Log((string) null); try { this.GetEntriesTest(new Uri(this.TextBox2.Text)); this.Log("OK"); } catch (Exception ex) { ProjectData.SetProjectError(ex); this.Log(ex.ToString()); ProjectData.ClearProjectError(); } } private void ButtonRead_Click(object sender, EventArgs e) { this.Log((string) null); Uri targeturi = new Uri(this.TextBox2.Text); int num = 0; try { this.Log("Listing Files"); List resourceInfoList = new List(); resourceInfoList.AddRange((IEnumerable) this.pFS.GetInfoAndEntries(targeturi)); while (resourceInfoList.Count > 0 && num < 100) { ResourceInfo resourceInfo = (ResourceInfo) null; while (resourceInfoList.Count > 0) { if (resourceInfoList[0].IsCollection) { this.Log("Listing Files"); resourceInfoList.AddRange((IEnumerable) this.pFS.GetEntries(resourceInfoList[0].Id)); } else if (resourceInfoList[0].Size < 104857600L) { resourceInfo = resourceInfoList[0]; break; } resourceInfoList.RemoveAt(0); } if (resourceInfoList.Count == 0) return; resourceInfoList.RemoveAt(0); checked { ++num; } this.OpenReadTest(resourceInfo.Id.Uri); } this.Log("OK"); } catch (Exception ex) { ProjectData.SetProjectError(ex); this.Log(ex.ToString()); ProjectData.ClearProjectError(); } } private void ButtonCreate_Click(object sender, EventArgs e) { this.Log((string) null); try { Uri @base = new Uri(this.TextBox2.Text); string[] filenames = this.CreateFilenames(); int index = 0; while (index < filenames.Length) { string name = filenames[index]; this.CreateTest(@base, name); checked { ++index; } } this.Log("OK"); } catch (Exception ex) { ProjectData.SetProjectError(ex); this.Log(ex.ToString()); ProjectData.ClearProjectError(); } } private void ButtonDelete_Click(object sender, EventArgs e) { this.Log((string) null); try { Uri @base = new Uri(this.TextBox2.Text); string[] filenames = this.CreateFilenames(); int index = 0; while (index < filenames.Length) { string name = filenames[index]; this.DeleteTest(@base, name); checked { ++index; } } this.Log("OK"); } catch (Exception ex) { ProjectData.SetProjectError(ex); this.Log(ex.ToString()); ProjectData.ClearProjectError(); } } private void ButtonWriteNew_Click(object sender, EventArgs e) { this.Log((string) null); try { Uri @base = new Uri(this.TextBox2.Text); string[] filenames = this.CreateFilenames(); string[] strArray = filenames; int index = 0; while (index < strArray.Length) { string name = strArray[index]; this.OpenWriteTest(@base, name, this.FileSize()); checked { ++index; } } this.Log("Large file"); this.OpenWriteTest(@base, filenames[0], this.LargeFileSize()); this.Log("OK"); } catch (Exception ex) { ProjectData.SetProjectError(ex); this.Log(ex.ToString()); ProjectData.ClearProjectError(); } } private void ButtonWriteOver_Click(object sender, EventArgs e) { this.Log((string) null); try { Uri @base = new Uri(this.TextBox2.Text); string[] filenames = this.CreateFilenames(); string[] strArray = filenames; int index = 0; while (index < strArray.Length) { string name = strArray[index]; this.OpenWriteOverTest(@base, name, this.FileSize()); checked { ++index; } } this.Log("Large file"); this.OpenWriteOverTest(@base, filenames[0], this.LargeFileSize()); this.Log("OK"); } catch (Exception ex) { ProjectData.SetProjectError(ex); this.Log(ex.ToString()); ProjectData.ClearProjectError(); } } private void ButtonWriteResume_Click(object sender, EventArgs e) { this.Log((string) null); try { Uri @base = new Uri(this.TextBox2.Text); string[] filenames1 = this.CreateFilenames(); string[] filenames2 = this.CreateFilenames(); int index = 0; while (index < filenames2.Length) { string name = filenames2[index]; this.OpenWriteResumeTest(@base, name, this.FileSize()); checked { ++index; } } this.OpenWriteResumeTest(@base, filenames1[0], this.LargeFileSize()); this.Log("OK"); } catch (Exception ex) { ProjectData.SetProjectError(ex); this.Log(ex.ToString()); ProjectData.ClearProjectError(); } } private void ButtonMove_Click(object sender, EventArgs e) { this.Log((string) null); try { Uri @base = new Uri(this.TextBox2.Text); string[] filenames = this.CreateFilenames(); int num1 = 0; int num2 = checked (filenames.Length - 1); int index = num1; while (index <= num2) { string name = filenames[index]; string str = filenames[checked (index + 1) % filenames.Length]; string dirname = filenames[checked (index + 2) % filenames.Length]; this.MoveTest1(@base, name, str); this.MoveTest2(@base, name, str); this.MoveTest3(@base, name, str, dirname); checked { ++index; } } this.Log("OK"); } catch (Exception ex) { ProjectData.SetProjectError(ex); this.Log(ex.ToString()); ProjectData.ClearProjectError(); } } private void ButtonCopy_Click(object sender, EventArgs e) { this.Log((string) null); try { Uri @base = new Uri(this.TextBox2.Text); string[] filenames = this.CreateFilenames(); int num1 = 0; int num2 = checked (filenames.Length - 1); int index = num1; while (index <= num2) { string name = filenames[index]; string str = filenames[checked (index + 1) % filenames.Length]; string dirname = filenames[checked (index + 2) % filenames.Length]; this.CopyTest1(@base, name, str); this.CopyTest2(@base, name, str); this.CopyTest3(@base, name, str, dirname); checked { ++index; } } this.Log("OK"); } catch (Exception ex) { ProjectData.SetProjectError(ex); this.Log(ex.ToString()); ProjectData.ClearProjectError(); } } private void ButtonMoveOverWrite_Click(object sender, EventArgs e) { this.Log((string) null); try { Uri @base = new Uri(this.TextBox2.Text); string[] filenames = this.CreateFilenames(); int num1 = 0; int num2 = checked (filenames.Length - 1); int index = num1; while (index <= num2) { string name = filenames[index]; string str = filenames[checked (index + 1) % filenames.Length]; string dirname = filenames[checked (index + 2) % filenames.Length]; this.MoveOverwriteTest1(@base, name, str); this.MoveOVerwriteTest2(@base, name, str); this.MoveOverwriteTest3(@base, name, str, dirname); checked { ++index; } } this.Log("OK"); } catch (Exception ex) { ProjectData.SetProjectError(ex); this.Log(ex.ToString()); ProjectData.ClearProjectError(); } } private void ButtonCopyOverWrite_Click(object sender, EventArgs e) { this.Log((string) null); try { Uri @base = new Uri(this.TextBox2.Text); string[] filenames = this.CreateFilenames(); int num1 = 0; int num2 = checked (filenames.Length - 1); int index = num1; while (index <= num2) { string name = filenames[index]; string str = filenames[checked (index + 1) % filenames.Length]; string dirname = filenames[checked (index + 2) % filenames.Length]; this.CopyOverwriteTest1(@base, name, str); this.CopyOverwriteTest2(@base, name, str); this.CopyOverwriteTest3(@base, name, str, dirname); checked { ++index; } } this.Log("OK"); } catch (Exception ex) { ProjectData.SetProjectError(ex); this.Log(ex.ToString()); ProjectData.ClearProjectError(); } } private void ButtonSetTimes_Click(object sender, EventArgs e) { this.Log((string) null); try { DateTime minValue = DateTime.MinValue; Uri @base = new Uri(this.TextBox2.Text); DateTime[] times = this.CreateTimes(); int index1 = 0; string[] filenames = this.CreateFilenames(); int index2 = 0; while (index2 < filenames.Length) { string name = filenames[index2]; DateTime dateTime1 = times[index1]; int index3 = checked (index1 + 13) % times.Length; if ((this.pFS.Ability & FsAbility.LastModifiedTime) != FsAbility.None) this.SetTimesTest1(@base, name, dateTime1, minValue, minValue); if ((this.pFS.Ability & FsAbility.LastAccessTime) != FsAbility.None) this.SetTimesTest1(@base, name, minValue, dateTime1, minValue); if ((this.pFS.Ability & FsAbility.CreationTime) != FsAbility.None) this.SetTimesTest1(@base, name, minValue, minValue, dateTime1); DateTime dateTime2 = times[index3]; int index4 = checked (index3 + 13) % times.Length; DateTime dateTime3 = times[index4]; int index5 = checked (index4 + 13) % times.Length; if ((this.pFS.Ability & FsAbility.LastModifiedTime) != FsAbility.None && (this.pFS.Ability & FsAbility.LastAccessTime) != FsAbility.None) this.SetTimesTest1(@base, name, dateTime2, dateTime3, minValue); if ((this.pFS.Ability & FsAbility.LastAccessTime) != FsAbility.None && (this.pFS.Ability & FsAbility.CreationTime) != FsAbility.None) this.SetTimesTest1(@base, name, minValue, dateTime2, dateTime3); if ((this.pFS.Ability & FsAbility.CreationTime) != FsAbility.None && (this.pFS.Ability & FsAbility.LastModifiedTime) != FsAbility.None) this.SetTimesTest1(@base, name, dateTime3, minValue, dateTime2); DateTime lmt = times[index5]; int index6 = checked (index5 + 13) % times.Length; DateTime lat = times[index6]; int index7 = checked (index6 + 13) % times.Length; DateTime ct = times[index7]; index1 = checked (index7 + 13) % times.Length; if ((this.pFS.Ability & FsAbility.Times) == FsAbility.Times) this.SetTimesTest1(@base, name, lmt, lat, ct); checked { ++index2; } } this.Log("OK"); } catch (Exception ex) { ProjectData.SetProjectError(ex); this.Log(ex.ToString()); ProjectData.ClearProjectError(); } } private void GetInfoTest(Uri target) { this.Log(nameof (GetInfoTest)); Uri targeturi1 = UriUtil.AddLastSlash(target); Uri targeturi2 = UriUtil.RemoveLastSlash(target); this.Log("GetInfo(ByVal targeturi As Uri) As ResourceInfo"); ResourceInfo info1 = this.pFS.GetInfo(targeturi1); ResourceInfo info2 = this.pFS.GetInfo(targeturi2); if (!this.RiEqual(info1, info2)) throw new Exception("GetInfoAndEntries1 Fail 1 " + target.ToString()); if (info1.IsCollection) { if (!UriUtil.EndWithSlash(info1.Id.Uri)) throw new Exception("GetInfoAndEntries1 Fail 2 " + target.ToString()); } else if (UriUtil.EndWithSlash(info1.Id.Uri)) throw new Exception("GetInfoAndEntries1 Fail 3 " + target.ToString()); this.Log("GetInfoAndEntries(ByVal targeturi As Uri) As ResourceInfo()"); ResourceInfo[] infoAndEntries1 = this.pFS.GetInfoAndEntries(targeturi1); ResourceInfo[] infoAndEntries2 = this.pFS.GetInfoAndEntries(targeturi2); if (infoAndEntries1.Length == 0) throw new Exception("GetInfoAndEntries1 Fail 4 " + target.ToString()); if (!infoAndEntries1[0].IsCollection && infoAndEntries1.Length > 1) throw new Exception("GetInfoAndEntries1 Fail 5 " + target.ToString()); if (!this.RiEqual(info1, infoAndEntries1[0])) throw new Exception("GetInfoAndEntries1 Fail 6 " + target.ToString()); this.SortRis(infoAndEntries1, true); this.SortRis(infoAndEntries2, true); if (infoAndEntries1.Length != infoAndEntries2.Length) throw new Exception("GetInfoAndEntries1 Fail 9 " + target.ToString()); int num1 = 0; int num2 = checked (infoAndEntries1.Length - 1); int index1 = num1; while (index1 <= num2) { if (!this.RiEqual(infoAndEntries1[index1], infoAndEntries2[index1])) throw new Exception("GetInfoAndEntries1 Fail 7 " + target.ToString()); checked { ++index1; } } int num3 = 1; int num4 = checked (infoAndEntries1.Length - 1); int index2 = num3; while (index2 <= num4) { if (!UriUtil.IsChild(info1.Id.Uri, infoAndEntries1[index2].Id.Uri)) throw new Exception("GetInfoAndEntries1 Fail 8 " + target.ToString()); checked { ++index2; } } } private void GetEntriesTest(Uri target) { this.Log(nameof (GetEntriesTest)); ResourceInfo info = this.pFS.GetInfo(target); ResourceId id = info.Id; this.Log("GetInfo(ByVal id As ResourceId) As ResourceInfo"); if (!this.RiEqual(this.pFS.GetInfo(id), info)) throw new Exception("GetInfoAndEntries Test Fail 1 " + id.ToString()); this.Log("GetInfo(ByVal targeturi As Uri) As ResourceInfo"); if (!this.RiEqual(this.pFS.GetInfo(id.Uri), info)) throw new Exception("GetInfoAndEntries Test Fail 2 " + id.ToString()); this.Log("GetInfoAndEntries(ByVal id As ResourceId) As ResourceInfo()"); ResourceInfo[] infoAndEntries1 = this.pFS.GetInfoAndEntries(id); if (!infoAndEntries1[0].IsCollection && infoAndEntries1.Length > 1) throw new Exception("GetInfoAndEntries Fail 3 " + id.ToString()); if (!this.RiEqual(infoAndEntries1[0], info)) throw new Exception("GetInfoAndEntries Fail 4 " + id.ToString()); this.SortRis(infoAndEntries1, true); int num1 = 1; int num2 = checked (infoAndEntries1.Length - 1); int index1 = num1; while (index1 <= num2) { if (!UriUtil.IsChild(id.Uri, infoAndEntries1[index1].Id.Uri)) throw new Exception("GetInfoAndEntries Fail 5 " + id.ToString()); checked { ++index1; } } this.Log("GetInfoAndEntries(ByVal targeturi As Uri) As ResourceInfo()"); ResourceInfo[] infoAndEntries2 = this.pFS.GetInfoAndEntries(id); this.SortRis(infoAndEntries2, true); if (infoAndEntries1.Length != infoAndEntries2.Length) throw new Exception("GetInfoAndEntries Fail 6-1 " + id.ToString()); int num3 = 0; int num4 = checked (infoAndEntries1.Length - 1); int index2 = num3; while (index2 <= num4) { if (!this.RiEqual(infoAndEntries1[index2], infoAndEntries2[index2])) throw new Exception("GetInfoAndEntries Fail 6 " + id.ToString()); checked { ++index2; } } this.Log("GetEntries(ByVal id As ResourceId) As ResourceInfo()"); ResourceInfo[] entries = this.pFS.GetEntries(id); if (infoAndEntries1.Length != checked (entries.Length + 1)) throw new Exception("GetInfoAndEntries Fail 7 " + id.ToString()); this.SortRis(entries, false); int num5 = 1; int num6 = checked (infoAndEntries1.Length - 1); int index3 = num5; while (index3 <= num6) { if (!this.RiEqual(infoAndEntries1[index3], entries[checked (index3 - 1)])) throw new Exception("GetInfoAndEntries Fail 8 " + id.ToString()); checked { ++index3; } } this.Log("GetInfo(ByVal parentid As ResourceId, ByVal name As String) As ResourceInfo"); int num7 = 1; int num8 = checked (infoAndEntries1.Length - 1); int index4 = num7; while (index4 <= num8) { if (!this.RiEqual(this.pFS.GetInfo(id, UriUtil.GetLastName(infoAndEntries1[index4].Id.Uri)), infoAndEntries1[index4])) throw new Exception("GetInfoAndEntries Fail 9 " + id.ToString()); checked { ++index4; } } this.Log("GetParentInfo(ByVal id As ResourceId) As ResourceInfo"); int num9 = 1; int num10 = checked (infoAndEntries1.Length - 1); int index5 = num9; while (index5 <= num10) { if (!this.RiEqual(this.pFS.GetParentInfo(infoAndEntries1[index5].Id), info)) throw new Exception("GetInfoAndEntries Fail 10 " + id.ToString()); checked { ++index5; } } this.Log("GetParentInfoAndEntries(ByVal childid As ResourceId) As ResourceInfo()"); int num11 = 1; int num12 = checked (infoAndEntries1.Length - 1); int index6 = num11; while (index6 <= num12) { ResourceInfo[] parentInfoAndEntries = this.pFS.GetParentInfoAndEntries(infoAndEntries1[index6].Id); this.SortRis(parentInfoAndEntries, true); int num13 = 0; int num14 = checked (parentInfoAndEntries.Length - 1); int index7 = num13; while (index7 <= num14) { if (!this.RiEqual(infoAndEntries1[index7], parentInfoAndEntries[index7])) throw new Exception("GetInfoAndEntries Fail 11 " + id.ToString()); checked { ++index7; } } checked { ++index6; } } } private void OpenReadTest(Uri target) { this.Log("OpenReadTest " + target.ToString()); int offset = 0; ResourceInfo info = this.pFS.GetInfo(target); if (info.IsCollection) return; ResourceId id = info.Id; if (info.Size < 0L || info.Size > 1073741824L) return; byte[] buffer1 = new byte[checked ((int) (info.Size - 1L) + 1)]; this.Log("OpenRead(ByVal u as Uri) As Stream"); using (Stream stream = this.pFS.OpenRead(info.Id.Uri)) { while (true) { int num = stream.Read(buffer1, offset, checked (buffer1.Length - offset)); if (num != 0) checked { offset += num; } else break; } } if (offset != buffer1.Length) throw new Exception("Read Fail 1 " + id.ToString()); byte[] buffer2 = new byte[checked (buffer1.Length + 100 + 1)]; this.Log("OpenRead(ByVal id As ResourceId, 0, -1) As Stream"); long start1 = 0; long length1 = -1; long num1 = start1; long num2 = length1; using (Stream stream = this.pFS.OpenRead(id, ref start1, ref length1)) { this.Log("start: " + Conversions.ToString(num1) + " -> " + start1.ToString() + " length: " + Conversions.ToString(num2) + " -> " + length1.ToString()); if (start1 > num1) throw new Exception("Read Fail 2. Start Strange." + id.ToString()); if (length1 >= 0L && num2 >= 0L && checked (num1 + num2) < checked (start1 + length1)) throw new Exception("Read Fail 4. length strange"); offset = checked ((int) start1); while (true) { int num3 = stream.Read(buffer2, offset, checked (buffer2.Length - offset)); if (num3 != 0) checked { offset += num3; } else break; } } if (length1 < 0L) length1 = checked ((long) offset - start1); if ((long) offset != checked (start1 + length1)) throw new Exception("Read Fail 3. Length Strange." + id.ToString()); int num4 = checked ((int) start1); int num5 = checked ((int) (start1 + length1) - 1); int index1 = num4; while (index1 <= num5) { if ((int) buffer2[index1] != (int) buffer1[index1]) throw new Exception("Read Fail 5. Read Data Strange. " + id.ToString()); checked { ++index1; } } this.Log("OpenRead(ByVal id As ResourceId, start, -1) As Stream"); long start2 = (long) checked ((int) unchecked (info.Size / 4L)); long length2 = -1; long num6 = start2; long num7 = length2; using (Stream stream = this.pFS.OpenRead(id, ref start2, ref length2)) { this.Log("start: " + Conversions.ToString(num6) + " -> " + start2.ToString() + " length: " + Conversions.ToString(num7) + " -> " + length2.ToString()); if (start2 > num6) throw new Exception("Read Fail 2. Start Strange." + id.ToString()); if (length2 >= 0L && num7 >= 0L && checked (num6 + num7) < checked (start2 + length2)) throw new Exception("Read Fail 4. length strange"); offset = checked ((int) start2); while (true) { int num3 = stream.Read(buffer2, offset, checked (buffer2.Length - offset)); if (num3 != 0) checked { offset += num3; } else break; } } if (length2 < 0L) length2 = checked ((long) offset - start2); if ((long) offset != checked (start2 + length2)) throw new Exception("Read Fail 3. Length Strange." + id.ToString()); int num8 = checked ((int) start2); int num9 = checked ((int) (start2 + length2) - 1); int index2 = num8; while (index2 <= num9) { if ((int) buffer2[index2] != (int) buffer1[index2]) throw new Exception("Read Fail 5. Read Data Strange. " + id.ToString()); checked { ++index2; } } long start3 = 0; long length3 = (long) checked ((int) unchecked (info.Size / 2L)); if (length3 != 0L) { long num3 = start3; long num10 = length3; this.Log("OpenRead(ByVal id As ResourceId, 0, length) As Stream " + id.ToString()); using (Stream stream = this.pFS.OpenRead(id, ref start3, ref length3)) { this.Log("start: " + Conversions.ToString(num3) + " -> " + start3.ToString() + " length: " + Conversions.ToString(num10) + " -> " + length3.ToString()); if (start3 > num3) throw new Exception("Read Fail 2. Start Strange." + id.ToString()); if (length3 >= 0L && num10 >= 0L && checked (num3 + num10) > checked (start3 + length3)) throw new Exception("Read Fail 4. length strange"); offset = checked ((int) start3); while (true) { int num11 = stream.Read(buffer2, offset, checked (buffer2.Length - offset)); if (num11 != 0) checked { offset += num11; } else break; } } if (length3 < 0L) length3 = checked ((long) offset - start3); if ((long) offset != checked (start3 + length3)) throw new Exception("Read Fail 3. Length Strange." + id.ToString()); int num12 = checked ((int) start3); int num13 = checked ((int) (start3 + length3) - 1); int index3 = num12; while (index3 <= num13) { if ((int) buffer2[index3] != (int) buffer1[index3]) throw new Exception("Read Fail 5. Read Data Strange. " + id.ToString()); checked { ++index3; } } } long start4 = (long) checked ((int) unchecked (info.Size / 4L)); long length4 = (long) checked ((int) unchecked (info.Size / 2L)); if (length4 != 0L) { this.Log("OpenRead(ByVal id As ResourceId, start, length) As Stream"); long num3 = start4; long num10 = length4; using (Stream stream = this.pFS.OpenRead(id, ref start4, ref length4)) { this.Log("start: " + Conversions.ToString(num3) + " -> " + start4.ToString() + " length: " + Conversions.ToString(num10) + " -> " + length4.ToString()); if (start4 > num3) throw new Exception("Read Fail 2. Start Strange." + id.ToString()); if (length4 >= 0L && num10 >= 0L && checked (num3 + num10) > checked (start4 + length4)) throw new Exception("Read Fail 4. length strange"); offset = checked ((int) start4); while (true) { int num11 = stream.Read(buffer2, offset, checked (buffer2.Length - offset)); if (num11 != 0) checked { offset += num11; } else break; } } if (length4 < 0L) length4 = checked ((long) offset - start4); if ((long) offset != checked (start4 + length4)) throw new Exception("Read Fail 3. Length Strange." + id.ToString()); int num12 = checked ((int) start4); int num13 = checked ((int) (start4 + length4) - 1); int index3 = num12; while (index3 <= num13) { if ((int) buffer2[index3] != (int) buffer1[index3]) throw new Exception("Read Fail 5. Read Data Strange. " + id.ToString()); checked { ++index3; } } } long size1 = (long) checked ((int) info.Size); if (size1 != 0L) { long length5 = 10; this.Log("OpenRead(ByVal id As ResourceId, start, length) As Stream"); try { long num3 = size1; long num10 = length5; using (this.pFS.OpenRead(id, ref size1, ref length5)) { this.Log("start: " + Conversions.ToString(num3) + " -> " + size1.ToString() + " length: " + Conversions.ToString(num10) + " -> " + length5.ToString()); if (size1 > num3) throw new Exception("Read Fail 2. Start Strange." + id.ToString()); if (length5 >= 0L) { if (num10 >= 0L) { if (checked (num3 + num10) > checked (size1 + length5)) throw new Exception("Read Fail 4. length strange"); } } } if (size1 >= info.Size) { if (size1 != 0L) throw new Exception("Invalid range request succeeded."); } } catch (InvalidRangeException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } } long size2 = (long) checked ((int) info.Size); if (size2 != 0L) { long length5 = -1; this.Log("OpenRead(ByVal id As ResourceId, start, -1) As Stream"); try { long num3 = size2; long num10 = length5; using (this.pFS.OpenRead(id, ref size2, ref length5)) { this.Log("start: " + Conversions.ToString(num3) + " -> " + size2.ToString() + " length: " + Conversions.ToString(num10) + " -> " + length5.ToString()); if (size2 > num3) throw new Exception("Read Fail 2. Start Strange." + id.ToString()); if (length5 >= 0L) { if (num10 >= 0L) { if (checked (num3 + num10) > checked (size2 + length5)) throw new Exception("Read Fail 4. length strange"); } } } if (size2 >= info.Size) { if (size2 != 0L) throw new Exception("Invalid range request succeeded."); } } catch (InvalidRangeException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } } if (info.Size <= 100L) return; long start5 = (long) checked ((int) (info.Size - 10L)); long length6 = 100; this.Log("OpenRead(ByVal id As ResourceId, start, length) As Stream"); try { long num3 = start5; long num10 = length6; using (Stream stream = this.pFS.OpenRead(id, ref start5, ref length6)) { this.Log("start: " + Conversions.ToString(num3) + " -> " + start5.ToString() + " length: " + Conversions.ToString(num10) + " -> " + length6.ToString()); if (start5 > num3) throw new Exception("Read Fail 2. Start Strange." + id.ToString()); if (length6 >= 0L && num10 >= 0L && checked (num3 + num10) > checked (start5 + length6)) throw new Exception("Read Fail 4. length strange"); offset = checked ((int) start5); while (true) { int num11 = stream.Read(buffer2, offset, checked (buffer2.Length - offset)); if (num11 != 0) checked { offset += num11; } else break; } } if (length6 < 0L) length6 = checked ((long) offset - start5); if ((long) offset != checked (start5 + length6)) throw new Exception("Read Fail 3. Length Strange." + id.ToString()); int num12 = checked ((int) start5); int num13 = checked ((int) (start5 + length6) - 1); int index3 = num12; while (index3 <= num13) { if ((int) buffer2[index3] != (int) buffer1[index3]) throw new Exception("Read Fail 5. Read Data Strange. " + id.ToString()); checked { ++index3; } } } catch (InvalidRangeException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } } private void OpenWriteTest(Uri @base, string name, long size) { this.Log("Write Test filename: " + name); ResourceId id1 = this.pFS.GetInfo(@base).Id; ResourceId id2; try { this.Log("Check file existance"); id2 = this.pFS.GetInfo(id1, name).Id; this.Log("Delete file"); this.pFS.Delete(id2); } catch (RemoteResourceNotFoundException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } byte[] buffer1 = new byte[1048577]; Random random1 = new Random(this.seed); this.Log("Write with length"); using (Stream st = this.pFS.OpenWrite(id1, name, size)) { long num = 0; while (num < size) { random1.NextBytes(buffer1); if (checked (num + (long) buffer1.Length) > size) { st.Write(buffer1, 0, checked ((int) (size - num))); num = size; } else { st.Write(buffer1, 0, buffer1.Length); checked { num += (long) buffer1.Length; } } if (!st.CanSeek || st.Position == num) ; } st.Close(); ReturnedInfo returnedInfo = this.pFS.CloseWrite(st); ResourceInfo resourceInfo = returnedInfo as ResourceInfo; id2 = resourceInfo == null ? returnedInfo as ResourceId : resourceInfo.Id; } ResourceInfo info1 = this.pFS.GetInfo(id2); if (info1.Id != id2) throw new Exception("OpenWrite Fail 1. Id Strange."); if (id2.IsCollection) throw new Exception("OpenWrite Fail 2. Resource Property Strange."); if (info1.IsCollection) throw new Exception("OpenWrite Fail 3. Resource Property Strange."); if (info1.Size != size) throw new Exception("OpenWrite Fail 6. Size Strange."); if (Operators.CompareString(UriUtil.GetLastName(id2.Uri), name, false) != 0) throw new Exception("OpenWrite Fail 4. Filename Strange."); if (Operators.CompareString(UriUtil.GetLastName(info1.Id.Uri), name, false) != 0) throw new Exception("OpenWrite Fail 5. Filename Strange."); this.SubReadConfirm(id2, this.seed, size); this.Log("Delete file"); this.pFS.Delete(id2); this.Log("Write with zero-length"); using (Stream st = this.pFS.OpenWrite(id1, name, 0L)) { st.Close(); ReturnedInfo returnedInfo = this.pFS.CloseWrite(st); ResourceInfo resourceInfo = returnedInfo as ResourceInfo; id2 = resourceInfo == null ? returnedInfo as ResourceId : resourceInfo.Id; } ResourceInfo info2 = this.pFS.GetInfo(id2); if (info2.Id != id2) throw new Exception("OpenWrite Fail 1. Id Strange."); if (id2.IsCollection) throw new Exception("OpenWrite Fail 2. Resource Property Strange."); if (info2.IsCollection) throw new Exception("OpenWrite Fail 3. Resource Property Strange."); if (info2.Size != 0L) throw new Exception("OpenWrite Fail 6. Size Strange."); if (Operators.CompareString(UriUtil.GetLastName(id2.Uri), name, false) != 0) throw new Exception("OpenWrite Fail 4. Filename Strange."); if (Operators.CompareString(UriUtil.GetLastName(info2.Id.Uri), name, false) != 0) throw new Exception("OpenWrite Fail 5. Filename Strange."); this.Log("Delete file"); this.pFS.Delete(id2); byte[] buffer2 = new byte[1024]; Random random2 = new Random(this.seed); this.Log("Write and terminate halfway"); try { long length = checked (size * 2L); using (Stream st = this.pFS.OpenWrite(id1, name, length)) { long num = 0; while (num < size) { random2.NextBytes(buffer2); if (checked (num + (long) buffer2.Length) > size) { st.Write(buffer2, 0, checked ((int) (size - num))); num = size; } else { st.Write(buffer2, 0, buffer2.Length); checked { num += (long) buffer2.Length; } } if (!st.CanSeek || st.Position == num) ; } st.Close(); ReturnedInfo returnedInfo = this.pFS.CloseWrite(st); ResourceInfo resourceInfo = returnedInfo as ResourceInfo; ResourceId resourceId = resourceInfo == null ? returnedInfo as ResourceId : resourceInfo.Id; } throw new Exception("should raise error."); } catch (InvalidRangeException ex) { ProjectData.SetProjectError((Exception) ex); this.Log("InvalidRangeException OK"); ProjectData.ClearProjectError(); } catch (WebException ex) { ProjectData.SetProjectError((Exception) ex); this.Log("WebException OK"); ProjectData.ClearProjectError(); } try { this.pFS.Delete(this.pFS.GetInfo(id1, name).Id); } catch (RemoteResourceNotFoundException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } } private void OpenWriteOverTest(Uri @base, string name, long size) { this.Log("WriteOver Test filename: " + name); ResourceId id1 = this.pFS.GetInfo(@base).Id; ResourceId id2; try { this.Log("Check file existance"); id2 = this.pFS.GetInfo(id1, name).Id; } catch (RemoteResourceNotFoundException ex) { ProjectData.SetProjectError((Exception) ex); this.Log("Create file"); ReturnedInfo file = (ReturnedInfo) this.SubCreateFile(id1, name, 0, 0L); ResourceInfo resourceInfo = file as ResourceInfo; id2 = resourceInfo == null ? file as ResourceId : resourceInfo.Id; ProjectData.ClearProjectError(); } byte[] buffer1 = new byte[1024]; Random random1 = new Random(this.seed); this.Log("WriteOver with long length"); using (Stream st = this.pFS.OpenWriteOver(id2, size)) { long num = 0; while (num < size) { random1.NextBytes(buffer1); if (checked (num + (long) buffer1.Length) > size) { st.Write(buffer1, 0, checked ((int) (size - num))); num = size; } else { st.Write(buffer1, 0, buffer1.Length); checked { num += (long) buffer1.Length; } } if (!st.CanSeek || st.Position == num) ; } ReturnedInfo returnedInfo = this.pFS.CloseWrite(st); ResourceInfo resourceInfo = returnedInfo as ResourceInfo; id2 = resourceInfo == null ? returnedInfo as ResourceId : resourceInfo.Id; } ResourceInfo info1 = this.pFS.GetInfo(id2); if (info1.Id != id2) throw new Exception("OpenWrite Fail 1. Id Strange."); if (id2.IsCollection) throw new Exception("OpenWrite Fail 2. Resource Property Strange."); if (info1.IsCollection) throw new Exception("OpenWrite Fail 3. Resource Property Strange."); if (info1.Size != size) throw new Exception("OpenWrite Fail 6. Size Strange."); if (Operators.CompareString(UriUtil.GetLastName(id2.Uri), name, false) != 0) throw new Exception("OpenWrite Fail 4. Filename Strange."); if (Operators.CompareString(UriUtil.GetLastName(info1.Id.Uri), name, false) != 0) throw new Exception("OpenWrite Fail 5. Filename Strange."); this.SubReadConfirm(id2, this.seed, size); byte[] buffer2 = new byte[1024]; Random random2 = new Random(this.seed); this.Log("WriteOver with short length"); long num1 = size / 2L; using (Stream st = this.pFS.OpenWriteOver(id2, num1)) { long num2 = 0; while (num2 < num1) { random2.NextBytes(buffer2); if (checked (num2 + (long) buffer2.Length) > num1) { st.Write(buffer2, 0, checked ((int) (num1 - num2))); num2 = num1; } else { st.Write(buffer2, 0, buffer2.Length); checked { num2 += (long) buffer2.Length; } } if (!st.CanSeek || st.Position == num2) ; } ReturnedInfo returnedInfo = this.pFS.CloseWrite(st); ResourceInfo resourceInfo = returnedInfo as ResourceInfo; id2 = resourceInfo == null ? returnedInfo as ResourceId : resourceInfo.Id; } ResourceInfo info2 = this.pFS.GetInfo(id2); if (info2.Id != id2) throw new Exception("OpenWrite Fail 1. Id Strange."); if (id2.IsCollection) throw new Exception("OpenWrite Fail 2. Resource Property Strange."); if (info2.IsCollection) throw new Exception("OpenWrite Fail 3. Resource Property Strange."); if (info2.Size != num1) throw new Exception("OpenWrite Fail 6. Size Strange."); if (Operators.CompareString(UriUtil.GetLastName(id2.Uri), name, false) != 0) throw new Exception("OpenWrite Fail 4. Filename Strange."); if (Operators.CompareString(UriUtil.GetLastName(info2.Id.Uri), name, false) != 0) throw new Exception("OpenWrite Fail 5. Filename Strange."); this.SubReadConfirm(id2, this.seed, num1); byte[] buffer3 = new byte[1024]; Random random3 = new Random(this.seed); this.Log("Terminate halfway"); try { long length = checked (size * 2L); using (Stream st = this.pFS.OpenWriteOver(id2, length)) { long num2 = 0; while (num2 < size) { random3.NextBytes(buffer3); if (checked (num2 + (long) buffer3.Length) > size) { st.Write(buffer3, 0, checked ((int) (size - num2))); num2 = size; } else { st.Write(buffer3, 0, buffer3.Length); checked { num2 += (long) buffer3.Length; } } if (!st.CanSeek || st.Position == num2) ; } st.Close(); ReturnedInfo returnedInfo = this.pFS.CloseWrite(st); ResourceInfo resourceInfo = returnedInfo as ResourceInfo; ResourceId resourceId = resourceInfo == null ? returnedInfo as ResourceId : resourceInfo.Id; } throw new Exception("should raise error."); } catch (InvalidRangeException ex) { ProjectData.SetProjectError((Exception) ex); this.Log("InvalidRangeException OK"); ProjectData.ClearProjectError(); } catch (WebException ex) { ProjectData.SetProjectError((Exception) ex); this.Log("WebException OK"); ProjectData.ClearProjectError(); } try { this.pFS.Delete(this.pFS.GetInfo(id1, name).Id); } catch (RemoteResourceNotFoundException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } } private void OpenWriteResumeTest(Uri @base, string name, long size) { this.Log("OpenWriteResumeTest " + name); ResourceId id1 = this.pFS.GetInfo(@base).Id; byte[] buffer1 = new byte[1024]; this.Log("Public Function OpenWriteResume(ByVal id As ResourceId, ByRef start As Int64, ByRef length As Int64) As Stream"); ResourceId id2 = this.SubCreateFile(id1, name, this.seed, size); long start1 = size; Random random1 = new Random(this.seed); using (Stream st = this.pFS.OpenWriteResume(id2, ref start1, ref size)) { long num = 0; byte[] buffer2 = new byte[1024]; while (num < start1) { if (checked (start1 - num) > (long) buffer2.Length) { random1.NextBytes(buffer2); checked { num += (long) buffer2.Length; } } else { byte[] buffer3 = new byte[checked ((int) (start1 - num - 1L) + 1)]; random1.NextBytes(buffer3); checked { num += (long) buffer3.Length; } } } while (num < checked (size * 2L)) { if (checked (num + (long) buffer1.Length) > checked (size * 2L)) { byte[] buffer3 = new byte[checked ((int) (size * 2L - num) - 1 + 1)]; random1.NextBytes(buffer3); st.Write(buffer3, 0, buffer3.Length); checked { num += (long) buffer3.Length; } } else { random1.NextBytes(buffer1); st.Write(buffer1, 0, buffer1.Length); checked { num += (long) buffer1.Length; } } } ReturnedInfo returnedInfo = this.pFS.CloseWrite(st); ResourceInfo resourceInfo = returnedInfo as ResourceInfo; id2 = resourceInfo == null ? returnedInfo as ResourceId : resourceInfo.Id; } ResourceInfo info1 = this.pFS.GetInfo(id2); if (info1.Id != id2) throw new Exception("OpenWriteResume Fail 3. Id Strange."); if (id2.IsCollection) throw new Exception("OpenWriteResume Fail 4. Resource Property Strange."); if (info1.IsCollection) throw new Exception("OpenWriteResume Fail 5. Resource Property Strange."); if (info1.Size != checked (size * 2L)) throw new Exception("OpenWriteResume Fail 6. Size Strange."); if (Operators.CompareString(UriUtil.GetLastName(id2.Uri), name, false) != 0) throw new Exception("OpenWriteResume Fail 7. Filename Strange."); if (Operators.CompareString(UriUtil.GetLastName(info1.Id.Uri), name, false) != 0) throw new Exception("OpenWriteResume Fail 8. Filename Strange."); this.SubReadConfirm(id2, this.seed, checked (size * 2L)); this.pFS.Delete(id2); this.Log("Public Function OpenWriteResume(ByVal id As ResourceId, ByRef start As Int64, ByRef length As Int64) As Stream"); ResourceId id3 = this.SubCreateFile(id1, name, this.seed, size); long start2 = size / 2L; Random random2 = new Random(this.seed); FsBase pFs = this.pFS; ResourceId id4 = id3; long length = checked (size * 2L - start2); using (Stream st = pFs.OpenWriteResume(id4, ref start2, ref length)) { long num = 0; byte[] buffer2 = new byte[1024]; while (num < start2) { if (checked (start2 - num) > (long) buffer2.Length) { random2.NextBytes(buffer2); checked { num += (long) buffer2.Length; } } else { byte[] buffer3 = new byte[checked ((int) (start2 - num - 1L) + 1)]; random2.NextBytes(buffer3); checked { num += (long) buffer3.Length; } } } while (num < checked (size * 2L)) { if (checked (num + (long) buffer1.Length) > checked (size * 2L)) { byte[] buffer3 = new byte[checked ((int) (size * 2L - num) - 1 + 1)]; random2.NextBytes(buffer3); st.Write(buffer3, 0, buffer3.Length); checked { num += (long) buffer3.Length; } } else { random2.NextBytes(buffer1); st.Write(buffer1, 0, buffer1.Length); checked { num += (long) buffer1.Length; } } } ReturnedInfo returnedInfo = this.pFS.CloseWrite(st); ResourceInfo resourceInfo = returnedInfo as ResourceInfo; id3 = resourceInfo == null ? returnedInfo as ResourceId : resourceInfo.Id; } ResourceInfo info2 = this.pFS.GetInfo(id3); if (info2.Id != id3) throw new Exception("OpenWriteResume Fail 3. Id Strange."); if (id3.IsCollection) throw new Exception("OpenWriteResume Fail 4. Resource Property Strange."); if (info2.IsCollection) throw new Exception("OpenWriteResume Fail 5. Resource Property Strange."); if (info2.Size != checked (size * 2L)) throw new Exception("OpenWriteResume Fail 6. Size Strange."); if (Operators.CompareString(UriUtil.GetLastName(id3.Uri), name, false) != 0) throw new Exception("OpenWriteResume Fail 7. Filename Strange."); if (Operators.CompareString(UriUtil.GetLastName(info2.Id.Uri), name, false) != 0) throw new Exception("OpenWriteResume Fail 8. Filename Strange."); this.SubReadConfirm(id3, this.seed, checked (size * 2L)); this.pFS.Delete(id3); this.Log("Public Function OpenWriteResume(ByVal id As ResourceId, ByRef start As Int64, ByRef length As Int64) As Stream"); try { id3 = this.SubCreateFile(id1, name, this.seed, size); long start3 = size; Random random3 = new Random(this.seed); using (Stream st = this.pFS.OpenWriteResume(id3, ref start3, ref size)) { long num = 0; byte[] buffer2 = new byte[1024]; while (num < start3) { if (checked (start3 - num) > (long) buffer2.Length) { random3.NextBytes(buffer2); checked { num += (long) buffer2.Length; } } else { byte[] buffer3 = new byte[checked ((int) (start3 - num - 1L) + 1)]; random3.NextBytes(buffer3); checked { num += (long) buffer3.Length; } } } while (num < size) { if (checked (num + (long) buffer1.Length) > size) { byte[] buffer3 = new byte[checked ((int) (size - num) - 1 + 1)]; random3.NextBytes(buffer3); st.Write(buffer3, 0, buffer3.Length); checked { num += (long) buffer3.Length; } } else { random3.NextBytes(buffer1); st.Write(buffer1, 0, buffer1.Length); checked { num += (long) buffer1.Length; } } } ReturnedInfo returnedInfo = this.pFS.CloseWrite(st); ResourceInfo resourceInfo = returnedInfo as ResourceInfo; id3 = resourceInfo == null ? returnedInfo as ResourceId : resourceInfo.Id; } throw new Exception("should raise error."); } catch (InvalidRangeException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } catch (WebException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } try { this.pFS.Delete(id3); } catch (RemoteResourceNotFoundException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } } private void CreateTest(Uri @base, string name) { this.Log("CreateTest " + name); ResourceId id1 = this.pFS.GetInfo(@base).Id; this.Log("CreateCollection(ByVal id As ResourceId) As ResourceInfo"); ReturnedInfo collection = this.pFS.CreateCollection(id1, name); ResourceInfo resourceInfo = collection as ResourceInfo; ResourceId id2 = resourceInfo == null ? collection as ResourceId : resourceInfo.Id; ResourceInfo info = this.pFS.GetInfo(id2); if (info.Id != id2) throw new Exception("CreateCollection Fail 1. id strange."); if (!id2.IsCollection) throw new Exception("CreateCollection Fail 2. property strange."); if (!info.IsCollection) throw new Exception("CreateCollection Fail 3. property strange."); if (Operators.CompareString(UriUtil.GetLastName(id2.Uri), name, false) != 0) throw new Exception("CreateCollection Fail 4. Filename Strange."); if (Operators.CompareString(UriUtil.GetLastName(info.Id.Uri), name, false) != 0) throw new Exception("CreateCollection Fail 5. Filename Strange."); this.pFS.Delete(id2); } private void DeleteTest(Uri @base, string name) { this.Log("DeleteTest " + name); int millisecond = DateTime.Now.Millisecond; ResourceId id = this.pFS.GetInfo(@base).Id; ReturnedInfo collection = this.pFS.CreateCollection(id, name); ResourceInfo resourceInfo = collection as ResourceInfo; this.pFS.Delete(resourceInfo == null ? collection as ResourceId : resourceInfo.Id); this.pFS.Delete(this.SubCreateFile(id, name, millisecond, this.FileSize())); } private void MoveTest1(Uri @base, string name, string destname) { this.Log("MoveTest1 Rename " + name + " " + destname); ResourceId id1 = this.pFS.GetInfo(@base).Id; ResourceId file1 = this.SubCreateFile(id1, name, this.seed, this.FileSize()); ReturnedInfo returnedInfo = this.pFS.Move(file1, (ResourceId) null, destname, false); Uri uri1 = file1.Uri; this.SubConfirmNotExists(ref uri1); ResourceInfo info1 = this.pFS.GetInfo(id1, destname); this.SubReadConfirm(info1.Id, this.seed, this.FileSize()); this.pFS.Delete(info1.Id); ResourceId resourceId; if ((this.pFS.Ability & FsAbility.IgnoreSameName) == FsAbility.None) { ResourceId file2 = this.SubCreateFile(id1, name, this.seed, this.FileSize()); resourceId = this.SubCreateFile(id1, destname, this.seed, 10L); try { returnedInfo = this.pFS.Move(file2, (ResourceId) null, destname, false); throw new InvalidServerResponseException(); } catch (DestinationAlreadyExistsException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } ResourceInfo info2 = this.pFS.GetInfo(id1, name); this.SubReadConfirm(info2.Id, this.seed, this.FileSize()); this.pFS.Delete(info2.Id); ResourceInfo info3 = this.pFS.GetInfo(id1, destname); this.SubReadConfirm(info3.Id, this.seed, 10L); this.pFS.Delete(info3.Id); } ResourceId id2 = this.SubCreateFolder(id1, name).Id; returnedInfo = this.pFS.Move(id2, (ResourceId) null, destname, false); Uri uri2 = id2.Uri; this.SubConfirmNotExists(ref uri2); ResourceInfo info4 = this.pFS.GetInfo(id1, destname); if (!info4.IsCollection) throw new Exception(); this.pFS.Delete(info4.Id); if ((this.pFS.Ability & FsAbility.IgnoreSameName) != FsAbility.None) return; ResourceId id3 = this.SubCreateFolder(id1, name).Id; resourceId = this.SubCreateFolder(id1, destname).Id; try { returnedInfo = this.pFS.Move(id3, (ResourceId) null, destname, false); throw new InvalidServerResponseException(); } catch (DestinationAlreadyExistsException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } ResourceInfo info5 = this.pFS.GetInfo(id1, name); if (!info5.IsCollection) throw new Exception(); this.pFS.Delete(info5.Id); ResourceInfo info6 = this.pFS.GetInfo(id1, destname); if (!info6.IsCollection) throw new Exception(); this.pFS.Delete(info6.Id); } private void MoveTest2(Uri @base, string name, string dirname) { this.Log("MoveTest2 Move " + name + " " + dirname); ResourceId id1 = this.pFS.GetInfo(@base).Id; ResourceId id2 = this.SubCreateFolder(id1, dirname).Id; ResourceId file1 = this.SubCreateFile(id1, name, this.seed, this.FileSize()); ReturnedInfo returnedInfo = this.pFS.Move(file1, id2, (string) null, false); Uri uri1 = file1.Uri; this.SubConfirmNotExists(ref uri1); ResourceInfo info1 = this.pFS.GetInfo(id2, name); this.SubReadConfirm(info1.Id, this.seed, this.FileSize()); this.pFS.Delete(info1.Id); ResourceId resourceId; if ((this.pFS.Ability & FsAbility.IgnoreSameName) == FsAbility.None) { ResourceId file2 = this.SubCreateFile(id1, name, this.seed, this.FileSize()); resourceId = this.SubCreateFile(id2, name, this.seed, 10L); try { returnedInfo = this.pFS.Move(file2, id2, (string) null, false); throw new InvalidServerResponseException(); } catch (DestinationAlreadyExistsException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } ResourceInfo info2 = this.pFS.GetInfo(id1, name); this.SubReadConfirm(info2.Id, this.seed, this.FileSize()); this.pFS.Delete(info2.Id); ResourceInfo info3 = this.pFS.GetInfo(id2, name); this.SubReadConfirm(info3.Id, this.seed, 10L); this.pFS.Delete(info3.Id); } ResourceId id3 = this.SubCreateFolder(id1, name).Id; returnedInfo = this.pFS.Move(id3, id2, (string) null, false); Uri uri2 = id3.Uri; this.SubConfirmNotExists(ref uri2); ResourceInfo info4 = this.pFS.GetInfo(id2, name); if (!info4.IsCollection) throw new Exception(); this.pFS.Delete(info4.Id); if ((this.pFS.Ability & FsAbility.IgnoreSameName) == FsAbility.None) { ResourceId id4 = this.SubCreateFolder(id1, name).Id; resourceId = this.SubCreateFolder(id2, name).Id; try { returnedInfo = this.pFS.Move(id4, id2, (string) null, false); throw new InvalidServerResponseException(); } catch (DestinationAlreadyExistsException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } ResourceInfo info2 = this.pFS.GetInfo(id1, name); if (!info2.IsCollection) throw new Exception(); this.pFS.Delete(info2.Id); ResourceInfo info3 = this.pFS.GetInfo(id2, name); if (!info3.IsCollection) throw new Exception(); this.pFS.Delete(info3.Id); } this.pFS.Delete(id2); } private void MoveTest3(Uri @base, string name, string destname, string dirname) { this.Log("MoveTest3 MoveAndRename " + name + " " + destname + " " + dirname); ResourceId id1 = this.pFS.GetInfo(@base).Id; ResourceId id2 = this.SubCreateFolder(id1, dirname).Id; ResourceId file1 = this.SubCreateFile(id1, name, this.seed, this.FileSize()); ReturnedInfo returnedInfo = this.pFS.Move(file1, id2, destname, false); Uri uri1 = file1.Uri; this.SubConfirmNotExists(ref uri1); ResourceInfo info1 = this.pFS.GetInfo(id2, destname); this.SubReadConfirm(info1.Id, this.seed, this.FileSize()); this.pFS.Delete(info1.Id); ResourceId resourceId; if ((this.pFS.Ability & FsAbility.IgnoreSameName) == FsAbility.None) { ResourceId file2 = this.SubCreateFile(id1, name, this.seed, this.FileSize()); resourceId = this.SubCreateFile(id2, destname, this.seed, 10L); try { returnedInfo = this.pFS.Move(file2, id2, destname, false); throw new InvalidServerResponseException(); } catch (DestinationAlreadyExistsException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } ResourceInfo info2 = this.pFS.GetInfo(id1, name); this.SubReadConfirm(info2.Id, this.seed, this.FileSize()); this.pFS.Delete(info2.Id); ResourceInfo info3 = this.pFS.GetInfo(id2, destname); this.SubReadConfirm(info3.Id, this.seed, 10L); this.pFS.Delete(info3.Id); } ResourceId id3 = this.SubCreateFolder(id1, name).Id; returnedInfo = this.pFS.Move(id3, id2, destname, false); Uri uri2 = id3.Uri; this.SubConfirmNotExists(ref uri2); ResourceInfo info4 = this.pFS.GetInfo(id2, destname); if (!info4.IsCollection) throw new Exception(); this.pFS.Delete(info4.Id); if ((this.pFS.Ability & FsAbility.IgnoreSameName) == FsAbility.None) { ResourceId id4 = this.SubCreateFolder(id1, name).Id; resourceId = this.SubCreateFolder(id2, destname).Id; try { returnedInfo = this.pFS.Move(id4, id2, destname, false); throw new InvalidServerResponseException(); } catch (DestinationAlreadyExistsException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } ResourceInfo info2 = this.pFS.GetInfo(id1, name); if (!info2.IsCollection) throw new Exception(); this.pFS.Delete(info2.Id); ResourceInfo info3 = this.pFS.GetInfo(id2, destname); if (!info3.IsCollection) throw new Exception(); this.pFS.Delete(info3.Id); } this.pFS.Delete(id2); } private void MoveOverwriteTest1(Uri @base, string name, string destname) { this.Log("MoveOverwriteTest1 Rename " + name + " " + destname); ResourceId id1 = this.pFS.GetInfo(@base).Id; ResourceId file = this.SubCreateFile(id1, name, this.seed, this.FileSize()); this.SubCreateFile(id1, destname, this.seed2, this.FileSize()); ReturnedInfo returnedInfo = this.pFS.Move(file, (ResourceId) null, destname, true); ResourceInfo resourceInfo = returnedInfo as ResourceInfo; ResourceId id2 = resourceInfo == null ? returnedInfo as ResourceId : resourceInfo.Id; Uri uri = file.Uri; this.SubConfirmNotExists(ref uri); this.pFS.GetInfo(id1, destname); this.SubReadConfirm(id2, this.seed, this.FileSize()); this.pFS.Delete(id2); } private void MoveOVerwriteTest2(Uri @base, string name, string dirname) { this.Log("MoveOVerwriteTest2 Move " + name + " " + dirname); this.Log("Public Function Move(ByVal id As ResourceId, ByVal newparentid As ResourceId, null, ByVal overwrite As Boolean) As ResourceId"); ResourceId id1 = this.pFS.GetInfo(@base).Id; ResourceId id2 = this.SubCreateFolder(id1, dirname).Id; ResourceId file = this.SubCreateFile(id1, name, this.seed, this.FileSize()); this.SubCreateFile(id2, name, this.seed2, this.FileSize()); ReturnedInfo returnedInfo = this.pFS.Move(file, id2, (string) null, true); ResourceInfo resourceInfo = returnedInfo as ResourceInfo; ResourceId id3 = resourceInfo == null ? returnedInfo as ResourceId : resourceInfo.Id; Uri uri = file.Uri; this.SubConfirmNotExists(ref uri); this.pFS.GetInfo(id2, name); this.SubReadConfirm(id3, this.seed, this.FileSize()); this.pFS.Delete(id3); this.pFS.Delete(id2); } private void MoveOverwriteTest3(Uri @base, string name, string destname, string dirname) { this.Log("MoveOverwriteTest3 MoveAndRename " + name + " " + destname + " " + dirname); ResourceId id1 = this.pFS.GetInfo(@base).Id; ResourceId id2 = this.SubCreateFolder(id1, dirname).Id; ResourceId file = this.SubCreateFile(id1, name, this.seed, this.FileSize()); this.SubCreateFile(id2, destname, this.seed2, this.FileSize()); ReturnedInfo returnedInfo = this.pFS.Move(file, id2, destname, true); ResourceInfo resourceInfo = returnedInfo as ResourceInfo; ResourceId id3 = resourceInfo == null ? returnedInfo as ResourceId : resourceInfo.Id; Uri uri = file.Uri; this.SubConfirmNotExists(ref uri); this.pFS.GetInfo(id2, destname); this.SubReadConfirm(id3, this.seed, this.FileSize()); this.pFS.Delete(id3); this.pFS.Delete(id2); } private void CopyTest1(Uri @base, string name, string destname) { this.Log("CopyTest1 RenameCopy " + name + " " + destname); ResourceId id1 = this.pFS.GetInfo(@base).Id; ResourceId file1 = this.SubCreateFile(id1, name, this.seed, this.FileSize()); ReturnedInfo returnedInfo = this.pFS.Copy(file1, (ResourceId) null, destname, false); ResourceInfo info1 = this.pFS.GetInfo(id1, name); this.SubReadConfirm(file1, this.seed, this.FileSize()); ResourceInfo info2 = this.pFS.GetInfo(id1, destname); this.SubReadConfirm(info2.Id, this.seed, this.FileSize()); this.pFS.Delete(info1.Id); this.pFS.Delete(info2.Id); ResourceId resourceId; if ((this.pFS.Ability & FsAbility.IgnoreSameName) == FsAbility.None && (this.pFS.Ability & FsAbility.ForceOverwrite) == FsAbility.None) { ResourceId file2 = this.SubCreateFile(id1, name, this.seed, this.FileSize()); resourceId = this.SubCreateFile(id1, destname, this.seed, 10L); try { returnedInfo = this.pFS.Copy(file2, (ResourceId) null, destname, false); throw new InvalidServerResponseException(); } catch (DestinationAlreadyExistsException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } ResourceInfo info3 = this.pFS.GetInfo(id1, name); this.SubReadConfirm(info3.Id, this.seed, this.FileSize()); this.pFS.Delete(info3.Id); ResourceInfo info4 = this.pFS.GetInfo(id1, destname); this.SubReadConfirm(info4.Id, this.seed, 10L); this.pFS.Delete(info4.Id); } ResourceInfo resourceInfo1 = this.SubCreateFolder(id1, name); if (resourceInfo1.CanCopy) { returnedInfo = this.pFS.Copy(resourceInfo1.Id, (ResourceId) null, destname, false); resourceInfo1 = this.pFS.GetInfo(id1, name); if (!resourceInfo1.IsCollection) throw new Exception(); ResourceInfo info3 = this.pFS.GetInfo(id1, destname); if (!info3.IsCollection) throw new Exception(); this.pFS.Delete(info3.Id); } this.pFS.Delete(resourceInfo1.Id); if ((this.pFS.Ability & FsAbility.IgnoreSameName) != FsAbility.None || (this.pFS.Ability & FsAbility.ForceOverwrite) != FsAbility.None) return; ResourceInfo resourceInfo2 = this.SubCreateFolder(id1, name); if (resourceInfo2.CanCopy) { ResourceId id2 = resourceInfo2.Id; resourceId = this.SubCreateFolder(id1, destname).Id; try { returnedInfo = this.pFS.Copy(id2, (ResourceId) null, destname, false); throw new InvalidServerResponseException(); } catch (DestinationAlreadyExistsException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } resourceInfo2 = this.pFS.GetInfo(id1, name); if (!resourceInfo2.IsCollection) throw new Exception(); ResourceInfo info3 = this.pFS.GetInfo(id1, destname); if (!info3.IsCollection) throw new Exception(); this.pFS.Delete(info3.Id); } this.pFS.Delete(resourceInfo2.Id); } private void CopyTest2(Uri @base, string name, string dirname) { this.Log("CopyTest2 CopyToFolder " + name + " " + dirname); ResourceId id1 = this.pFS.GetInfo(@base).Id; ResourceId id2 = this.SubCreateFolder(id1, dirname).Id; ResourceId file1 = this.SubCreateFile(id1, name, this.seed, this.FileSize()); ReturnedInfo returnedInfo = this.pFS.Copy(file1, id2, (string) null, false); ResourceInfo info1 = this.pFS.GetInfo(id1, name); this.SubReadConfirm(file1, this.seed, this.FileSize()); ResourceInfo info2 = this.pFS.GetInfo(id2, name); this.SubReadConfirm(info2.Id, this.seed, this.FileSize()); this.pFS.Delete(info1.Id); this.pFS.Delete(info2.Id); ResourceId resourceId; if ((this.pFS.Ability & FsAbility.IgnoreSameName) == FsAbility.None && (this.pFS.Ability & FsAbility.ForceOverwrite) == FsAbility.None) { ResourceId file2 = this.SubCreateFile(id1, name, this.seed, this.FileSize()); resourceId = this.SubCreateFile(id2, name, this.seed, 10L); try { returnedInfo = this.pFS.Copy(file2, id2, (string) null, false); throw new InvalidServerResponseException(); } catch (DestinationAlreadyExistsException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } ResourceInfo info3 = this.pFS.GetInfo(id1, name); this.SubReadConfirm(info3.Id, this.seed, this.FileSize()); this.pFS.Delete(info3.Id); ResourceInfo info4 = this.pFS.GetInfo(id2, name); this.SubReadConfirm(info4.Id, this.seed, 10L); this.pFS.Delete(info4.Id); } ResourceInfo resourceInfo1 = this.SubCreateFolder(id1, name); if (resourceInfo1.CanCopy) { returnedInfo = this.pFS.Copy(resourceInfo1.Id, id2, (string) null, false); resourceInfo1 = this.pFS.GetInfo(id1, name); if (!resourceInfo1.IsCollection) throw new Exception(); ResourceInfo info3 = this.pFS.GetInfo(id2, name); if (!info3.IsCollection) throw new Exception(); this.pFS.Delete(info3.Id); } this.pFS.Delete(resourceInfo1.Id); if ((this.pFS.Ability & FsAbility.IgnoreSameName) == FsAbility.None && (this.pFS.Ability & FsAbility.ForceOverwrite) == FsAbility.None) { ResourceInfo resourceInfo2 = this.SubCreateFolder(id1, name); if (resourceInfo2.CanCopy) { ResourceId id3 = resourceInfo2.Id; resourceId = this.SubCreateFolder(id2, name).Id; try { returnedInfo = this.pFS.Copy(id3, id2, (string) null, false); throw new InvalidServerResponseException(); } catch (DestinationAlreadyExistsException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } resourceInfo2 = this.pFS.GetInfo(id1, name); if (!resourceInfo2.IsCollection) throw new Exception(); ResourceInfo info3 = this.pFS.GetInfo(id2, name); if (!info3.IsCollection) throw new Exception(); this.pFS.Delete(info3.Id); } this.pFS.Delete(resourceInfo2.Id); } this.pFS.Delete(id2); } private void CopyTest3(Uri @base, string name, string destname, string dirname) { this.Log("CopyTest3 CopyToFolderAndRename " + name + " " + destname + " " + dirname); ResourceId id1 = this.pFS.GetInfo(@base).Id; ResourceId id2 = this.SubCreateFolder(id1, dirname).Id; ResourceId file1 = this.SubCreateFile(id1, name, this.seed, this.FileSize()); ReturnedInfo returnedInfo = this.pFS.Copy(file1, id2, destname, false); ResourceInfo info1 = this.pFS.GetInfo(id1, name); this.SubReadConfirm(file1, this.seed, this.FileSize()); ResourceInfo info2 = this.pFS.GetInfo(id2, destname); this.SubReadConfirm(info2.Id, this.seed, this.FileSize()); this.pFS.Delete(info1.Id); this.pFS.Delete(info2.Id); ResourceId resourceId; if ((this.pFS.Ability & FsAbility.IgnoreSameName) == FsAbility.None && (this.pFS.Ability & FsAbility.ForceOverwrite) == FsAbility.None) { ResourceId file2 = this.SubCreateFile(id1, name, this.seed, this.FileSize()); resourceId = this.SubCreateFile(id2, destname, this.seed, 10L); try { returnedInfo = this.pFS.Copy(file2, id2, destname, false); throw new InvalidServerResponseException(); } catch (DestinationAlreadyExistsException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } ResourceInfo info3 = this.pFS.GetInfo(id1, name); this.SubReadConfirm(info3.Id, this.seed, this.FileSize()); this.pFS.Delete(info3.Id); ResourceInfo info4 = this.pFS.GetInfo(id2, destname); this.SubReadConfirm(info4.Id, this.seed, 10L); this.pFS.Delete(info4.Id); } ResourceInfo resourceInfo1 = this.SubCreateFolder(id1, name); if (resourceInfo1.CanCopy) { returnedInfo = this.pFS.Copy(resourceInfo1.Id, id2, destname, false); resourceInfo1 = this.pFS.GetInfo(id1, name); if (!resourceInfo1.IsCollection) throw new Exception(); ResourceInfo info3 = this.pFS.GetInfo(id2, destname); if (!info3.IsCollection) throw new Exception(); this.pFS.Delete(info3.Id); } this.pFS.Delete(resourceInfo1.Id); if ((this.pFS.Ability & FsAbility.IgnoreSameName) == FsAbility.None && (this.pFS.Ability & FsAbility.ForceOverwrite) == FsAbility.None) { ResourceInfo resourceInfo2 = this.SubCreateFolder(id1, name); if (resourceInfo2.CanCopy) { ResourceId id3 = resourceInfo2.Id; resourceId = this.SubCreateFolder(id2, destname).Id; try { returnedInfo = this.pFS.Copy(id3, id2, destname, false); throw new InvalidServerResponseException(); } catch (DestinationAlreadyExistsException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } resourceInfo2 = this.pFS.GetInfo(id1, name); if (!resourceInfo2.IsCollection) throw new Exception(); ResourceInfo info3 = this.pFS.GetInfo(id2, destname); if (!info3.IsCollection) throw new Exception(); this.pFS.Delete(info3.Id); } this.pFS.Delete(resourceInfo2.Id); } this.pFS.Delete(id2); } private void CopyOverwriteTest1(Uri @base, string name, string destname) { this.Log("CopyOverwriteTest1 RenameCopy " + name + " " + destname); ResourceId id = this.pFS.GetInfo(@base).Id; ResourceId file1 = this.SubCreateFile(id, name, this.seed, this.FileSize()); ResourceId file2 = this.SubCreateFile(id, destname, this.seed2, this.FileSize()); try { this.pFS.Copy(file1, (ResourceId) null, destname, false); throw new Exception("Copy Fail 5. should not overwritten."); } catch (DestinationAlreadyExistsException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } ResourceInfo info1 = this.pFS.GetInfo(id, name); ResourceInfo info2 = this.pFS.GetInfo(id, destname); this.SubReadConfirm(file1, this.seed, this.FileSize()); this.SubReadConfirm(file2, this.seed2, this.FileSize()); this.pFS.Delete(file1); this.pFS.Delete(file2); ResourceId file3 = this.SubCreateFile(id, name, this.seed, this.FileSize()); ResourceId file4 = this.SubCreateFile(id, destname, this.seed2, this.FileSize()); ReturnedInfo returnedInfo = this.pFS.Copy(file3, (ResourceId) null, destname, true); ResourceInfo resourceInfo = returnedInfo as ResourceInfo; ResourceId resourceId = resourceInfo == null ? returnedInfo as ResourceId : resourceInfo.Id; info1 = this.pFS.GetInfo(id, name); info2 = this.pFS.GetInfo(id, destname); this.SubReadConfirm(file3, this.seed, this.FileSize()); this.SubReadConfirm(file4, this.seed, this.FileSize()); this.pFS.Delete(file3); this.pFS.Delete(file4); } private void CopyOverwriteTest2(Uri @base, string name, string dirname) { this.Log("CopyOverwriteTest2 CopyToFolder " + name + " " + dirname); ResourceId id1 = this.pFS.GetInfo(@base).Id; ResourceId id2 = this.SubCreateFolder(id1, dirname).Id; ResourceId file1 = this.SubCreateFile(id1, name, this.seed, this.FileSize()); ResourceId file2 = this.SubCreateFile(id2, name, this.seed2, this.FileSize()); try { this.pFS.Copy(file1, id2, (string) null, false); throw new Exception("Copy Fail 5. should not overwritten."); } catch (DestinationAlreadyExistsException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } ResourceInfo info1 = this.pFS.GetInfo(id1, name); this.SubReadConfirm(file1, this.seed, this.FileSize()); ResourceInfo info2 = this.pFS.GetInfo(id2, name); this.SubReadConfirm(file2, this.seed2, this.FileSize()); this.pFS.Delete(file1); this.pFS.Delete(file2); ResourceId file3 = this.SubCreateFile(id1, name, this.seed, this.FileSize()); ResourceId file4 = this.SubCreateFile(id2, name, this.seed2, this.FileSize()); ReturnedInfo returnedInfo = this.pFS.Copy(file3, id2, (string) null, true); ResourceInfo resourceInfo = returnedInfo as ResourceInfo; ResourceId resourceId = resourceInfo == null ? returnedInfo as ResourceId : resourceInfo.Id; info1 = this.pFS.GetInfo(id1, name); this.SubReadConfirm(file3, this.seed, this.FileSize()); info2 = this.pFS.GetInfo(id2, name); this.SubReadConfirm(file4, this.seed, this.FileSize()); this.pFS.Delete(file3); this.pFS.Delete(file4); this.pFS.Delete(id2); } private void CopyOverwriteTest3(Uri @base, string name, string destname, string dirname) { this.Log("CopyOverwriteTest3 CopyToFolderAndRename " + name + " " + destname + " " + dirname); ResourceId id1 = this.pFS.GetInfo(@base).Id; ResourceId id2 = this.SubCreateFolder(id1, dirname).Id; ResourceId file1 = this.SubCreateFile(id1, name, this.seed, this.FileSize()); ResourceId file2 = this.SubCreateFile(id2, destname, this.seed2, this.FileSize()); ReturnedInfo returnedInfo; try { returnedInfo = this.pFS.Copy(file1, id2, destname, false); throw new Exception("Copy Fail 5. should not overwrited."); } catch (DestinationAlreadyExistsException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } ResourceInfo info1 = this.pFS.GetInfo(id1, name); this.SubReadConfirm(file1, this.seed, this.FileSize()); ResourceInfo info2 = this.pFS.GetInfo(id2, destname); this.SubReadConfirm(file2, this.seed2, this.FileSize()); this.pFS.Delete(file1); this.pFS.Delete(file2); ResourceId file3 = this.SubCreateFile(id1, name, this.seed, this.FileSize()); ResourceId file4 = this.SubCreateFile(id2, destname, this.seed2, this.FileSize()); returnedInfo = this.pFS.Copy(file3, id2, destname, true); info1 = this.pFS.GetInfo(id1, name); this.SubReadConfirm(file3, this.seed, this.FileSize()); info2 = this.pFS.GetInfo(id2, destname); this.SubReadConfirm(file4, this.seed, this.FileSize()); this.pFS.Delete(file3); this.pFS.Delete(file4); this.pFS.Delete(id2); } private void SetTimesTest1(Uri @base, string name, DateTime lmt, DateTime lat, DateTime ct) { this.Log("SetTimesTest " + name.ToString()); if ((this.pFS.Ability & FsAbility.CreationTime) == FsAbility.None) ct = DateTime.MinValue; if ((this.pFS.Ability & FsAbility.LastModifiedTime) == FsAbility.None) lmt = DateTime.MinValue; if ((this.pFS.Ability & FsAbility.LastAccessTime) == FsAbility.None) lat = DateTime.MinValue; if (DateTime.Compare(ct, DateTime.MinValue) == 0 && DateTime.Compare(lmt, DateTime.MinValue) == 0 && DateTime.Compare(lat, DateTime.MinValue) == 0) return; int millisecond = DateTime.Now.Millisecond; ResourceId id1 = this.pFS.GetInfo(@base).Id; try { ReturnedInfo info = (ReturnedInfo) this.pFS.GetInfo(id1, name); ResourceInfo resourceInfo = info as ResourceInfo; this.pFS.Delete(resourceInfo == null ? info as ResourceId : resourceInfo.Id); } catch (RemoteResourceNotFoundException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } ReturnedInfo collection = this.pFS.CreateCollection(id1, name); ResourceInfo resourceInfo1 = collection as ResourceInfo; ResourceId id2 = resourceInfo1 == null ? collection as ResourceId : resourceInfo1.Id; this.pFS.SetTimes(id2, lmt, ct, lat); ResourceInfo info1 = this.pFS.GetInfo(id2); if (DateTime.Compare(lmt, DateTime.MinValue) != 0 && Math.Abs(info1.LastModifiedTime.Subtract(lmt).TotalSeconds) > 1.0) throw new Exception("SetTimes Fail 1. Last Modified Time."); TimeSpan timeSpan; if (DateTime.Compare(ct, DateTime.MinValue) != 0) { timeSpan = info1.CreationTime.Subtract(ct); if (Math.Abs(timeSpan.TotalSeconds) > 1.0) throw new Exception("SetTimes Fail 2. Creation Time."); } if (DateTime.Compare(lat, DateTime.MinValue) != 0) { timeSpan = info1.LastAccessTime.Subtract(lat); if (Math.Abs(timeSpan.TotalSeconds) > 1.0) throw new Exception("SetTimes Fail 3. Last Access Time."); } this.pFS.Delete(id2); ResourceId file = this.SubCreateFile(id1, name, millisecond, this.FileSize()); this.pFS.SetTimes(file, lmt, ct, lat); ResourceInfo info2 = this.pFS.GetInfo(file); if (DateTime.Compare(lmt, DateTime.MinValue) != 0) { timeSpan = info2.LastModifiedTime.Subtract(lmt); if (Math.Abs(timeSpan.TotalSeconds) > 1.0) throw new Exception("SetTimes Fail 1. Last Modified Time."); } if (DateTime.Compare(ct, DateTime.MinValue) != 0) { timeSpan = info2.CreationTime.Subtract(ct); if (Math.Abs(timeSpan.TotalSeconds) > 1.0) throw new Exception("SetTimes Fail 2. Creation Time."); } if (DateTime.Compare(lat, DateTime.MinValue) != 0) { timeSpan = info2.LastAccessTime.Subtract(lat); if (Math.Abs(timeSpan.TotalSeconds) > 1.0) throw new Exception("SetTimes Fail 3. Last Access Time."); } this.pFS.Delete(file); } private string[] CreateFilenames() { List stringList1 = new List(); if (this.CheckBoxF1.Checked) stringList1.AddRange((IEnumerable) this.Name_asc); if (this.CheckBoxF2.Checked) stringList1.AddRange((IEnumerable) this.Name_space); if (this.CheckBoxF3.Checked) stringList1.AddRange((IEnumerable) this.Name_long); if (this.CheckBoxF4.Checked) stringList1.AddRange((IEnumerable) this.Name_symbol1); if (this.CheckBoxF5.Checked) stringList1.AddRange((IEnumerable) this.Name_symbol2); if (this.CheckBoxF6.Checked) stringList1.AddRange((IEnumerable) this.Name_uni); if (this.CheckBoxF7.Checked) stringList1.AddRange((IEnumerable) this.Name_longuni); if (this.CheckBoxF8.Checked) stringList1.AddRange((IEnumerable) this.Name_symbol3); if (this.CheckBoxF9.Checked) stringList1.AddRange((IEnumerable) this.Name_bwspace); List stringList2 = new List(); if (this.CheckBoxE0.Checked) stringList2.AddRange((IEnumerable) this.Ext_none); if (this.CheckBoxE1.Checked) stringList2.AddRange((IEnumerable) this.Ext_txt); if (this.CheckBoxE2.Checked) stringList2.AddRange((IEnumerable) this.Ext_zip); if (this.CheckBoxE3.Checked) stringList2.AddRange((IEnumerable) this.Ext_data); if (this.CheckBoxE4.Checked) stringList2.AddRange((IEnumerable) this.Ext_bin); if (this.CheckBoxE5.Checked) stringList2.AddRange((IEnumerable) this.Ext_uni); if (this.CheckBoxE6.Checked) stringList2.AddRange((IEnumerable) this.Ext_multi); List stringList3 = new List(); int count = stringList1.Count; if (count < stringList2.Count) count = stringList2.Count; string text = this.TextBoxExceptChar.Text; int num1 = 0; int num2 = checked (count - 1); int num3 = num1; while (num3 <= num2) { StringBuilder stringBuilder = new StringBuilder(); string str = stringList1[num3 % stringList1.Count] + stringList2[num3 % stringList2.Count]; int num4 = 0; int num5 = checked (str.Length - 1); int index = num4; while (index <= num5) { if (text.IndexOf(str[index]) < 0) stringBuilder.Append(str[index]); checked { ++index; } } if (stringBuilder.Length > 0) stringList3.Add(stringBuilder.ToString()); checked { ++num3; } } return stringList3.ToArray(); } private ResourceId SubCreateFile(ResourceId id, string name, int seed, long size) { byte[] buffer = new byte[1024]; Random random = new Random(seed); using (Stream st = this.pFS.OpenWrite(id, name, size)) { long num = 0; while (num < size) { random.NextBytes(buffer); if (checked (num + (long) buffer.Length) > size) { st.Write(buffer, 0, checked ((int) (size - num))); num = size; } else { st.Write(buffer, 0, buffer.Length); checked { num += (long) buffer.Length; } } } ReturnedInfo returnedInfo = this.pFS.CloseWrite(st); ResourceInfo resourceInfo = returnedInfo as ResourceInfo; if (resourceInfo != null) return resourceInfo.Id; return (ResourceId) returnedInfo; } } private ResourceInfo SubCreateFolder(ResourceId id, string name) { ReturnedInfo collection = this.pFS.CreateCollection(id, name); return collection as ResourceInfo ?? this.pFS.GetInfo((ResourceId) collection); } private void SubReadConfirm(ResourceId id, int seed, long size) { byte[] buffer1 = new byte[65536]; Random random = new Random(seed); FsBase pFs = this.pFS; ResourceId id1 = id; long start = 0; long length = -1; using (Stream stream = pFs.OpenRead(id1, ref start, ref length)) { long num1 = 0; label_2: int num2; try { num2 = stream.Read(buffer1, 0, buffer1.Length); } catch (Exception ex) { ProjectData.SetProjectError(ex); throw; } if (num2 != 0) { checked { num1 += (long) num2; } if (num1 > size) throw new Exception("Read Fail. File is too long."); byte[] buffer2 = new byte[checked (num2 - 1 + 1)]; random.NextBytes(buffer2); int num3 = 0; int num4 = checked (num2 - 1); int index = num3; while (index <= num4) { if ((int) buffer1[index] != (int) buffer2[index]) throw new Exception("Read Fail. Data doesn't match. "); checked { ++index; } } goto label_2; } else if (num1 < size) throw new Exception("Read Fail. File is too short."); } } private void SubConfirmNotExists(ref Uri uri) { try { this.pFS.GetInfo(uri); throw new Exception("Confirm Fail. File exists."); } catch (RemoteResourceNotFoundException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } } private long FileSize() { long result; if (long.TryParse(this.TextBoxFileSize.Text, out result)) return checked (result * 1024L); return this.DefFileSize; } private long LargeFileSize() { return checked (this.FileSize() * 100L); } private void SortRis(ResourceInfo[] ris, bool keepfirst) { int num1 = 0; if (keepfirst) num1 = 1; int num2 = checked (ris.Length - 2); int num3 = num1; int num4 = num2; while (num4 >= num3) { int num5 = num1; int num6 = num4; int index = num5; while (index <= num6) { int num7 = string.Compare(ris[index].Id.Uri.ToString(), ris[checked (index + 1)].Id.Uri.ToString()); if (num7 == 0) { num7 = DateTime.Compare(ris[index].LastModifiedTime, ris[checked (index + 1)].LastModifiedTime); if (num7 == 0) num7 = DateTime.Compare(ris[index].CreationTime, ris[checked (index + 1)].CreationTime); } if (num7 < 0) { ResourceInfo ri = ris[index]; ris[index] = ris[checked (index + 1)]; ris[checked (index + 1)] = ri; } checked { ++index; } } checked { num4 += -1; } } } private DateTime[] CreateTimes() { List dateTimeList1 = new List(); dateTimeList1.Add(DateTime.Now); List dateTimeList2 = dateTimeList1; DateTime dateTime1 = new DateTime(1980, 1, 1, 0, 0, 0); DateTime dateTime2 = dateTime1; dateTimeList2.Add(dateTime2); List dateTimeList3 = dateTimeList1; dateTime1 = new DateTime(1985, 3, 31, 2, 1, 3); DateTime dateTime3 = dateTime1; dateTimeList3.Add(dateTime3); List dateTimeList4 = dateTimeList1; dateTime1 = new DateTime(1990, 9, 21, 23, 45, 3); DateTime dateTime4 = dateTime1; dateTimeList4.Add(dateTime4); List dateTimeList5 = dateTimeList1; dateTime1 = new DateTime(2000, 7, 25, 17, 33, 3); DateTime dateTime5 = dateTime1; dateTimeList5.Add(dateTime5); List dateTimeList6 = dateTimeList1; dateTime1 = new DateTime(2005, 2, 9, 21, 54, 3); DateTime dateTime6 = dateTime1; dateTimeList6.Add(dateTime6); List dateTimeList7 = dateTimeList1; dateTime1 = new DateTime(2015, 6, 16, 8, 11, 40); DateTime dateTime7 = dateTime1; dateTimeList7.Add(dateTime7); List dateTimeList8 = dateTimeList1; dateTime1 = new DateTime(2020, 12, 7, 3, 41, 59); DateTime dateTime8 = dateTime1; dateTimeList8.Add(dateTime8); List dateTimeList9 = dateTimeList1; dateTime1 = new DateTime(2038, 1, 19, 3, 14, 7); DateTime dateTime9 = dateTime1; dateTimeList9.Add(dateTime9); List dateTimeList10 = dateTimeList1; dateTime1 = new DateTime(2038, 1, 20, 3, 14, 7); DateTime dateTime10 = dateTime1; dateTimeList10.Add(dateTime10); List dateTimeList11 = dateTimeList1; dateTime1 = new DateTime(2001, 9, 9, 1, 46, 40); DateTime dateTime11 = dateTime1; dateTimeList11.Add(dateTime11); List dateTimeList12 = dateTimeList1; dateTime1 = new DateTime(2001, 9, 19, 1, 46, 40); DateTime dateTime12 = dateTime1; dateTimeList12.Add(dateTime12); List dateTimeList13 = dateTimeList1; dateTime1 = new DateTime(2036, 2, 7, 6, 28, 15); DateTime dateTime13 = dateTime1; dateTimeList13.Add(dateTime13); List dateTimeList14 = dateTimeList1; dateTime1 = new DateTime(2036, 2, 17, 6, 28, 15); DateTime dateTime14 = dateTime1; dateTimeList14.Add(dateTime14); if (!this.CheckBoxFT.Checked) { int index = 0; while (index < dateTimeList1.Count) { if (DateTime.Compare(dateTimeList1[index], DateTime.Now) > 0) dateTimeList1.RemoveAt(index); else checked { ++index; } } } return dateTimeList1.ToArray(); } } }