예제 #1
0
        public static bool OpenDialog(string title, string message, Object obj, string Property)
        {
            InputBoxWindow IBW = new InputBoxWindow();

            IBW.Init(title, message, obj, Property);

            IBW.ShowDialog();
            if (IBW.OK)
            {
                return(true);
            }
            else
            {
                IBW.RestoreOriginalValue();
                return(false);
            }
        }
예제 #2
0
        public static bool OpenDialog(string title, string message, ref string Value, bool isMultiline = false)
        {
            InputBoxWindow IBW = new InputBoxWindow();

            IBW.Init(title, message, ref Value, isMultiline);
            CurrentInputBoxWindow = IBW;
            IBW.ShowDialog();
            if (IBW.OK)
            {
                Value = IBW.value;
                return(true);
            }
            else
            {
                return(false);
            }
        }