public static ItemEditorWindow OpenEdit(string key)
        {
            ItemEditorWindow window = ScriptableObject.CreateInstance <ItemEditorWindow>();

            Vector2 mouse = GUIUtility.GUIToScreenPoint(new Vector2(100, 100));
            Rect    r     = new Rect(mouse, Vector2.one);

            window.key = key;

            string[] values;
            if (LocalizationEditorWindow.Current.DataTable.TryGetValue(key, out values))
            {
                window.values = values.Clone() as string[];
            }
            else
            {
                window.values = new string[LocalizationEditorWindow.Current.Languages.Count];
            }

            Vector2 widnowCenter = LocalizationEditorWindow.Current.position.position + LocalizationEditorWindow.Current.position.size / 2;

            window.position     = new Rect(widnowCenter - new Vector2(250, 500), new Vector2(500, 400));
            window.titleContent = new GUIContent("Edit Item");
            window.ShowAuxWindow();
            return(window);
        }
        public static ItemEditorWindow Open()
        {
            ItemEditorWindow window = ScriptableObject.CreateInstance <ItemEditorWindow>();

            Vector2 mouse = GUIUtility.GUIToScreenPoint(new Vector2(100, 100));
            Rect    r     = new Rect(mouse, Vector2.one * 10);

            window.values = new string[LocalizationEditorWindow.Current.Languages.Count];

            Vector2 widnowCenter = LocalizationEditorWindow.Current.position.position + LocalizationEditorWindow.Current.position.size / 2;

            window.position     = new Rect(widnowCenter - new Vector2(250, 500), new Vector2(500, 400));
            window.titleContent = new GUIContent("Add Item");
            window.ShowAuxWindow();
            return(window);
        }