private void button1_Click(object sender, EventArgs e) { UpFile u = new UpFile(); u.DeleteFile(comboBox1.Text); MessageBox.Show("刪除 " + comboBox1.Text + "成功"); textBox1.Text = ""; comboBox1.Text = ""; u.SetFileStatus("3"); comboBox1.DataSource = u.retrieveAllFile(); }
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { UpFile u = new UpFile(); u = u.Retrieveq(comboBox1.Text); comboBox1.DataSource = u.retrieveAllFile(); label1.Text = "公文標題:" + u.GetFileTitle(); label2.Text = "上傳日期:" + u.GetUpD(); label3.Text = "上傳時間:" + u.GetUpT(); textBox1.Text = u.GetFileContent(); }
public Sign1() { InitializeComponent(); textBox2.AutoSize = false; textBox2.Height = 100; textBox2.ReadOnly = true; UpFile objsh = new UpFile(); objsh.SetFileStatus("0"); comboBox1.DataSource = objsh.retrieveAllFile(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Login)); this.skinEngine = new Sunisoft.IrisSkin.SkinEngine(((System.ComponentModel.Component)(this))); }
public Clear() { InitializeComponent(); textBox1.AutoSize = false; textBox1.Height = 150; textBox1.ReadOnly = true; UpFile u = new UpFile(); u.SetFileStatus("3"); comboBox1.DataSource = u.retrieveAllFile(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Login)); this.skinEngine = new Sunisoft.IrisSkin.SkinEngine(((System.ComponentModel.Component)(this))); }
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { if (comboBox1.SelectedIndex.Equals(0)) { UpFile u = new UpFile(); u.SetFileStatus("0"); comboBox2.DataSource = u.retrieveAllFile(); u = u.Retrieveq(comboBox2.Text); textBox1.Text = u.GetFileContent(); } else { UpFile u = new UpFile(); u.SetFileStatus("1"); comboBox2.DataSource = u.retrieveAllFile(); u = u.Retrieveq(comboBox2.Text); textBox1.Text = u.GetFileContent(); } }