コード例 #1
0
        public UI_CoreForm()
        {
            InitializeComponent();
            thisForm          = this;
            this.FormClosing += UI_CoreForm_FormClosing;



            cfForm = new UI_CanvasForm
            {
                TopLevel = false,
                Dock     = DockStyle.Fill,
            };

            this.Controls.Add(cfForm);
            cfForm.Location = new Point(0, pnSideBar.Size.Height);
            cfForm.Show();
            cfForm.BringToFront();

            //For Horizontal tab-style menu in coreform
            //xPadding = (Width - cfForm.Width);
            //coreYPadding = pnTopBar.Height;
            //yPadding = (Height - cfForm.Height) - coreYPadding;

            //For Vertical tab-style menu in coreform
            yPadding    = (Height - cfForm.Height);
            corePadding = pnSideBar.Width;
            xPadding    = (Width - cfForm.Width) - corePadding;

            //UICore.SetRTCColor(UICore.GeneralColor);
        }
コード例 #2
0
        public UI_CoreForm()
        {
            InitializeComponent();
            thisForm = this;

            cfForm          = new UI_CanvasForm();
            cfForm.TopLevel = false;
            cfForm.Dock     = DockStyle.Fill;
            this.Controls.Add(cfForm);
            cfForm.Location = new Point(0, pnTopBar.Size.Height);
            cfForm.Show();
            cfForm.BringToFront();

            //For Horizontal tab-style menu in coreform
            //xPadding = (Width - cfForm.Width);
            //coreYPadding = pnTopBar.Height;
            //yPadding = (Height - cfForm.Height) - coreYPadding;

            //For Vertical tab-style menu in coreform
            yPadding    = (Height - cfForm.Height);
            corePadding = pnTopBar.Width;
            xPadding    = (Width - cfForm.Width) - corePadding;
        }
コード例 #3
0
        private void BtnTriggerKillswitch_MouseClick(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Right)
            {
                Point            locate      = e.GetMouseLocation(sender);
                ContextMenuStrip columnsMenu = new ContextMenuStrip();
                columnsMenu.Items.Add("Open Debug window", null, new EventHandler((ob, ev) => { UI_CoreForm.ForceCloudDebug(); }));
                columnsMenu.Show(this, locate);
                return;
            }

            S.GET <UI_CoreForm>().pbAutoKillSwitchTimeout.Value = S.GET <UI_CoreForm>().pbAutoKillSwitchTimeout.Maximum;
            AutoKillSwitch.KillEmulator(true);
        }