Exemple #1
0
        // 宏定义按钮
        private void button3_Click(object sender, EventArgs e)
        {
            this.moveCursorToPoint(this, new Point(this.Size.Width / 2, this.Size.Height / 2), Cursor.Position, 170, 150);
            CodeInputForm cif = new CodeInputForm("宏定义", core.getMarcos());

            cif.ShowDialog(this);
        }
Exemple #2
0
        // 插入指令:注释
        private void button9_Click(object sender, EventArgs e)
        {
            // 检查这个节点可否插入
            if (this.isAbleInsert() == false)
            {
                return;
            }
            this.moveCursorToPoint(this, new Point(this.Size.Width / 2, this.Size.Height / 2), Cursor.Position, 170, 150);
            CodeInputForm cif = new CodeInputForm("注释");

            cif.ShowDialog(this);
        }
Exemple #3
0
        public async Task <AccessTokenResult> RegConfirm(CodeInputForm form)
        {
            var request = new RestRequest(Method.POST);

            request.Resource = "api/account/registration/confirm";
            request.AddJsonBody(form);
            var response = await Client.ExecuteTaskAsync(request);

            if (response.IsSuccessful)
            {
                var ser = new JsonDeserializer();
                Token = ser.Deserialize <AccessTokenResult>(response);
                return(Token);
            }
            throw new ArgumentException("Something went wrong: " + response.Content);
        }
Exemple #4
0
        // 菜单->宏定义
        private void 宏定义ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CodeInputForm cif = new CodeInputForm("宏定义", core.getMarcos());

            cif.ShowDialog(this);
        }