Пример #1
0
 private void EventName_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (EventName.SelectedItem != null)
     {
         SelectedEvent = (GExport)EventName.SelectedItem;
     }
 }
Пример #2
0
        public GControlProperty(string controlName, GExport export)
        {
            _ControlName = controlName;
            _GExport     = export;

            if (export.ObjectType == typeof(void))
            {
                throw new Exception("Property가 아닙니다.");
            }
        }
Пример #3
0
        public GControlEvent(string controlName, GExport export)
        {
            ControlName = controlName;
            GExport     = export;

            for (int i = 0; i < GExport.Optionals?.Length; i++)
            {
                string variableName = GExport.Optionals[i].Name;
                variableName = PREFIX_ARG + variableName[0].ToString().ToUpper() + variableName.Substring(1);

                GVariable variable = GSharpUtils.CreateGVariable(variableName);

                Arguments.Add(variable);
                ArgumentsType.Add(GExport.Optionals[i].ObjectType);
            }
        }
Пример #4
0
        private void EventName_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (EventName.SelectedItem != null)
            {
                SelectedEvent = (GExport)EventName.SelectedItem;

                AllowVariableList.Clear();
                ParameterBox.Children.Clear();

                for (int i = 0; i < SelectedEvent.Optionals?.Length; i++)
                {
                    VariableBlock variableBlock = BlockUtils.CreateVariableBlock(SelectedEvent.Optionals[i].Name, SelectedEvent.Optionals[i].FriendlyName);
                    BaseBlock     baseBlock     = variableBlock as BaseBlock;

                    baseBlock.MouseLeftButtonDown += BaseBlock_MouseLeftButtonDown;

                    AllowVariableList.Add(variableBlock);
                    ParameterBox.Children.Add(baseBlock);
                }
            }
        }
Пример #5
0
 public GControlEvent(string controlName, GExport export, List <GStatement> content) : this(controlName, export)
 {
     Content = content;
 }