Exemplo n.º 1
0
 public input_sockiet(dynamic parent_ref, Block_info sockiet_pos, ref parent_function func_ref)
 {
     parent = parent_ref;
     create_button(sockiet_pos);
     button.MouseLeftButtonDown += new MouseButtonEventHandler(In_sockiet_click);
     function_ref = func_ref;
 }
Exemplo n.º 2
0
        public static Button Create_Button(Block_info button_info)
        {
            Button    output_button = new Button();
            Thickness button_thicc  = output_button.Margin;

            output_button.HorizontalAlignment = HorizontalAlignment.Left;
            output_button.VerticalAlignment   = VerticalAlignment.Top;
            button_thicc.Left     = button_info.pos_X;
            button_thicc.Top      = button_info.pos_Y;
            output_button.Margin  = button_thicc;
            output_button.Width   = button_info.width_X;
            output_button.Height  = button_info.height_Y;
            output_button.Content = button_info.name;
            return(output_button);
        }
Exemplo n.º 3
0
            public RS_232_output(string input) : base(input, block_type.Output)
            {
                Block_info set_buttton_info = info.File_info;

                set_buttton_info.name = "Settings";

                setting_button = Fabricator.Create_Button(set_buttton_info);

                setting_button.Click += new RoutedEventHandler(Setting_button_click);

                canvas.Children.Add(setting_button);

                funct_ref = new input_sockiet.parent_function(Input_function);

                input_io = new input_sockiet(this, info.Input_info, ref funct_ref);

                canvas.Children.Add(input_io.button);
            }
Exemplo n.º 4
0
 public Button create_button(Block_info position)
 {
     button        = Fabricator.Create_Button(position);
     button.Click += new RoutedEventHandler(In_sockiet_click);
     return(button);
 }
Exemplo n.º 5
0
 public output_sockiet(dynamic parent_ref, Block_info sockiet_pos)
 {
     parent = parent_ref;
     create_button(sockiet_pos);
     button.MouseLeftButtonDown += new MouseButtonEventHandler(Out_sockiet_click);
 }