Ejemplo n.º 1
0
 public static Form FetchByShortName(string shortName)
 {
     FormCollection forms = new FormCollection().Where(Form.Columns.Shortname, shortName).Load();
     if (forms.Count() == 0)
         return null;
     return forms.First<Form>();
 }
Ejemplo n.º 2
0
        private void KioskBase_Loaded(object sender, RoutedEventArgs e)
        {
            if (FormCollection.Count() > 0 && _FormHolder != null)
            {
                for (int i = 0; i < FormCollection.Count; i++)
                {
                    if (i == 0)
                    {
                        FormCollection[i].kioskForm.Visibility = Visibility.Visible;
                    }
                    else
                    {
                        FormCollection[i].kioskForm.Visibility = Visibility.Hidden;
                    }

                    _FormHolder.Children.Add(FormCollection[i].kioskForm);
                }
            }
        }
Ejemplo n.º 3
0
        private void GoToForm(int FromIndex, int ToIndex, object sendItem, TimeSpan Sleep)
        {
            if (FormCollection.Count() > 0)
            {
                UIElementInfo _FromItem = FormCollection.Find(f => f.Key == FromIndex);

                UIElementInfo _ToItem = FormCollection.Find(f => f.Key == ToIndex);

                if (_FromItem != null && _ToItem != null)
                {
                    _ToItem.kioskForm.Visibility = Visibility.Visible;
                    _ToItem.kioskForm.OpenForm(FromIndex, sendItem);

                    System.Threading.Thread.Sleep(Sleep);

                    _FromItem.kioskForm.Visibility = Visibility.Hidden;
                    _FromItem.kioskForm.CloseForm();
                }
            }
        }