Esempio n. 1
0
        private async void SaveMeasurement()
        {
            IRestDataMapper mapper = containerExtension.Resolve <IRestDataMapper>();

            if (SelectedMeasure.IsValidUnit())
            {
                Unit b = await ItemRestService.CreateUnitAsync(mapper, SelectedMeasure);

                if (b.id > 0)
                {
                    _ = ShowMessageDialg("New Unit Creation", "Measurement Created Successfully", MsgDialogType.infor);
                    RizeSyncEvent();
                    Initialize();
                }
                else
                {
                    _ = ShowMessageDialg("New Unit Creation", "Can't Save Measurement", MsgDialogType.error);
                    return;
                }
            }
            else
            {
                _ = ShowMessageDialg("New Unit Creation", "Invalid Unit Details or Already Exist Unit", MsgDialogType.warrning);
                return;
            }
        }
Esempio n. 2
0
        private async void NewMeasurement()
        {
            aggregator.GetEvent <UIElementFocusEvent>().Publish("");
            await Task.Delay(500);

            SelectedMeasure = SelectedMeasure.CreateNewUnit();
        }
 public void ClearModel()
 {
     SelectedPart = null;
     SelectedMeasure.Clear();
     SelectedChord.Clear();
     SelectedNote.Clear();
     SelectedEffect = null;
 }
        public void Clear()
        {
            SelectedPart = null;
            SelectedMeasure.Clear();
            SelectedChord.Clear();
            SelectedNote.Clear();
            SelectedEffect = null;

            Position   = null;
            String     = null;
            Fret       = null;
            BendAmount = null;
            Returns    = null;
            Wide       = null;
            Legato     = null;

            Name       = null;
            Artist     = null;
            Album      = null;
            Instrument = null;
            StringNum  = null;
        }