Ejemplo n.º 1
0
 private void panelSeat_DoubleClick(object sender, EventArgs e)
 {
     if (this.panelSeat.Controls.Count > 0)
     {
         int addWidth = 0;
         FullScreenSeatSelectorForm form = new FullScreenSeatSelectorForm(this, addWidth, this.CheckLeftToRight());
         // form.StartPosition=F
         //form.ShowDialog();
         form.Show();
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 返回主界面
        /// </summary>
        public static void GoPanel(Control panel)
        {
            try
            {
                if (MainForm != null)
                {
                    MainForm.AutoScroll = true;
                    if (GlobalTools.fullScreenSeatSelectorForm != null)
                    {
                        Form frm = GlobalTools.fullScreenSeatSelectorForm;
                        GlobalTools.fullScreenSeatSelectorForm = null;
                        frm.Close();
                    }
                    Control parent = MainForm;
                    if (parent.Controls.Count > 0)
                    {
                        MainPanel oldPanel = parent.Controls[0] as MainPanel;
                        if (oldPanel != null)
                        {
                            oldPanel.StopAdTimer();
                        }
                        parent.Controls.Clear();
                    }
            #if DEBUG
                Console.WriteLine("GoPanel开始隐藏小键盘");
            #endif
                    HideAllKeyBoard();

                    WindowFormDelegate.AddControlTo(parent, panel);
                    //parent.Controls.Add(panel);
                    if (panel is MainPanel)
                    {
                        StopUnOperationCounter();
                    }
                    else if (panel is OperationTimeParentPanel)
                    {
                        StopUnOperationCounter();

                        InitUnOperationControl(parent.Controls[0]);
                    }
                    else
                    {
                        ResetUnOperationTime();
                        StopUnOperationCounter();
                        StartUnOperationCounter();
                        InitUnOperationControl(parent.Controls[0]);
                    }

                }
            }
            catch (Exception ex)
            {
                GlobalTools.Log(ex);
                MessageBox.Show("切换界面出现异常:"+ex.ToString());
            }
        }
Ejemplo n.º 3
0
 private void panelSeat_DoubleClick(object sender, EventArgs e)
 {
     if (this.panelSeat.Controls.Count > 0)
     {
         int addWidth = 0;
         FullScreenSeatSelectorForm form = new FullScreenSeatSelectorForm(this,addWidth,this.CheckLeftToRight());
        // form.StartPosition=F
         //form.ShowDialog();
         form.Show();
     }
 }