예제 #1
0
        public static bool OpenDialog(string title, string message, List <string> mValues, Object obj, string Property)
        {
            ComboBoxWindow CBW = new ComboBoxWindow();

            CBW.Init(title, message, mValues, obj, Property);
            CBW.ShowDialog();
            if (CBW.OK)
            {
                return(true);
            }
            else
            {
                CBW.RestoreOriginalValue();
                return(false);
            }
        }
예제 #2
0
        public static bool OpenDialog(string title, string message, List <string> mValues, ref string Value)
        {
            ComboBoxWindow CBW = new ComboBoxWindow();

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