private void button_CreateShareEncryptedFile_Click(object sender, EventArgs e) { ShareFileForm shareFileForm = new ShareFileForm(); shareFileForm.ShowDialog(); InitListView(); }
private void toolStripButton_CreateShareFile_Click(object sender, EventArgs e) { ShareFileForm shareFileForm = new ShareFileForm(); if (shareFileForm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { GetSharedFileList(); } }
private void toolStripButton_ModifyShareFile_Click(object sender, EventArgs e) { if (listView_SharedFiles.SelectedItems.Count != 1) { MessageBoxHelper.PrepToCenterMessageBoxOnForm(this); MessageBox.Show("Please select a file.", "Edit", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } DRPolicy drPolicy = (DRPolicy)listView_SharedFiles.SelectedItems[0].Tag; ShareFileForm shareFileForm = new ShareFileForm(drPolicy); shareFileForm.Text = "EaseFilter Shared File Modification"; if (shareFileForm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { GetSharedFileList(); InitShareFileListView(); } }