Esempio n. 1
0
        public static void OpenAssetInfos(bool isFromDataGrid = false)
        {
            string infos = GetAssetInfos(isFromDataGrid);

            if (DarkMessageBox.ShowYesNo(infos, FWindow.FCurrentAsset, "Copy Properties", "OK") == System.Windows.MessageBoxResult.Yes)
            {
                Clipboard.SetText(infos);

                new UpdateMyConsole(FWindow.FCurrentAsset, CColors.Blue).Append();
                new UpdateMyConsole("'s properties successfully copied", CColors.White, true).Append();
            }
        }
Esempio n. 2
0
        private void RC_Properties_Click(object sender, RoutedEventArgs e)
        {
            if (AssetsListBox.SelectedIndex >= 0)
            {
                AssetProperties a     = AssetsListBox.SelectedItem as AssetProperties;
                string          infos = GetAssetInfos(a);
                if (DarkMessageBox.ShowYesNo(infos, a.Name, "Copy Properties", "OK") == MessageBoxResult.Yes)
                {
                    Clipboard.SetText(infos);

                    new UpdateMyConsole(a.Name, CColors.Blue).Append();
                    new UpdateMyConsole("'s properties successfully copied", CColors.White, true).Append();
                }
            }
        }