Ejemplo n.º 1
0
        public void UpdateContent(IJavascriptCallback javascriptCallback)
        {
            EditWellInfoForm ef = new EditWellInfoForm(terminal_ID, false, false, null);

            ef.ShowDialog();
            if (ef.DialogResult == DialogResult.OK)
            {
                Task.Run(async() =>
                {
                    using (javascriptCallback)
                    {
                        list = wellInfoService.GetWellInfo_List(terminal_ID);
                        json = JsonConvert.SerializeObject(list);
                        await javascriptCallback.ExecuteAsync(json);
                    }
                });
            }
        }
Ejemplo n.º 2
0
        public void AddMaker(IJavascriptCallback javascriptCallback)
        {
            EditWellInfoForm ef = new EditWellInfoForm(null, true, true, menuPositon);

            ef.ShowDialog();
            terminal_ID = ef.GetTerminal_ID();
            if (ef.DialogResult == DialogResult.OK)
            {
                Task.Run(async() =>
                {
                    using (javascriptCallback)
                    {
                        list = wellInfoService.GetWellInfo_List(terminal_ID);
                        json = JsonConvert.SerializeObject(list);
                        await javascriptCallback.ExecuteAsync(json);
                    }
                });
            }
        }