Exemple #1
0
 private void saveInformationToWidget()
 {
     enterSingleDataFormSilverlight.EnterSingleDataForm.DataType = (DataType)listTypes.SelectedIndex;
     enterSingleDataFormSilverlight.ChangeTitle(textBoxTitle.Text.Trim());
     enterSingleDataFormSilverlight.EnterSingleDataForm.DataName        = textBoxName.Text.Trim();
     enterSingleDataFormSilverlight.EnterSingleDataForm.DescriptiveText = textBoxDescription.Text.Trim();
 }
Exemple #2
0
 private void buttonDataInput_Clicked(object sender, EventArgs e)
 {
     try
     {
         isMakeConnectionAction = false;
         EnterSingleDataFormSilverlight singleDataSilverlight = new EnterSingleDataFormSilverlight();
         singleDataSilverlight.ChangeTitle(SilverlightVisualDesigners.Properties.Resources.EnterSingleDataFormName + " " + numberOfForms);
         numberOfForms++;
         Builder(singleDataSilverlight);
         serviceDocument.AddWidget(singleDataSilverlight.EnterSingleDataForm);
     }
     catch (NullReferenceException error)
     {
         Dialog.ShowErrorDialog(SilverlightVisualDesigners.Properties.Resources.UnhandledError, error.Message, this.LayoutRoot);
     }
     catch (Exception error)
     {
         Dialog.ShowErrorDialog(SilverlightVisualDesigners.Properties.Resources.SaveError, error.Message, this.LayoutRoot);
     }
 }