Esempio n. 1
0
 public ModelUI_Main()
 {
     InitializeComponent();
     _DocManager = new DocumentManager();
     ((ISupportInitialize)(this._DocManager)).BeginInit();
     _MetroUI = new MetroUIView();
     _DocManager.ContainerControl = this;
     _DocManager.View = _MetroUI;
     _DocManager.ViewCollection.Add(_MetroUI);
     ((ISupportInitialize)(this._DocManager)).EndInit();
     //string s = dt.Connection.ConnectionString.ToString();
     Form lg = new HPA.MAINFRAME.frmLogin();
     lg.ShowDialog();
     if (HPA.Common.StaticVars.UserName != null)
     {
         LoadModelMenu();
         _MetroUI.QueryControl += _MetroUI_QueryControl;
     }
     else
     {
         Application.Exit();
     }
 }
Esempio n. 2
0
        public ModelUI_Main()
        {
            InitializeComponent();
            _DocManager = new DocumentManager();
            ((ISupportInitialize)(this._DocManager)).BeginInit();
            _MetroUI = new MetroUIView();
            _DocManager.ContainerControl = this;
            _DocManager.View             = _MetroUI;
            _DocManager.ViewCollection.Add(_MetroUI);
            ((ISupportInitialize)(this._DocManager)).EndInit();
            //string s = dt.Connection.ConnectionString.ToString();
            Form lg = new HPA.MAINFRAME.frmLogin();

            lg.ShowDialog();
            if (HPA.Common.StaticVars.UserName != null)
            {
                LoadModelMenu();
                _MetroUI.QueryControl += _MetroUI_QueryControl;
            }
            else
            {
                Application.Exit();
            }
        }