Esempio n. 1
0
        public MUseMainForm(string text)
        {
            Initialize();
            this.Text = text;
            this.DefaultFloatingSize = new Size(1000, 800);

            table.MouseRightUpEvent += Table_MouseRightUpEvent;
            table.MouseLeftUpEvent  += Table_MouseLeftUpEvent;

            //初始化仓库页面
            fh = new FormHouse();

            //初始化摘牌界面
            m_form = new DelistBrandForm();
            m_form.StartPosition         = FormStartPosition.Manual;
            m_form.OnDelistSuccessEvent += OnDelistSuccessChangedEvent;
            this.MouseLeave             += new EventHandler(MUseMainForm2_MouseLeave);
        }
Esempio n. 2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            Logger.LogInfo("初始化界面开始!");
            Initialize();
            Logger.LogInfo("初始化界面结束!");
            DataManager.Instance.IsLoginingEvent          += Instance_IsLoginingEvent;
            DataManager.Instance.IsLoginEvent             += Instance_IsLoginEvent;
            DataManager.Instance.UpdataCommodityInfoEvent += Instance_UpdataCommodityInfoEvent;
            DataManager.Instance.UpdataAllContractEvent   += Instance_UpdataAllContractEvent;
            DataManager.Instance.UpdataAllCommodityEvent  += Instance_UpdataAllCommodityEvent;
            //初始化数据
            DataManager.Instance.InitializationData();

            USeManager.Instance.Start();
            USeManager.Instance.MQTTService.UpdataMarketDataEvent += MQTTService_UpdataMarketDataEvent;

            table.MouseRightUpEvent += Table_MouseRightUpEvent;
            table.MouseLeftUpEvent  += Table_MouseLeftUpEvent;

            Logger.LogInfo("初始化供需发布!");
            //PublishControl1 = new PublishControl();
            //PublishControl1.Dock = DockStyle.Fill;
            //PublishControl1.Location = new Point(0, 0);
            //PublishControl1.Name = "PublishControl1";
            //PublishControl1.Size = new Size(1487, 409);
            //PublishControl1.TabIndex = 0;
            //panel1.Controls.Add(PublishControl1);
            //PublishControl1.DisposeFormEvent += PublishControl_Dispose;

            #region Form
            publishForm          = new PublishForm();
            publishForm.Dock     = DockStyle.Fill;
            publishForm.Location = new Point(0, 0);
            publishForm.Name     = "PublishForm";
            //publishForm.Size = new Size(1487, 409);
            publishForm.TabIndex = 0;
            //panel1.Controls.Add(publishForm);
            #endregion

            m_form = new DelistBrandForm();
            m_form.StartPosition         = FormStartPosition.Manual;
            m_form.OnDelistSuccessEvent += OnDelistSuccessChangedEvent;

            Logger.LogInfo("创建登录界面!");
            LoginFm         = new FormLogin();//登录2
            LoginFm.TopMost = true;
            LoginFm.Show();

            Logger.LogInfo("初始化内置浏览器!");
            //初始化仓库页面
            fh = new FormHouse();

            //资金
            this.panel3.Location = new Point(0, 40);
            this.panel3.Width    = this.Width;
            this.panel3.Height   = this.Height - 40 - 30;
            wk1 = new BsCtl(this.panel3, Helper.GetURL(HTTPServiceUrlCollection.History), "capital");

            //基础管理
            this.panel4.Location = new Point(0, 40);
            this.panel4.Width    = this.Width;
            this.panel4.Height   = this.Height - 40 - 30;
            wk2 = new BsCtl(this.panel4, Helper.GetURL(HTTPServiceUrlCollection.BasicManagement), "capital");
        }