Esempio n. 1
0
        private void button19_Click(object sender, EventArgs e)
        {
            if (m_client.IsConnected == false)
            {
                MessageBox.Show("You are not connected to streaming field server");
                return;
            }
            if (checkBox6.Checked == true && textBox14.Text == string.Empty)
            {
                MessageBox.Show("Please specify user name for the operations");
                return;
            }
            PasswordForm p = new PasswordForm();

            p.ShowDialog();
            if (p.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                try
                {
                    TimeSpan t;
                    TimeSpan.TryParse(textBox16.Text, out t);
                    DateTime d = DateTime.Now - t;
                    MessageBox.Show(m_client.DeleteAllUploadedFilesTimeSpanBeforeNow(d, textBox14.Text, checkBox6.Checked));
                }
                catch (Exception err)
                {
                    MessageBox.Show(err.Message);
                }
            }
        }