예제 #1
0
 private void deleteMsgBox_Result(object sender, Fluid.Classes.DialogEventArgs e)
 {
     if (e.Result == DialogResult.OK)
     {
         Host.Cursor = Cursors.WaitCursor;
         //Delete File
         if (Form1.Instance.DropBox.Delete(_selectedItem))
         {
             //Reload current folder...?
             fileButtonPanel.Hide();
             lsbDropbox.Items = ListHelpers.MakeDirList(Form1.Instance.DropBox.GetItems(_selectedItem.Parent));
             Host.Cursor      = Cursors.Default;
         }
         else
         {
             Host.Cursor = Cursors.Default;
             MessageDialog.Show("Failed to Delete!", null, "OK");
         }
     }
 }
예제 #2
0
 void dlg_Result(object sender, DialogEventArgs e)
 {
     if (e.Result == DialogResult.Cancel)
     {
         ExitApplication();
     }
 }