} void button1_Click (object sender, EventArgs e)
{fileinf = new FileInfo (fname);// Fileinf - об'єкт класу FileInfo (checkBox1.Checked == true)
{. Attributes | = FileAttributes.Archive;// встановлюємо аттрибут
}
{. Attributes ^ = FileAttributes.Archive;// знімаємо аттрибут
} (checkBox2.Checked == true)
{. Attributes | = FileAttributes.Hidden;
}
{. Attributes ^ = FileAttributes.Hidden;
} (checkBox3.Checked == true)
{. Attributes | = FileAttributes.ReadOnly;
}
{. Attributes ^ = FileAttributes.ReadOnly;
} (checkBox4.Checked == false)
{. Attributes | = FileAttributes.NotContentIndexed;
}
{. Attributes ^ = FileAttributes.NotContentIndexed;
} (checkBox5.Checked == true)
{. Attributes | = FileAttributes.System;
}
{. Attributes ^ = FileAttributes.System;
}. Close ();
} void checkBox1_CheckedChanged (object sender, EventArgs e)
{
}
}
}
Form3.cs:
using
{partial class Form3: Form
{bool change_name = false; Form3 ()
{();
} void button1_Click (object sender, EventArgs e)
{_name = true;. Close ();
} void button2_Click (object sender, EventArgs e)
{
this.Close ();
} void label1_Click (object sender, EventArgs e)
{
} void textBox1_TextChanged (object sender, EventArgs e)
{
}
}
}