Теми рефератів
> Реферати > Курсові роботи > Звіти з практики > Курсові проекти > Питання та відповіді > Ессе > Доклади > Учбові матеріали > Контрольні роботи > Методички > Лекції > Твори > Підручники > Статті Контакти
Реферати, твори, дипломи, практика » Курсовые обзорные » Розробка програми FileInfo за коштами середовища програмування Microsoft Visual C #

Реферат Розробка програми FileInfo за коштами середовища програмування Microsoft Visual C #





ign="justify">}

} void update_fname_info (string fname)

{tmp_fname = fileinf.Name; (tmp_fname.Length> 25)

{_fname = tmp_fname.Substring (0, 25);

}. Text = "Файл: n" + tmp_fname; (fileinf.Extension == ". txt")

{. Enabled = true;

}

{. Enabled = false;

}

} void button1_Click (object sender, EventArgs e)

{(openFileDialog1.ShowDialog () == DialogResult.OK)

{= new FileInfo (openFileDialog1.FileName); _fname_info (fileinf.Name);. Visible = true;. Text = "Інформація про файл: n"

+ "Розмір:" + fileinf.Length.ToString () + "байт. n"

+ "Створено:" + fileinf.CreationTime.ToString ()

+ " nІзменен:" + fileinf.LastWriteTime.ToString ()

+ " nОткрит:" + fileinf.LastAccessTime.ToString ();. Enabled = true;. Enabled = true;. Enabled = true;. Enabled = true;

}

} void button6_Click (object sender, EventArgs e)

{form_attrib = new Form2 (); _attrib.fname = fileinf.FullName; ((fileinf.Attributes & FileAttributes.Archive) == FileAttributes.Archive)// Чи є архівним?

{_attrib.checkBox1.Checked = true;

} ((fileinf.Attributes & FileAttributes.Hidden) == FileAttributes.Hidden)// Чи є прихованим?

{_attrib.checkBox2.Checked = true;

} ((fileinf.Attributes & FileAttributes.ReadOnly) == FileAttributes.ReadOnly)// Чи є тільки для читання?

{_attrib.checkBox3.Checked = true;

} ((fileinf.Attributes & FileAttributes.NotContentIndexed) == FileAttributes.NotContentIndexed)// Чи є включеним до індексацію?

{_attrib.checkBox4.Checked = false;

} ((fileinf.Attributes & FileAttributes.System) == FileAttributes.System)// Чи є системним?

{_attrib.checkBox5.Checked = true;

} _attrib.ShowDialog ();. Refresh ();

} void button2_Click (object sender, EventArgs e)

{(check_exists (fileinf.FullName))

{form_rename = new Form3 ();// Створюємо форму 3 - вікно переіменованія_rename.textBox1.Text = fileinf.Name; _rename.ShowDialog ();// виводимо форму (form_rename.change_name == true )// перевіряємо, змінили ім'я файлу чи ні

{

{. MoveTo (fileinf.DirectoryName + @ "" + form_rename.textBox1.Text); _fname_info (fileinf.Name);// оновлюємо у програмі назва файлу

} (Exception err)

{. Show (err.Message.ToString ());

}

Назад | сторінка 13 з 15 | Наступна сторінка





Схожі реферати:

  • Реферат на тему: Phonetic peculiarities of the popular science text
  • Реферат на тему: Grammar of the Text: its Basic Units and Main Features (based on the novel ...
  • Реферат на тему: Програмування на мові Object Pascal
  • Реферат на тему: Технології аналізу даних (Text Mining, Data Mining)
  • Реферат на тему: Типи даних в Object Pascal