public void OpenFileDialogTest()
        {
            var title  = "OpenFileDialogTest";
            var dir    = @"C:\Program Files\";
            var filter = "*.txt";

            ComdlgUtility.OpenFileDialog(title, dir, filter);
        }
Ejemplo n.º 2
0
        protected void OnOpenBtnClick()
        {
            var selectFile = ComdlgUtility.OpenFileDialog("Open File", workDir, "Text(*.txt)\0*.txt");

            if (string.IsNullOrEmpty(selectFile))
            {
                return;
            }

            currentFile      = selectFile;
            ipt_Content.text = File.ReadAllText(currentFile);
        }