Esempio n. 1
0
        private void mnuItmSendToTask_Click(object sender, System.EventArgs e)
        {
            guiAssetController asset = new guiAssetController(mParent.mainForm);

            string comment = "Temp empty comment";

            // Make sure a node is selected before popup is allowed
            if (mParent.mainForm.AssetManagerInboxTasksListViewFilter.SelectedItems.Count != 0)
            {
                // This code will only work in the inbox :(
                foreach (ListViewItem item in mParent.mainForm.AssetManagerInboxTasksListViewFilter.SelectedItems)
                {
                    asset.SendToTask(item.SubItems[(int)guiAssetManager.TaskBoxColumns.FULLNAME].Text, comment);
                }
            }
        }
Esempio n. 2
0
        public void TaskReject()
        {
            guiAssetController asset = new guiAssetController(mParent.mainForm);

            string comment = "Temp empty comment";

            // Make sure a node is selected before popup is allowed
            if (mParent.mainForm.AssetManagerInboxTasksListViewFilter.SelectedItems.Count != 0)
            {
                // This code will only work in the inbox :(
                foreach (ListViewItem item in mParent.mainForm.AssetManagerInboxTasksListViewFilter.SelectedItems)
                {
                    asset.RejectTask(item.SubItems[(int)guiAssetManager.TaskBoxColumns.FULLNAME].Text, comment);
                }
            }
        }
        public void AssetView()
        {
            TabPage tab = mAssetManager.mainForm.AssetManagerInboxTabControl.SelectedTab;

            if (tab != null)
            {
                ListView view = tab.Controls[0] as ListView;
                if (view != null)
                {
                    if (view.SelectedItems.Count != 0)
                    {
                        foreach (ListViewItem item in view.SelectedItems)
                        {
                            string viewTarget = guiUserPrefs.LoadPref("ClientPrefs", "ContextMenu", "ViewTarget");
                            guiAssetController.AssetDirectories viewType = guiAssetController.AssetDirectories.PROCESSED;
                            switch (viewTarget)
                            {
                            case MOG_ControlsLibrary.Common.MOG_ContextMenu.MogControl_AssetContextMenu.ViewSource_MenuItemText:
                                viewType = guiAssetController.AssetDirectories.SOURCE;
                                break;

                            case MOG_ControlsLibrary.Common.MOG_ContextMenu.MogControl_AssetContextMenu.ViewProcessed_MenuItemText:
                                viewType = guiAssetController.AssetDirectories.PROCESSED;
                                break;

                            case MOG_ControlsLibrary.Common.MOG_ContextMenu.MogControl_AssetContextMenu.ViewImported_MenuItemText:
                                viewType = guiAssetController.AssetDirectories.IMPORTED;
                                break;
                            }

                            string       assetName = item.SubItems[(int)guiAssetManager.AssetBoxColumns.FULLNAME].Text;
                            MOG_Filename filename  = new MOG_Filename(assetName.ToLower());

                            MOG_Properties pProperties = new MOG_Properties(filename);
                            string         viewer      = pProperties.AssetViewer;

                            guiAssetController controller = new guiAssetController();
                            controller.View(filename, viewType, viewer);
                        }
                    }
                }
            }
        }
Esempio n. 4
0
        public void TaskCreateNew()
        {
            guiAssetController tasks = new guiAssetController(mParent.mainForm);

            tasks.CreateTask();
        }