
#import "b4i_main.h"


@implementation b4i_main 


+ (instancetype)new {
    static b4i_main* shared = nil;
    if (shared == nil) {
        shared = [self alloc];
        shared.bi = [[B4IShellBI alloc] init:shared];
        shared.__c = [B4ICommon new];
    }
    return shared;
}
- (int)debugAppId {
    return 4;
}


- (NSString*)  _application_background{
[B4IRDebugUtils shared].currentModule=@"main";
if ([B4IDebug shouldDelegate: @"application_background"])
	return ((NSString*) [B4IDebug delegate:self.bi :@"application_background" :nil]);
[B4IRDebugUtils shared].currentLine=196608;
 //BA.debugLineNum = 196608;BA.debugLine="Private Sub Application_Background";
[B4IRDebugUtils shared].currentLine=196610;
 //BA.debugLineNum = 196610;BA.debugLine="End Sub";
return @"";
}
- (NSString*)  _application_start:(B4INavigationControllerWrapper*) _nav{
[B4IRDebugUtils shared].currentModule=@"main";
if ([B4IDebug shouldDelegate: @"application_start"])
	return ((NSString*) [B4IDebug delegate:self.bi :@"application_start:" :@[_nav]]);
[B4IRDebugUtils shared].currentLine=65536;
 //BA.debugLineNum = 65536;BA.debugLine="Private Sub Application_Start (Nav As NavigationCo";
[B4IRDebugUtils shared].currentLine=65537;
 //BA.debugLineNum = 65537;BA.debugLine="NavControl = Nav";
self._navcontrol = _nav;
[B4IRDebugUtils shared].currentLine=65538;
 //BA.debugLineNum = 65538;BA.debugLine="Page1.Initialize(\"Page1\")";
[self._page1 Initialize:self.bi :@"Page1"];
[B4IRDebugUtils shared].currentLine=65539;
 //BA.debugLineNum = 65539;BA.debugLine="Page1.Title = \"Page 1\"";
[self._page1 setTitle:@"Page 1"];
[B4IRDebugUtils shared].currentLine=65540;
 //BA.debugLineNum = 65540;BA.debugLine="Page1.RootPanel.Color = Colors.White";
[[self._page1 RootPanel] setColor:[[self.__c Colors] White]];
[B4IRDebugUtils shared].currentLine=65541;
 //BA.debugLineNum = 65541;BA.debugLine="Page1.RootPanel.LoadLayout(\"main\")";
[[self._page1 RootPanel] LoadLayout:@"main" :self.bi];
[B4IRDebugUtils shared].currentLine=65542;
 //BA.debugLineNum = 65542;BA.debugLine="NavControl.ShowPage(Page1)";
[self._navcontrol ShowPage:(UIViewController*)((self._page1).object)];
[B4IRDebugUtils shared].currentLine=65545;
 //BA.debugLineNum = 65545;BA.debugLine="ltbTest1.Initialize(Me, \"ltbTest1\")";
[self._ltbtest1 _initialize:self.bi :self :@"ltbTest1"];
[B4IRDebugUtils shared].currentLine=65546;
 //BA.debugLineNum = 65546;BA.debugLine="ltbTest1.FrontLineColor = Colors.Blue";
[self._ltbtest1 _setfrontlinecolor:[[self.__c Colors] Blue]];
[B4IRDebugUtils shared].currentLine=65547;
 //BA.debugLineNum = 65547;BA.debugLine="End Sub";
return @"";
}
- (NSString*)  _btnchangeproperties_click{
[B4IRDebugUtils shared].currentModule=@"main";
if ([B4IDebug shouldDelegate: @"btnchangeproperties_click"])
	return ((NSString*) [B4IDebug delegate:self.bi :@"btnchangeproperties_click" :nil]);
[B4IRDebugUtils shared].currentLine=327680;
 //BA.debugLineNum = 327680;BA.debugLine="Private Sub btnChangeProperties_Click";
[B4IRDebugUtils shared].currentLine=327681;
 //BA.debugLineNum = 327681;BA.debugLine="ltbTest1.Left = 60dip";
[self._ltbtest1 _setleft:[self.__c DipToCurrent:(int) (60)]];
[B4IRDebugUtils shared].currentLine=327682;
 //BA.debugLineNum = 327682;BA.debugLine="ltbTest1.Width = 250dip";
[self._ltbtest1 _setwidth:[self.__c DipToCurrent:(int) (250)]];
[B4IRDebugUtils shared].currentLine=327683;
 //BA.debugLineNum = 327683;BA.debugLine="ltbTest1.Height = 60dip";
[self._ltbtest1 _setheight:[self.__c DipToCurrent:(int) (60)]];
[B4IRDebugUtils shared].currentLine=327684;
 //BA.debugLineNum = 327684;BA.debugLine="ltbTest1.BackLineColor = Colors.Blue";
[self._ltbtest1 _setbacklinecolor:[[self.__c Colors] Blue]];
[B4IRDebugUtils shared].currentLine=327685;
 //BA.debugLineNum = 327685;BA.debugLine="ltbTest1.FrontLineColor = Colors.Green";
[self._ltbtest1 _setfrontlinecolor:[[self.__c Colors] Green]];
[B4IRDebugUtils shared].currentLine=327686;
 //BA.debugLineNum = 327686;BA.debugLine="ltbTest1.Max = 150";
[self._ltbtest1 _setmax:(int) (150)];
[B4IRDebugUtils shared].currentLine=327687;
 //BA.debugLineNum = 327687;BA.debugLine="ltbTest1.LimitLeft = 20";
[self._ltbtest1 _setlimitleft:(int) (20)];
[B4IRDebugUtils shared].currentLine=327688;
 //BA.debugLineNum = 327688;BA.debugLine="ltbTest1.LimitRight = 120";
[self._ltbtest1 _setlimitright:(int) (120)];
[B4IRDebugUtils shared].currentLine=327689;
 //BA.debugLineNum = 327689;BA.debugLine="End Sub";
return @"";
}
- (NSString*)  _ltbtest_valueschanged:(int) _limitleft :(int) _limitright{
[B4IRDebugUtils shared].currentModule=@"main";
if ([B4IDebug shouldDelegate: @"ltbtest_valueschanged"])
	return ((NSString*) [B4IDebug delegate:self.bi :@"ltbtest_valueschanged::" :@[@(_limitleft),@(_limitright)]]);
[B4IRDebugUtils shared].currentLine=262144;
 //BA.debugLineNum = 262144;BA.debugLine="Sub ltbTest_ValuesChanged(LimitLeft As Int, LimitR";
[B4IRDebugUtils shared].currentLine=262145;
 //BA.debugLineNum = 262145;BA.debugLine="lblLimitLeft.Text = LimitLeft";
[self._lbllimitleft setText:[self.bi NumberToString:@(_limitleft)]];
[B4IRDebugUtils shared].currentLine=262146;
 //BA.debugLineNum = 262146;BA.debugLine="lblLimitRight.Text = LimitRight";
[self._lbllimitright setText:[self.bi NumberToString:@(_limitright)]];
[B4IRDebugUtils shared].currentLine=262147;
 //BA.debugLineNum = 262147;BA.debugLine="End Sub";
return @"";
}
- (NSString*)  _page1_resize:(int) _width :(int) _height{
[B4IRDebugUtils shared].currentModule=@"main";
if ([B4IDebug shouldDelegate: @"page1_resize"])
	return ((NSString*) [B4IDebug delegate:self.bi :@"page1_resize::" :@[@(_width),@(_height)]]);
[B4IRDebugUtils shared].currentLine=131072;
 //BA.debugLineNum = 131072;BA.debugLine="Private Sub Page1_Resize(Width As Int, Height As I";
[B4IRDebugUtils shared].currentLine=131073;
 //BA.debugLineNum = 131073;BA.debugLine="ltbTest1.AddToParent(Page1.RootPanel, 40dip, 100d";
[self._ltbtest1 _addtoparent:[self._page1 RootPanel] :[self.__c DipToCurrent:(int) (40)] :[self.__c DipToCurrent:(int) (100)] :[self.__c DipToCurrent:(int) (240)] :[self.__c DipToCurrent:(int) (30)] :[[self.__c Colors] Red] :[self.__c DipToCurrent:(int) (5)]];
[B4IRDebugUtils shared].currentLine=131074;
 //BA.debugLineNum = 131074;BA.debugLine="lblLimitLeft.Text = ltbTest.LimitLeft";
[self._lbllimitleft setText:[self.bi NumberToString:@([self._ltbtest _limitleft])]];
[B4IRDebugUtils shared].currentLine=131075;
 //BA.debugLineNum = 131075;BA.debugLine="lblLimitRight.Text = ltbTest.LimitRight";
[self._lbllimitright setText:[self.bi NumberToString:@([self._ltbtest _limitright])]];
[B4IRDebugUtils shared].currentLine=131076;
 //BA.debugLineNum = 131076;BA.debugLine="End Sub";
return @"";
}

- (void)initializeStaticModules {
    [[b4i_main new]initializeModule];

}
- (NSString*)  _process_globals{
[B4IRDebugUtils shared].currentModule=@"main";
if ([B4IDebug shouldDelegate: @"process_globals"])
	return ((NSString*) [B4IDebug delegate:self.bi :@"process_globals" :nil]);
[B4IRDebugUtils shared].currentLine=0;
 //BA.debugLineNum = 0;BA.debugLine="Sub Process_Globals";
[B4IRDebugUtils shared].currentLine=3;
 //BA.debugLineNum = 3;BA.debugLine="Public App As Application";
self._app = [B4IApplicationWrapper new];
[B4IRDebugUtils shared].currentLine=4;
 //BA.debugLineNum = 4;BA.debugLine="Public NavControl As NavigationController";
self._navcontrol = [B4INavigationControllerWrapper new];
[B4IRDebugUtils shared].currentLine=5;
 //BA.debugLineNum = 5;BA.debugLine="Private Page1 As Page";
self._page1 = [B4IPage new];
[B4IRDebugUtils shared].currentLine=7;
 //BA.debugLineNum = 7;BA.debugLine="Private ltbTest, ltbTest1 As LimitBar";
self._ltbtest = [b4i_limitbar new];
self._ltbtest1 = [b4i_limitbar new];
[B4IRDebugUtils shared].currentLine=8;
 //BA.debugLineNum = 8;BA.debugLine="Private lblLimitLeft, lblLimitRight As Label";
self._lbllimitleft = [B4ILabelWrapper new];
self._lbllimitright = [B4ILabelWrapper new];
[B4IRDebugUtils shared].currentLine=9;
 //BA.debugLineNum = 9;BA.debugLine="End Sub";
return @"";
}
@end