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; }
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(); } }
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); }