コード例 #1
0
        private void BtnAdd_Click(object sender, RoutedEventArgs e)
        {
            CallCentarViewModel CallCentar = new CallCentarViewModel();

            CallCentar.Identifier = Guid.NewGuid();

            CallCentar_AddEdit addEditForm = new CallCentar_AddEdit(CallCentar, true);

            addEditForm.CallCentarCreatedUpdated += new CallCentarHandler(SyncData);
            FlyoutHelper.OpenFlyout(this, ((string)Application.Current.FindResource("CallCentar")), 95, addEditForm);
        }
コード例 #2
0
        private void BtnEdit_Click(object sender, RoutedEventArgs e)
        {
            if (CurrentCallCentar == null)
            {
                MainWindow.WarningMessage = ((string)Application.Current.FindResource("Morate_odabrati_popust_za_izmenuUzvičnik"));
                return;
            }

            CallCentar_AddEdit addEditForm = new CallCentar_AddEdit(CurrentCallCentar, false);

            addEditForm.CallCentarCreatedUpdated += new CallCentarHandler(SyncData);
            FlyoutHelper.OpenFlyout(this, ((string)Application.Current.FindResource("CallCentar")), 95, addEditForm);
        }