Exemple #1
0
        public void GetDatas(string dates)
        {
            string message_to_send = "getbevetelNC" + dates + ";" + UserData.GetInstance().Database_ID;
            string response        = Server_connection.GetInstance().SendMessageToServer(message_to_send, true);

            MessageBox.Show(response);
            List <int> napibe = new List <int>();

            if (response == "NoData")
            {
                MessageBox.Show("There were no transactions on these days");
            }
            else if (response != "Error")
            {
                response = response.Remove(response.Length - 1);
                string datesgive = "";
                foreach (var item in response.Split('?'))
                {
                    napibe.Add(Convert.ToInt32(item.Split(';')[1]));
                    datesgive += item.Split(';')[0] + ";";
                }

                datesgive = datesgive.Substring(0, datesgive.Length - 1);
                SeriesAddN(napibe, datesgive);

                this.Show();
            }
            else
            {
                MessageBox.Show("Something went wrond! Please try again!");
                PickDate pd = new PickDate();
                pd.Show();
            }
        }
Exemple #2
0
        private void Button_Click_3(object sender, RoutedEventArgs e)
        {
            PickDate pd = new PickDate();

            pd.Show();
        }