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
 //dbGyorokEntities db;
 public printService(ServiceSum sw, servicePrintType printType)
 {
     pType = printType;
     serviceToPrint = sw;
     Printing();
 }