Exemple #1
0
        public ServiceSum_ViewModel()
        {
            if (!this.IsInDesignMode)
            {
                selectedWorksheet              = new ServiceSum();
                selectedWorksheet.isPaid       = false;
                selectedWorksheet.inQuotMode   = false;
                selectedWorksheet.quotAccepted = false;
                searchCode   = string.Empty;
                searchYear   = DateTime.Now.Year.ToString();
                searchName   = string.Empty;
                searchDevice = string.Empty;
                RefreshServiceList();
                mustSave = false;

                AppMessages.ServiceGroupClosed.Register(this, s => RefreshServiceList());
                AppMessages.ServiceWorksheetsChanged.Register(this, rc => RefreshServiceList());
                AppMessages.PartsChanged.Register(this, s => RefreshParts());
            }
            else
            {
                mustSave        = true;
                serviceFinished = true;
            }
        }
Exemple #2
0
        static void Main(string[] args)
        {
            Data       data    = new Data();
            ServiceSum service = new ServiceSum();

            int a = data.Input("Enter a: ");
            int b = data.Input("Enter b: ");

            int sum = service.Calculate(a, b);

            data.Print("Result: ");
            Console.WriteLine(sum);
        }
Exemple #3
0
        //dbGyorokEntities db;

        public printService(ServiceSum sw, servicePrintType printType)
        {
            pType          = printType;
            serviceToPrint = sw;
            Printing();
        }