Exemple #1
0
        public void onClickAddFields(object sender, EventArgs e)
        {
            DataPair dataPair = new DataPair(0, "", "");

            dataPair.setNew();
            dataPair.Value.Text              = "";
            dataPair.Value.Placeholder       = "Index here";
            dataPair.Value.FontSize          = Device.GetNamedSize(NamedSize.Medium, typeof(Label));
            dataPair.Value.VerticalOptions   = LayoutOptions.CenterAndExpand;
            dataPair.Value.HorizontalOptions = LayoutOptions.StartAndExpand;
            dataPair.Index.Text              = "";
            dataPair.Index.Placeholder       = "Value here";
            dataPair.Index.FontSize          = Device.GetNamedSize(NamedSize.Medium, typeof(Label));
            dataPair.Index.VerticalOptions   = LayoutOptions.CenterAndExpand;
            dataPair.Index.HorizontalOptions = LayoutOptions.EndAndExpand;
            ViewCell    viewCell    = new ViewCell();
            StackLayout stackLayout = new StackLayout
            {
                Orientation = StackOrientation.Horizontal
            };
            List <View> list = new List <View>();

            list.Add(dataPair.Value);
            list.Add(dataPair.Index);
            GridFiller.rapidFillPremadeObjects(list, TSection, new bool[] { true, true });
            this.entryDict.Add(dataPair);
        }
Exemple #2
0
        public void onClickAddFields(object sender, EventArgs e)
        {
            DataPair dataPair = new DataPair(0, "", "");

            dataPair.setNew();
            dataPair.Value.Text = "";
            dataPair.Index.Text = "";
            List <UIElement> list = new List <UIElement>()
            {
                dataPair.Index, dataPair.Value
            };

            GridFiller.rapidFillPremadeObjects(list, MainGrid, new bool[] { true, true });
            dp.Add(dataPair);
        }
        public void onClickAddFields(object sender, RoutedEventArgs e)
        {
            DataPair dataPair = new DataPair(0, "", "");

            dataPair.setNew();
            dataPair.Value.Text    = "";
            dataPair.Value.ToolTip = "Index here";
            dataPair.Index.Text    = "";
            dataPair.Index.ToolTip = "Value here";
            GridFiller.rapidFillPremadeObjects(new List <UIElement>()
            {
                dataPair.Index, dataPair.Value
            }, mainGrid, new bool[] { true, true });
            this.entryDict.Add(dataPair);
        }
        public void onClickAddPrefilledFieldsQ(object sender, EventArgs e)
        {
            DataPair dataPair = new DataPair(0, "", "");

            dataPair.setNew();
            dataPair.Index.Text        = PriceGuidecombo.SelectedItem.ToString();
            dataPair.Index.Placeholder = "Item";
            dataPair.Value.Text        = prices[PriceGuidecombo.SelectedIndex];
            dataPair.Value.Placeholder = "Amount";
            List <View> list = new List <View>()
            {
                dataPair.Index, dataPair.Value
            };

            GridFiller.rapidFillPremadeObjects(list, quoteStack, new bool[] { true, true });
            entryDictQ.Add(dataPair);
        }
        public void onClickAddFields(object sender, EventArgs e)
        {
            DataPair dataPair = new DataPair(0, "", "");

            dataPair.setNew();
            dataPair.Value.Text        = "";
            dataPair.Value.Placeholder = "Index here";
            dataPair.Index.Text        = "";
            dataPair.Index.Placeholder = "Value here";
            List <View> list = new List <View>()
            {
                dataPair.Index, dataPair.Value
            };

            GridFiller.rapidFillPremadeObjects(list, bodyGrid, new bool[] { true, true });
            entryDict.Add(dataPair);
        }
Exemple #6
0
        public void onClickAddPrefilledFieldsQ(object sender, RoutedEventArgs e)
        {
            DataPair dataPair = new DataPair(0, "", "");

            dataPair.setNew();
            dataPair.Index.Text    = PriceGuidecombo.SelectedItem.ToString();
            dataPair.Index.ToolTip = "Item";
            dataPair.Value.Text    = prices[PriceGuidecombo.SelectedIndex];
            dataPair.Value.ToolTip = "Amount";
            List <UIElement> list = new List <UIElement>()
            {
                dataPair.Index, dataPair.Value
            };

            int[] i = new int[] { 3, 3 };
            GridFiller.rapidFillSpacedPremadeObjects(list, quoteStack, i, new bool[] { true, true });
            entryDictQ.Add(dataPair);
        }
        public void onClickAddFields(object sender, EventArgs e)
        {
            DataPair dataPair = new DataPair(0, "", "");

            dataPair.setNew();
            dataPair.Value.Text        = "";
            dataPair.Value.Placeholder = "Index here";
            dataPair.Index.Text        = "";
            dataPair.Index.Placeholder = "Value here";
            StackLayout stackLayout = new StackLayout
            {
                Orientation = StackOrientation.Horizontal
            };

            stackLayout.Children.Add(dataPair.Index);
            stackLayout.Children.Add(dataPair.Value);
            BodyGrid.Children.Add(stackLayout);
            entryDict.Add(dataPair);
        }
Exemple #8
0
        public void onClickAddFields(object sender, RoutedEventArgs e)
        {
            DataPair dataPair = new DataPair(0, "", "");

            dataPair.setNew();
            dataPair.Value.Text    = "";
            dataPair.Value.ToolTip = "Index here";
            dataPair.Value.Width   = ClientData.mainFrame.Width * 0.7 - 10;
            dataPair.Index.Text    = "";
            dataPair.Index.ToolTip = "Value here";
            dataPair.Index.Width   = ClientData.mainFrame.Width * 0.3 - 10;
            StackPanel stackLayout = new StackPanel
            {
                Orientation = Orientation.Horizontal
            };

            stackLayout.Children.Add(dataPair.Index);
            stackLayout.Children.Add(dataPair.Value);
            TSection.Children.Add(stackLayout);
            entryDict.Add(dataPair);
        }
Exemple #9
0
        public void onClickAddFields(object sender, RoutedEventArgs e)
        {
            DataPair dataPair = new DataPair(0, "", "");

            dataPair.setNew();
            dataPair.Value.Text    = "";
            dataPair.Value.ToolTip = "Index here";
            dataPair.Index.Text    = "";
            dataPair.Index.ToolTip = "Value here";

            List <UIElement> list = new List <UIElement>()
            {
                dataPair.Index, dataPair.Value
            };

            int[] i = new int[] { 2, 4 };
            GridFiller.rapidFillSpacedPremadeObjects(list, bottomStack, i, new bool[] { true, true });
            entryDictQ.Add(dataPair);
            entryDict.Add(dataPair);
            Button x = (Button)sender;

            if (x != row)
            {
                if (x == sig)
                {
                    dataPair.Index.Text = "Signature";
                    dataPair.Value.Text = "True";
                }
                if (x == fie)
                {
                    dataPair.Index.Text = "Deposit Received";
                    dataPair.Value.Text = "True";
                }
                if (x == met)
                {
                    dataPair.Index.Text = "Payment Method";
                }
            }
        }