Beispiel #1
0
		/// <summary>
		/// Initializing object frmMain.
		/// </summary>
		public frmMain(
			int    intMonitor,
			int    intPosX,
			int    intPosY,
			int    intWidth,
			int    intHeight,
			bool   isDisableStatusLine,
			bool   isDisableMainMenu,
			string strServerName,
			string strTemplate,
			string strDatabaseType,
			bool   isDisableNavigationPanel
		) {
			InitializeComponent();

			this.intMonitor               = intMonitor;
			this.intPosX                  = intPosX;
			this.intPosY                  = intPosY;
			this.intWidth                 = intWidth;
			this.intHeight                = intHeight;
			this.isDisableStatusLine      = isDisableStatusLine;
			this.isDisableMainMenu        = isDisableMainMenu;
			this.strServerName            = strServerName;
			this.strTemplate              = strTemplate;
			this.strDatabaseType          = strDatabaseType;
			this.isDisableNavigationPanel = isDisableNavigationPanel;
			this._windowInitialized       = false;
			this._connectionArrangeMode   = null;

			this.CinfigureMainMenu();

			Text += " - " + Application.ProductVersion;

			WebBrowserComp.SetIeComp(null);
		}
Beispiel #2
0
        private void ApplySettings()
        {
            tabMain.ShowSingleTab = this._model.Settings.ShowConnectionTabIfSingle && this._model.Settings.ConnectionsInTabs;

            // 12/11/2014 Aleksey A. Saychenko
            //
            // Window size and location don't need to be changed after setting changes
            // but only during the initial form windows load.
            //
            // RestoreSizeAndLocation(this._model.Settings);

            UpdateMainMenuVisibility(this._model.Settings, null);

            ConnectionArrangeMode = this._model.Settings.ConnectionsInTabs
                                ? ConnectionViewArrangeMode.AsTabs
                                : ConnectionViewArrangeMode.AsRootNodes;
        }
Beispiel #3
0
        /// <summary>
        /// Initializing object frmMain.
        /// </summary>
        public frmMain(
            int intMonitor,
            int intPosX,
            int intPosY,
            int intWidth,
            int intHeight,
            bool isDisableStatusLine,
            bool isDisableMainMenu,
            string strServerName,
            string strTemplate,
            string strDatabaseType,
            bool isDisableNavigationPanel
            )
        {
            InitializeComponent();

            this.intMonitor               = intMonitor;
            this.intPosX                  = intPosX;
            this.intPosY                  = intPosY;
            this.intWidth                 = intWidth;
            this.intHeight                = intHeight;
            this.isDisableStatusLine      = isDisableStatusLine;
            this.isDisableMainMenu        = isDisableMainMenu;
            this.strServerName            = strServerName;
            this.strTemplate              = strTemplate;
            this.strDatabaseType          = strDatabaseType;
            this.isDisableNavigationPanel = isDisableNavigationPanel;
            this._windowInitialized       = false;
            this._connectionArrangeMode   = null;

            this.CinfigureMainMenu();

            Text += " - " + Application.ProductVersion;

            WebBrowserComp.SetIeComp(null);
        }
Beispiel #4
0
		private void ApplySettings()
		{
			tabMain.ShowSingleTab = this._model.Settings.ShowConnectionTabIfSingle && this._model.Settings.ConnectionsInTabs;

			// 12/11/2014 Aleksey A. Saychenko
			//
			// Window size and location don't need to be changed after setting changes
			// but only during the initial form windows load.
			//
			// RestoreSizeAndLocation(this._model.Settings);

			UpdateMainMenuVisibility(this._model.Settings, null);

			ConnectionArrangeMode = this._model.Settings.ConnectionsInTabs
				? ConnectionViewArrangeMode.AsTabs
				: ConnectionViewArrangeMode.AsRootNodes;
		}