Esempio n. 1
0
        /// <summary>
        ///     Delete File
        /// </summary>
        public void DeleteFileStripButton_Click(object sender, EventArgs e)
        {
            var strTitle   = GuiConfig.GetText("Delete Files", "DropData");
            var strMessage = GuiConfig.GetText("Are you sure to delete selected File(s)?", "DropDataConfirm");

            if (MyMessageBox.ShowConfirm(strTitle, strMessage))
            {
                foreach (ListViewItem item in lstData.SelectedItems)
                {
                    Gfs.DelFile(item.Text, RuntimeMongoDbContext.GetCurrentDataBase());
                }
                RefreshGui();
            }
        }
Esempio n. 2
0
        /// <summary>
        ///     Delete File
        /// </summary>
        public void DeleteFileStripButton_Click(object sender, EventArgs e)
        {
            var strTitle   = "Delete Files";
            var strMessage = "Are you sure to delete selected File(s)?";

            if (!GuiConfig.IsUseDefaultLanguage)
            {
                strTitle   = GuiConfig.GetText(TextType.DropData);
                strMessage = GuiConfig.GetText(TextType.DropDataConfirm);
            }
            if (MyMessageBox.ShowConfirm(strTitle, strMessage))
            {
                foreach (ListViewItem item in lstData.SelectedItems)
                {
                    Gfs.DelFile(item.Text, null);
                }
                RefreshGui();
            }
        }