Example #1
0
 internal static ContextLogForm getForContext(MyContext ctx, Form parentForm)
 {
     ContextLogForm res;
     if (!forms.TryGetValue(ctx.id, out res)) {
         res = new ContextLogForm();
         res.Location = res.getLocationNear(parentForm);
         res.setContext(ctx);
         forms.Add(ctx.id, res);
     }
     return res;
 }
Example #2
0
        internal void showLog(int ctxId)
        {
            var ctx = (MyContext)TextHook.instance.getContext(ctxId);

            if (ctx != null)
            {
                ContextLogForm form = ContextLogForm.getForContext(ctx, this);
                form.Show();
                form.Activate();
            }
        }
Example #3
0
        internal static ContextLogForm getForContext(MyContext ctx, Form parentForm)
        {
            ContextLogForm res;

            if (!forms.TryGetValue(ctx.id, out res))
            {
                res          = new ContextLogForm();
                res.Location = res.getLocationNear(parentForm);
                res.setContext(ctx);
                forms.Add(ctx.id, res);
            }
            return(res);
        }