예제 #1
0
            public static string GetDrawingName()
            {
                var drawingHandles = WindowController2.GetDrawingHandles();

                if (drawingHandles.Count != 0)
                {
                    WindowController2.Maximize(drawingHandles[0]);
                }

                foreach (var handle in drawingHandles)
                {
                    var title = WindowController2.GetWindowTitle(handle);
                    return(Path.GetFileNameWithoutExtension(title));
                }

                return(string.Empty);
            }