//private string[] RecentFiles = new string[5];

        public MainGlueWindow()
        {
            mSelf = this;

            InitializeComponent();


        }
Beispiel #2
0
        public static void Start()
        {
            FlatRedBall.IO.FileManager.RelativeDirectory = FindGlueBin();

            MainForm = new MainGlueWindow();

            GlueGui.ShowGui = false;
            GlueSettingsSave.StopSavesAndLoads = true;
            GlueLayoutSettings.StopSavesAndLoads = true;
            FileAssociationSettings.StopSavesAndLoads = true;
            MainForm.StartUpGlue();
        }
        private static void AddRemoveFromProjectItems(MainGlueWindow form, ContextMenuStrip menu)
        {
            menu.Items.Add(form.removeFromProjectToolStripMenuItem);

            if (GlueState.Self.CurrentReferencedFileSave != null ||
                GlueState.Self.CurrentNamedObjectSave != null ||
                GlueState.Self.CurrentEventResponseSave != null ||
                GlueState.Self.CurrentCustomVariable != null ||
                GlueState.Self.CurrentStateSave != null ||
                GlueState.Self.CurrentStateSaveCategory != null)
            {
                if (GlueState.Self.CurrentScreenSave != null)
                {
                    form.removeFromProjectToolStripMenuItem.Text = "Remove from Screen";
                }
                else if (GlueState.Self.CurrentEntitySave != null)
                {
                    form.removeFromProjectToolStripMenuItem.Text = "Remove from Entity";
                }
                else
                {
                    form.removeFromProjectToolStripMenuItem.Text = "Remove from Global Content";
                }
            }
            else
            {
                form.removeFromProjectToolStripMenuItem.Text = "Remove item";
            }
            if ((Control.ModifierKeys & Keys.Shift) != 0)
            {
                menu.Items.Add(mRemoveFromProjectQuick);
            }
        }