public static void setDispatchAllowedModels() { { SlideMenu withBlock = sl; foreach (DataRow model in (IEnumerable)db.getClearance(userID, "Truck_Dispatch_Clearance").Rows) { if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Inbound"], true, false))) { withBlock.AddSubMenuOption("Dispatch", "Inbound", "Inbound"); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Outbound"], true, false))) { withBlock.AddSubMenuOption("Dispatch", "Outbound", "Outbound"); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Requests"], true, false))) { withBlock.AddSubMenuOption("Dispatch", "Requests", "Requests"); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Carrier_Assignment"], true, false))) { withBlock.AddSubMenuOption("Dispatch", "Carrier Assignment", "Carrier Assignment"); } } } }
public void AcceptAndClose(SlideMenu prevMenu) { AcceptValues(); itemSource.SetValues(items); UIController.instance.TogglePanel(prevMenu); itemSource.Updated(); //OnMenuClosed.Invoke(); }
void Awake() { image = GetComponent <Image>(); slideMenu = GameObject.Find("Select New Tower").GetComponent <SlideMenu>(); backToMenu = GameObject.Find("Back To Menu").gameObject; backToMenu.SetActive(false); NewGameSpeed(); }
void Awake() { image = GetComponent<Image>(); slideMenu = GameObject.Find("Select New Tower").GetComponent<SlideMenu>(); backToMenu = GameObject.Find("Back To Menu").gameObject; backToMenu.SetActive(false); NewGameSpeed(); }
public static void setBillingModels() { userID = My.MyProject.Forms.FrmLoginWindow._userID; { SlideMenu withBlock = sl; foreach (DataRow model in (IEnumerable)db.getClearance(userID, "Billing_Clearance").Rows) { if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Trucking_Reconciliation"], true, false))) { withBlock.AddSubMenuOption("Billing", "Trucking Reconciliation", "Trucking Reconciliation"); } } } }
public static void setContainersAllowedModels() { userID = My.MyProject.Forms.FrmLoginWindow._userID; { SlideMenu withBlock = sl; foreach (DataRow model in (IEnumerable)db.getClearance(userID, "Containers_Clearance").Rows) { if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["MAnage_Container"], true, false))) { withBlock.AddSubMenuOption("Containers", "Container Management", "Container Management"); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Assign_Container"], true, false))) { withBlock.AddSubMenuOption("Containers", "Assign Container", "Assign Container"); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Block_Container"], true, false))) { withBlock.AddSubMenuOption("Containers", "Blocked Containers", "Block Container"); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["CFIA_Labels"], true, false))) { withBlock.AddSubMenuOption("Containers", "Labels", "CFIA Labels"); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["EDI"], true, false))) { withBlock.AddSubMenuOption("Containers", "EDI", "EDI"); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["EDI_Performance_Audit"], true, false))) { withBlock.AddSubMenuOption("Containers", "EDI Performance Audit", "EDI Performance Audit"); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["In/Out_Gate"], true, false))) { withBlock.AddSubMenuOption("Containers", "In/Out Gate", "In/Out Gate"); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Transfer_Container"], true, false))) { withBlock.AddSubMenuOption("Containers", "Transfer Container", "Transfer Container"); } } } }
private void ShutdownClick(object sender, RoutedEventArgs e) { if (shutdownOpen) { shutdownOpen = false; return; } var shutdown = new ShutdownMenu(); shutdownMenu = new SlideMenu(Dock.Top, shutdown.Width) { InnerControl = shutdown }; shutdownOpen = true; }
private void SettingsClick(object sender, RoutedEventArgs e) { if (settingsOpen) { settingsOpen = false; return; } var settingsControl = new SettingsControl(); settingsMenu = new SlideMenu(Dock.Top, settingsControl.Width) { InnerControl = settingsControl }; settingsOpen = true; }
private void LocationClick(object sender, RoutedEventArgs e) { if (locationOpen) { locationOpen = false; return; } var locations = new LocationMenu(); locationMenu = new SlideMenu(Dock.Top, locations.Width) { InnerControl = locations }; locationOpen = true; }
public static void getTimeManagAndReportsAllowedodels() { foreach (DataRow model in (IEnumerable)db.getClearance(userID, "Time_Management_and_Reports_Clearance").Rows) { { SlideMenu withBlock = sl; if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Time_Management"], true, false))) { withBlock.AddSubMenuOption("HR", "Time Management", "Time Management"); getTimeManagementAllowedFunctionalities(); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Time_Reports"], true, false))) { } } } }
public static void setContactsAllowedModels() { foreach (DataRow model in (IEnumerable)db.getClearance(userID, "Contacts_Clearance").Rows) { { SlideMenu withBlock = sl; if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Companies"], true, false))) { withBlock.AddSubMenuOption("Contacts", "Companies", "Companies"); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Pre_Scripts"], true, false))) { withBlock.AddSubMenuOption("Contacts", "Pre Scripts", "Pre Scripts"); } } } }
private static void SetInventoryMngAllowedModules() { userID = My.MyProject.Forms.FrmLoginWindow._userID; { SlideMenu withBlock = sl; foreach (DataRow model in (IEnumerable)db.getClearance(userID, "Inventory_Management_Clearance").Rows) { if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Empty_Bag_Inventory"], true, false))) { withBlock.AddSubMenuOption("Inventory Management", "Empty Bag Inventory", "Epty Bag Inventory"); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Grain_Inventory"], true, false))) { withBlock.AddSubMenuOption("Inventory Management", "Grain Inventory", "Grain Inventory"); } } } }
public static void setMiscellaneousAllowedModels() { userID = My.MyProject.Forms.FrmLoginWindow._userID; { SlideMenu withBlock = sl; foreach (DataRow model in (IEnumerable)db.getClearance(userID, "Miscellaneous_Clearance").Rows) { if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Logs"], true, false))) { withBlock.AddSubMenuOption("Miscellaneous", "Logs", "Logs"); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Truck_Drivers"], true, false))) { withBlock.AddSubMenuOption("Miscellaneous", "Truck Drivers", "TruckDrivers"); } } } }
public override void ViewDidLoad() { base.ViewDidLoad(); var frame = UIScreen.MainScreen.ApplicationFrame; this.View.Frame = frame; this.ScrollView.Frame = this.View.Bounds; this.ScrollView.ContentSize = new CGSize(this.View.Frame.Width, this.View.Bounds.Height); this.ScrollView.Scrolled += ScrollViewDidScroll; var item0 = new MenuItem("Slide Menu", UIImage.FromBundle("Images/a0.png"), (menuItem) => { Console.WriteLine("Item: {0}", menuItem); this.MoveButtonToXY(10, 200); this.ChangeButtonBackground(0); }); var item1 = new MenuItem("Favourite", UIImage.FromBundle("Images/a1.png"), (menuItem) => { Console.WriteLine("Item: {0}", menuItem); this.MoveButtonToXY(10, 150); this.ChangeButtonBackground(1); }); var item2 = new MenuItem("Search", UIImage.FromBundle("Images/a2.png"), (menuItem) => { Console.WriteLine("Item: {0}", menuItem); this.MoveButtonToXY(10, 250); this.ChangeButtonBackground(2); }); item0.Tag = 0; item1.Tag = 1; item2.Tag = 2; this.slideMenu = new SlideMenu(new List <MenuItem> { item0, item1, item2 }, new CGPoint(0f, 0f)); this.View.AddSubview(this.slideMenu); this.MainButton.TouchUpInside += MainButtonPressed; }
public static void setHRAllowedModels() { userID = My.MyProject.Forms.FrmLoginWindow._userID; { SlideMenu withBlock = sl; foreach (DataRow model in (IEnumerable)db.getClearance(userID, "Human_Resources_Clearance").Rows) { if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Employee_Management"], true, false))) { withBlock.AddSubMenuOption("HR", "Employee Management", "Employee Management"); getEmployeeManagementAllowedFunctionalities(); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Time_Management_and_Reports"], true, false))) { getTimeManagAndReportsAllowedodels(); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Shift_Management"], true, false))) { withBlock.AddSubMenuOption("HR", "Shift Management", "Shift Management"); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Safety_and_Risk_Management"], true, false))) { withBlock.AddSubMenuOption("HR", "Safety/Risk Management", "Safety/Risk Management"); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Message_Employee"], false, false))) { My.MyProject.Forms.FrmHomePage.messageEmployeeeTableLayoutPanel.Hide(); canSeeMessages = false; } else { canSeeMessages = true; } } } }
public override void ViewDidLoad() { base.ViewDidLoad (); var frame = UIScreen.MainScreen.ApplicationFrame; this.View.Frame = frame; this.ScrollView.Frame = this.View.Bounds; this.ScrollView.ContentSize = new SizeF (this.View.Frame.Width, this.View.Bounds.Height); this.ScrollView.Scrolled += ScrollViewDidScroll; var item0 = new MenuItem ("Slide Menu", UIImage.FromBundle ("Images/a0.png"), (menuItem) => { Console.WriteLine("Item: {0}", menuItem); this.MoveButtonToXY(10,200); this.ChangeButtonBackground(0); }); var item1 = new MenuItem ("Favourite", UIImage.FromBundle ("Images/a1.png"), (menuItem) => { Console.WriteLine("Item: {0}", menuItem); this.MoveButtonToXY(10,150); this.ChangeButtonBackground(1); }); var item2 = new MenuItem ("Search", UIImage.FromBundle ("Images/a2.png"), (menuItem) => { Console.WriteLine("Item: {0}", menuItem); this.MoveButtonToXY(10,250); this.ChangeButtonBackground(2); }); item0.Tag = 0; item1.Tag = 1; item2.Tag = 2; this.slideMenu = new SlideMenu (new List<MenuItem> { item0, item1, item2 }, new PointF(0f,100f)); this.View.AddSubview (this.slideMenu); this.MainButton.TouchUpInside += MainButtonPressed; }
private static void SetBookingModels() { userID = My.MyProject.Forms.FrmLoginWindow._userID; { SlideMenu withBlock = sl; foreach (DataRow model in (IEnumerable)db.getClearance(userID, "BookingClearance").Rows) { if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["BookingReport"], true, false))) { withBlock.AddSubMenuOption("Bookings", "Bookings Report", "Bookings Report"); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["VesselList"], true, false))) { withBlock.AddSubMenuOption("Bookings", "Vessel", "Vessel"); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["VesselVoyageList"], true, false))) { withBlock.AddSubMenuOption("Bookings", "Vessel Voyage", "Vessel Voyage"); } } } }
/// <summary> /// Make some visual changes of current page through navigating process (hide side menu or smt...) /// </summary> public void ApplyVisualChangesWhileNavigating() { SlideMenu.HideWithoutAnimations(); }
private void setMenuComponents(SlideMenu slideMenu, GameObject hit){ slideMenu.clicked = new Vector2 (hit.transform.position.x, hit.transform.position.y); Debug.Log (slideMenu.clicked); }
public static void getClearedModels(FrmParentScreen parentForm) { sl = parentForm.SlideMenu1; My.MyProject.Forms.FrmEmployeeManagementHP.firstLoad = false; userID = My.MyProject.Forms.FrmLoginWindow._userID; { SlideMenu withBlock = (SlideMenu)sl; foreach (DataRow model in db.getClearance(userID, "Main_Menu_Clearance").Rows) { if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Home_Page"], true, false))) { withBlock.AddMainMenuOption("Home", "Home", parentForm.MainMenuIconsImageList.Images[0]); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Bookings"], true, false))) { withBlock.AddMainMenuOption("Bookings", "Bookings", parentForm.MainMenuIconsImageList.Images[6]); SetBookingModels(); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Containers"], true, false))) { withBlock.AddMainMenuOption("Containers", "Containers", parentForm.MainMenuIconsImageList.Images[1]); setContainersAllowedModels(); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Contacts"], true, false))) { withBlock.AddMainMenuOption("Contacts", "Contacts", parentForm.MainMenuIconsImageList.Images[3]); setContactsAllowedModels(); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Human_Resources"], true, false))) { withBlock.AddMainMenuOption("Human Resources", "HR", parentForm.MainMenuIconsImageList.Images[4]); setHRAllowedModels(); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Inbound_Cargo"], true, false))) { withBlock.AddMainMenuOption("Inbound Cargo", "Inbound Cargo", parentForm.MainMenuIconsImageList.Images[5]); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Truck_Dispatch"], true, false))) { withBlock.AddMainMenuOption("Truck Dispatch", "Dispatch", parentForm.MainMenuIconsImageList.Images[8]); setDispatchAllowedModels(); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Billing"], true, false))) { withBlock.AddMainMenuOption("Billing", "Billing", parentForm.MainMenuIconsImageList.Images[7]); setBillingModels(); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Miscellaneous"], true, false))) { withBlock.AddMainMenuOption("Miscellaneous", "Miscellaneous", parentForm.MainMenuIconsImageList.Images[9]); setMiscellaneousAllowedModels(); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Inventory_Management"], true, false))) { withBlock.AddMainMenuOption("Inventory Management", "Inventory Management", parentForm.MainMenuIconsImageList.Images[11]); SetInventoryMngAllowedModules(); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Time_Tracker"], true, false))) { withBlock.AddMainMenuOption("Clock In/Out", "Clock In/Out", parentForm.MainMenuIconsImageList.Images[10]); } if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(model["Notifications"], false, false))) { NotificationCenter1.Hide(); canSeeNotificationas = false; } else { My.MyProject.Forms.FrmHomePage.actionComboBox1.SelectedIndex = 0; My.MyProject.Forms.FrmHomePage.typeComboBox.SelectedIndex = 0; getNotifications(Conversions.ToString(My.MyProject.Forms.FrmHomePage.actionComboBox1.SelectedItem), Conversions.ToString(My.MyProject.Forms.FrmHomePage.typeComboBox.SelectedItem), My.MyProject.Forms.FrmHomePage); firstLoad = false; canSeeNotificationas = true; } } withBlock.PublishSlideMenu(); } }
public void Init() { _slideMenu = SlideMenu.Instantiate(Resources.Load <SlideMenu>("Misc/SlideMenu/SlideMenu")); }
public async override void ViewDidLoad() { base.ViewDidLoad(); var item0 = new MenuItem("Cerrar Sesion", UIImage.FromBundle("Images/a0.png"), (menuItem) => { funciones.SalirSesion(this); }); item0.Tag = 0; var item1 = new MenuItem("Cambiar Password", UIImage.FromBundle("Images/a0.png"), (menuItem) => { cambioPass viewcam = new cambioPass(); this.NavigationController.PushViewController(viewcam, false); UIView.BeginAnimations(null); UIView.SetAnimationDuration(0.7); UIView.SetAnimationTransition(UIViewAnimationTransition.FlipFromRight, NavigationController.View, true); UIView.CommitAnimations(); sldmnu.ToggleMenu(); sldmnu.Hidden = true; blnmenuactivo = false; }); item1.Tag = 1; sldmnu = new SlideMenu(new List <MenuItem> { item0, item1 }, new CoreGraphics.CGPoint(0, 110)); sldmnu.AutosizesSubviews = true; this.View.AddSubview(sldmnu); btnCerrarSesion.TouchUpInside += delegate { if (!blnmenuactivo) { sldmnu.Hidden = false; sldmnu.ToggleMenu(); blnmenuactivo = true; } else { sldmnu.ToggleMenu(); sldmnu.Hidden = true; blnmenuactivo = false; } }; btnMaquinaria.TouchUpInside += delegate { MaquinasController viewmaq = new MaquinasController(); this.NavigationController.PushViewController(viewmaq, false); UIView.BeginAnimations(null); UIView.SetAnimationDuration(0.7); UIView.SetAnimationTransition(UIViewAnimationTransition.FlipFromRight, NavigationController.View, true); UIView.CommitAnimations(); }; btnProduccion.TouchUpInside += delegate { FiltroProduccionController viewprod = new FiltroProduccionController(); viewprod.Title = "Produccion"; this.NavigationController.PushViewController(viewprod, false); UIView.BeginAnimations(null); UIView.SetAnimationDuration(0.7); UIView.SetAnimationTransition(UIViewAnimationTransition.FlipFromRight, NavigationController.View, true); UIView.CommitAnimations(); }; btnCtrlObra.TouchUpInside += delegate { CtrlObra viewctrlobra = new CtrlObra(); viewctrlobra.Title = "Control de Obra"; this.NavigationController.PushViewController(viewctrlobra, false); UIView.BeginAnimations(null); UIView.SetAnimationDuration(0.7); UIView.SetAnimationTransition(UIViewAnimationTransition.FlipFromRight, NavigationController.View, true); UIView.CommitAnimations(); }; /*if (strusuario.ToLower().Equals("fermin")) * { * Consts.idusuarioapp = "1"; * Consts.nombreusuarioapp = "Fermin Mojica Araujo"; * Consts.inicialesusuarioapp = "FM"; * } * else if (strusuario.ToLower().Equals("evelyne")) { * Consts.idusuarioapp = "2"; * Consts.nombreusuarioapp = "Evelyne"; * Consts.inicialesusuarioapp = "E"; * }else if (strusuario.ToLower().Equals("enith")) * { * Consts.idusuarioapp = "3"; * Consts.nombreusuarioapp = "Enith"; * Consts.inicialesusuarioapp = "EN"; * }else * { * Consts.idusuarioapp = "4"; * Consts.nombreusuarioapp = "Gerardo Javier Gamez Vazquez"; * Consts.inicialesusuarioapp = "GG"; * }*/ Boolean resp = await TraeUsuario(); if (!resp) { this.NavigationController.PopToRootViewController(true); } else { loadPop.Hide(); } }
public void TogglePanel(SlideMenu mPanel) { CloseAllMenuPanels(); mPanel.Toggle(); }
public CharacterIconCreatingSystem(Contexts contexts, SlideMenu characterSelectionList) : base(contexts.unit) { _characterSelectionList = characterSelectionList; }