Пример #1
0
        public Editor()
        {
            InitializeComponent();
            TheEditor = this;

            MemberCache.Import();
            SetUpPanels();

            this.Text += ' ' + Program.getVersion() + " (" + IBMi.CurrentSystem.GetValue("alias") + ")";
            if (!IBMi.IsConnected())
            {
                this.Text += " - Offline Mode";
            }

            if (IBMi.IsConnected())
            {
                if (IBMi.CurrentSystem.GetValue("lastOffline") == "true")
                {
                    DialogResult result = MessageBox.Show("Looks like your last session was in Offline Mode. Would you like the launch the SPF Push tool?", "Notice", MessageBoxButtons.YesNo, MessageBoxIcon.Information);

                    if (result == DialogResult.Yes)
                    {
                        new PushWindow().ShowDialog();
                    }
                }
            }
            IBMi.CurrentSystem.SetValue("lastOffline", (IBMi.IsConnected() == false).ToString().ToLower());
        }
Пример #2
0
        public Editor()
        {
            InitializeComponent();
            TheEditor = this;

            MemberCache.Import();

            this.Text += ' ' + Program.getVersion() + " (" + IBMi.CurrentSystem.GetValue("alias") + ")";
            if (!IBMi.IsConnected())
            {
                this.Text += " - Offline Mode";
            }

            if (IBMi.IsConnected())
            {
                if (IBMi.CurrentSystem.GetValue("lastOffline") == "true")
                {
                    DialogResult result = MessageBox.Show("Looks like your last session was in Offline Mode. Would you like the launch the SPF Push tool?", "Notice", MessageBoxButtons.YesNo, MessageBoxIcon.Information);

                    if (result == DialogResult.Yes)
                    {
                        new Forms.PushWindow().ShowDialog();
                    }
                }
            }

            IBMi.CurrentSystem.SetValue("lastOffline", (IBMi.IsConnected() == false).ToString().ToLower());

            DarkMode = (Program.Config.GetValue("darkmode") == "true");

            if (DarkMode)
            {
                dockingPanel.Theme = new VS2015DarkTheme();
            }
            else
            {
                dockingPanel.Theme = new VS2015LightTheme();
            }

            ApplyControlTheme(toolStrip);
            ApplyControlTheme(menuStrip);
            ApplyControlTheme(statusStrip);

            if (File.Exists(Program.PanelsXML))
            {
                dockingPanel.LoadFromXml(Program.PanelsXML, new DeserializeDockContent(GetContentFromPersistString));
            }
            else
            {
                AddTool(new UserTools.UserToolList(), DockState.DockLeft, true);
            }

            AddTool(new UserTools.Welcome(), DockState.Document, true);

            Tasklist = new UserTools.TaskList();

            AddTool(Tasklist, DockState.DockBottomAutoHide, true);

            dockingPanel.ActiveContentChanged += DockingPanel_ActiveContentChanged;
        }
Пример #3
0
        public Editor()
        {
            InitializeComponent();
            TheEditor = this;

            SetUpPanels();

            this.Text += " (" + IBMi.CurrentSystem.GetValue("alias") + ")";
            MemberCache.Import();
        }
Пример #4
0
        public Editor()
        {
            InitializeComponent();
            TheEditor = this;

            MemberCache.Import();

            this.Text += ' ' + Program.getVersion() + " (" + IBMi.CurrentSystem.GetValue("alias") + ")";
            if (!IBMi.IsConnected())
            {
                this.Text += " - Offline Mode";
            }

            if (IBMi.IsConnected())
            {
                if (IBMi.CurrentSystem.GetValue("lastOffline") == "true")
                {
                    DialogResult result = MessageBox.Show("Looks like your last session was in Offline Mode. Would you like the launch the SPF Push tool?", "Notice", MessageBoxButtons.YesNo, MessageBoxIcon.Information);

                    if (result == DialogResult.Yes)
                    {
                        new Forms.PushWindow().ShowDialog();
                    }
                }
            }

            IBMi.CurrentSystem.SetValue("lastOffline", (IBMi.IsConnected() == false).ToString().ToLower());

            if (Program.Config.GetValue("darkmode") == "true")
            {
                dockingPanel.Theme = new VS2015DarkTheme();
            }
            else
            {
                dockingPanel.Theme = new VS2015LightTheme();
            }

            AddTool(new UserTools.Welcome());
            AddTool(new UserTools.UserToolList(), DockState.DockLeft);

            OutlineView = new UserTools.OutlineView();
            AddTool(OutlineView, DockState.DockRightAutoHide);
        }