public static void Initialize() { GlobalClass.textboxAction = GlobalClass.TextBoxAction.LockPassword; GlobalClass.ShowTextBox(new PointF(272, 135), new SizeF(300, 25), ""); calculator = new Calculator(); if (buttons == null) { InitializeButtons(); } }
internal void Rename() { SizeF s = new Size(); PointF p = new PointF(); Node n = OpenedNode.GetSelectedNode(out s, out p); if (n != null) { GlobalClass.TextBoxRealatedNode = n; GlobalClass.textboxAction = GlobalClass.TextBoxAction.Rename; GlobalClass.ShowTextBox(p, s, n.DisplayName); return; } Entity en = OpenedNode.GetSelectedEntity(out s, out p); if (en != null) { GlobalClass.TextBoxRealatedEntity = en; GlobalClass.textboxAction = GlobalClass.TextBoxAction.EditTag; GlobalClass.ShowTextBox(p, s, en.Tags); return; } }