void ReleaseDesignerOutlets()
        {
            if (ButtonListBook != null)
            {
                ButtonListBook.Dispose();
                ButtonListBook = null;
            }

            if (ButtonSave != null)
            {
                ButtonSave.Dispose();
                ButtonSave = null;
            }

            if (TextAuthor != null)
            {
                TextAuthor.Dispose();
                TextAuthor = null;
            }

            if (TextGenre != null)
            {
                TextGenre.Dispose();
                TextGenre = null;
            }

            if (TextTitle != null)
            {
                TextTitle.Dispose();
                TextTitle = null;
            }
        }
Esempio n. 2
0
        public string AddNewFolder(string folderName)
        {
            WaitUntilExist(MailFrame);

            Browser.SwitchTo().Frame(MailFrame);

            NavigateToConfiguration();

            WaitUntilExist(SettingsButtonFolderManagement);

            SettingsButtonFolderManagement.Click();

            WaitUntilExist(SettingsButtonAdd);

            SettingsButtonAdd.Click();

            WaitUntilExist(PreferencesFrame);

            Browser.SwitchTo().Frame(PreferencesFrame);

            FolderNameInput.SendKeys(folderName);

            ButtonSave.Click();

            Browser.SwitchTo().ParentFrame();

            HomeButton.Click();

            IsPageLoaded();

            return(FolderList.Text);
        }
        void ReleaseDesignerOutlets()
        {
            if (ButtonSave != null)
            {
                ButtonSave.Dispose();
                ButtonSave = null;
            }

            if (LabelStandardzeit != null)
            {
                LabelStandardzeit.Dispose();
                LabelStandardzeit = null;
            }

            if (PickerDefaultTime != null)
            {
                PickerDefaultTime.Dispose();
                PickerDefaultTime = null;
            }

            if (VersionLabel != null)
            {
                VersionLabel.Dispose();
                VersionLabel = null;
            }
        }
Esempio n. 4
0
 private void ListBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     PictureBox1.Image = Image.FromFile(@"..\..\foto\fotocap.jpg");
     try {
         for (int i = 0; i < lstPerson.Count; i++)
         {
             if ((lstPerson[i].surname + " " + lstPerson[i].name) == ListBox1.SelectedItem.ToString())
             {
                 TextBoxSurname.Text = lstPerson[i].surname;
                 TextBoxName.Text    = lstPerson[i].name;
                 MaskedTBPhone.Text  = lstPerson[i].phone;
                 TextBoxEmail.Text   = lstPerson[i].email;
                 LabelNumber.Text    = lstPerson[i].number.ToString();
                 if (lstPerson[i].picture != "")
                 {
                     PictureBox1.Image    = Image.FromFile(lstPerson[i].picture);
                     PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
                 }
                 ButtonAdd.Hide();
                 ButtonCLear.Hide();
                 ButtonSave.Show();
                 ButtonDell.Show();
                 ButtonCancel.Show();
                 break;
             }
         }
     }
     catch (NullReferenceException) { }
 }
        void ReleaseDesignerOutlets()
        {
            if (ButtonSave != null)
            {
                ButtonSave.Dispose();
                ButtonSave = null;
            }

            if (ButtonThumbDown != null)
            {
                ButtonThumbDown.Dispose();
                ButtonThumbDown = null;
            }

            if (ButtonThumbUp != null)
            {
                ButtonThumbUp.Dispose();
                ButtonThumbUp = null;
            }

            if (LabelSelectPlaceCategory != null)
            {
                LabelSelectPlaceCategory.Dispose();
                LabelSelectPlaceCategory = null;
            }

            if (PickerViewLocationType != null)
            {
                PickerViewLocationType.Dispose();
                PickerViewLocationType = null;
            }
        }
        /// <summary>
        /// Handles the Load event of the Page control.
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/>Instance containing the event data.</param>
        /// <remarks>
        /// Sequence Diagram:<br/>
        ///     <img src="SequenceDiagrams/SD_PrintRoverWeb.Administration.ApplicationRegistration.Page_Load.jpg"/>
        /// </remarks>
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.Params["mc"] == "421")
            {
                ImageHome.Visible = true;
            }

            //if (string.IsNullOrEmpty(HttpContext.Current.Session["UserRole"] as string))
            //if (string.IsNullOrEmpty(Session["UserRole"] as string))
            //{
            //    Response.Redirect("../Web/LogOn.aspx", true);
            //    return;
            //}
            //else if (Session["UserRole"] as string != "admin")
            //{
            //    Response.Redirect("~/Administration/UnAuthorisedAccess.aspx");
            //}

            if (!IsPostBack)
            {
                ProvideRegistrationInfo();
                DisplayRegistrationDetails();
            }
            ButtonSave.Focus();
            LocalizeThisPage();
        }
Esempio n. 7
0
        void ReleaseDesignerOutlets()
        {
            if (ButtonSave != null)
            {
                ButtonSave.Dispose();
                ButtonSave = null;
            }

            if (LabelDosage != null)
            {
                LabelDosage.Dispose();
                LabelDosage = null;
            }

            if (LabelIntevall != null)
            {
                LabelIntevall.Dispose();
                LabelIntevall = null;
            }

            if (LabelName != null)
            {
                LabelName.Dispose();
                LabelName = null;
            }
        }
        private void Window_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.Key == Key.Tab)
            {
                ButtonSave.Focus();
                e.Handled = true;
            }

            if (e.Key == Key.Enter && ButtonSave.IsFocused == false)
            {
                TraversalRequest tRequest      = new TraversalRequest(FocusNavigationDirection.Next);
                UIElement        keyboardFocus = Keyboard.FocusedElement as UIElement;

                if (keyboardFocus != null)
                {
                    keyboardFocus.MoveFocus(tRequest);
                }

                e.Handled = true;
            }
            else if (e.Key == Key.Enter && ButtonSave.IsFocused == true)
            {
                MessageBox.Show("The product has been saved");
                Close();
            }
        }
Esempio n. 9
0
 private void TextInput_KeyDown(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e)
 {
     if (e.Key == Windows.System.VirtualKey.Enter)
     {
         ButtonSave.Focus(FocusState.Programmatic);
     }
 }
Esempio n. 10
0
 private void Form1_Load(object sender, EventArgs e)
 {
     //ButtonSave.Enabled = false;
     //ButtonDell.Enabled = false;
     //ButtonCancel.Enabled = false;
     ButtonSave.Hide();
     ButtonDell.Hide();
     ButtonCancel.Hide();
     ReadText("ankets.txt");
 }
Esempio n. 11
0
        private void ButtonCancel_Click(object sender, EventArgs e)
        {
            ListBox1.ClearSelected();
            CLearFields();
            ButtonAdd.Show();
            ButtonCLear.Show();

            ButtonSave.Hide();
            ButtonDell.Hide();
            ButtonCancel.Hide();
        }
        void ReleaseDesignerOutlets()
        {
            if (ButtonSave != null)
            {
                ButtonSave.Dispose();
                ButtonSave = null;
            }

            if (TextFieldLunch != null)
            {
                TextFieldLunch.Dispose();
                TextFieldLunch = null;
            }
        }
Esempio n. 13
0
        private void ButtonSave_Click(object sender, RoutedEventArgs e)
        {
            // Clicking button doesn't take focus away from TextBasedTimePicker, so their edited value doesn't get committed...
            // Therefore we have to take focus away, and wait for the focus to actually switch
            if (ButtonSave.FocusState == FocusState.Unfocused)
            {
                RoutedEventHandler gotFocus = null;
                gotFocus = delegate
                {
                    ButtonSave.GotFocus -= gotFocus;
                    ViewModel.Save();
                };
                ButtonSave.GotFocus += gotFocus;
                ButtonSave.Focus(FocusState.Programmatic);
                return;
            }

            ViewModel.Save();
        }
 /// <summary>
 /// Handles the Click event of the IBAdd control.
 /// </summary>
 /// <param name="sender">Source of the event.</param>
 /// <param name="e">The <see cref="System.Web.UI.ImageClickEventArgs"/>Instance containing the event data.</param>
 /// <remarks>
 /// Sequence Diagram:<br/>
 ///     <img src="SequenceDiagrams/SD_PrintRoverWeb.Administration.ManageDepartments.IBAdd_Click.jpg"/>
 /// </remarks>
 protected void IBAdd_Click(object sender, ImageClickEventArgs e)
 {
     departmentSelectedValue          = "ADD";
     TextBoxDepartmentName.Text       = TextBoxDescription.Text = "";
     CheckBoxDepartmentActive.Checked = false;
     ButtonSave.Visible               = true;
     ButtonUpdate.Visible             = false;
     TextBoxDepartmentName.ReadOnly   = false;
     divEditUsers.Visible             = false;
     divRequired.Visible              = true;
     PanelAddDepartment.Visible       = true;
     TableDepartments.Visible         = false;
     CheckBoxDepartmentActive.Enabled = true;
     LabelDepartmentName.Visible      = false;
     TextBoxDepartmentName.Visible    = true;
     Image1.Visible           = true;
     HiddenFieldAddEdit.Value = "1";
     ButtonSave.Focus();
     GetDepartments();
 }
Esempio n. 15
0
        private void ButtonDell_Click(object sender, EventArgs e)
        {
            int tem = Convert.ToInt32(LabelNumber.Text);

            for (int i = 0; i < lstPerson.Count; i++)
            {
                if (lstPerson[i].number == tem)
                {
                    lstPerson.RemoveAt(i);
                    ListBox1.Items.RemoveAt(ListBox1.SelectedIndex);
                    CLearFields();
                    ButtonAdd.Show();
                    ButtonCLear.Show();
                    ButtonSave.Hide();
                    ButtonDell.Hide();
                    ButtonCancel.Hide();
                    break;
                }
            }
        }
Esempio n. 16
0
        void ReleaseDesignerOutlets()
        {
            if (ButtonLoad != null)
            {
                ButtonLoad.Dispose();
                ButtonLoad = null;
            }

            if (ButtonSave != null)
            {
                ButtonSave.Dispose();
                ButtonSave = null;
            }

            if (ButtonSearch != null)
            {
                ButtonSearch.Dispose();
                ButtonSearch = null;
            }

            if (MyMap != null)
            {
                MyMap.Dispose();
                MyMap = null;
            }

            if (ProgressBar != null)
            {
                ProgressBar.Dispose();
                ProgressBar = null;
            }

            if (TextFieldQuery != null)
            {
                TextFieldQuery.Dispose();
                TextFieldQuery = null;
            }
        }
Esempio n. 17
0
        void ReleaseDesignerOutlets()
        {
            if (BottomSpaceButtonSave != null)
            {
                BottomSpaceButtonSave.Dispose();
                BottomSpaceButtonSave = null;
            }

            if (ButtonSave != null)
            {
                ButtonSave.Dispose();
                ButtonSave = null;
            }

            if (PickerViewTypes != null)
            {
                PickerViewTypes.Dispose();
                PickerViewTypes = null;
            }

            if (TextFieldDescription != null)
            {
                TextFieldDescription.Dispose();
                TextFieldDescription = null;
            }

            if (TextFieldName != null)
            {
                TextFieldName.Dispose();
                TextFieldName = null;
            }

            if (TextFieldRating != null)
            {
                TextFieldRating.Dispose();
                TextFieldRating = null;
            }
        }
 /// <summary>
 /// Handles the Click event of the IBAdd control.
 /// </summary>
 /// <param name="sender">Source of the event.</param>
 /// <param name="e">The <see cref="System.Web.UI.ImageClickEventArgs"/>Instance containing the event data.</param>
 /// <remarks>
 ///  Sequence Diagram:<br/>
 /// <img src="SequenceDiagrams/SD_PrintRoverWeb.Administration.ManageLanguage.IBAdd_Click.jpg" />
 /// </remarks>
 protected void IBAdd_Click(object sender, ImageClickEventArgs e)
 {
     DropDownListLanguage.Enabled = true;
     PanelAddDepartment.Visible   = true;
     ButtonUpdate.Visible         = false;
     ButtonSave.Visible           = true;
     ProvideLanguageData();
     ProvideLanguages();
     ImageMenuSplitBar.Visible   = true;
     IBAdd.Visible               = false;
     IBEdit.Visible              = false;
     ImageButtonBack.Visible     = true;
     ImageButtonSave.Visible     = true;
     TableCellresetSpilt.Visible = true;
     TableCellReset.Visible      = true;
     //Disable lock and un-lock cells
     tdImageLock.Visible         = false;
     tdImageLockButton.Visible   = false;
     tdImageUnLock.Visible       = false;
     tdImageUnLockButton.Visible = false;
     HiddenFieldAddEdit.Value    = "1";
     ButtonSave.Focus();
 }
Esempio n. 19
0
        private void ButtonSave_Click(object sender, EventArgs e)
        {
            int tem = Convert.ToInt32(LabelNumber.Text);

            for (int i = 0; i < lstPerson.Count; i++)
            {
                if (lstPerson[i].number == tem)
                {
                    if (TextBoxName.Text == "" || TextBoxSurname.Text == "" || TextBoxEmail.Text == "" || MaskedTBPhone.Text == "")
                    {
                        MessageBox.Show("Заполнены не все данные!");
                    }
                    else
                    {
                        lstPerson[i].surname = TextBoxSurname.Text;
                        lstPerson[i].name    = TextBoxName.Text;
                        lstPerson[i].phone   = MaskedTBPhone.Text;
                        lstPerson[i].email   = TextBoxEmail.Text;
                        if (nameFoto != "")
                        {
                            lstPerson[i].picture = nameFoto;
                        }
                        ListBox1.Items[ListBox1.SelectedIndex] = lstPerson[i].surname + " " + lstPerson[i].name;
                        CLearFields();
                        ButtonAdd.Show();
                        ButtonCLear.Show();
                        ButtonSave.Hide();
                        ButtonDell.Hide();
                        ButtonCancel.Hide();
                        break;
                    }
                }
            }
            nameFoto          = "";
            PictureBox1.Image = Image.FromFile(@"..\..\foto\fotocap.jpg");
        }
Esempio n. 20
0
 private void SaveButton_Click()
 {
     ButtonSave?.Invoke();
 }
Esempio n. 21
0
        private void ButtonImport_Click(object sender, EventArgs e)
        {
            OpenFileDialog iDialog = new OpenFileDialog();

            iDialog.Title           = "Select a file to import:";
            iDialog.CheckFileExists = true;
            iDialog.Filter          = "Importable Sprite|*.nslx;*.bmp;*.png*";

            if (iDialog.ShowDialog(this) == System.Windows.Forms.DialogResult.OK & iDialog.FileName != "")
            {
                string extension = Path.GetExtension(iDialog.FileName).Substring(1).ToLower();
                LibraryTree.Nodes.Clear();
                LibraryTree.Nodes.Add("No Sprite Library loaded");
                Library = null;
                Sprite  = null;

                if (extension == "png" || extension == "bmp")
                {
                    try
                    {
                        Sprite        = NSE_Framework.IO.Import.ImportImage(iDialog.FileName);
                        this.Text     = "Import - " + Path.GetFileName(iDialog.FileName);
                        previewBitmap = new Bitmap(Sprite.Width * 8, Sprite.Height * 8, System.Drawing.Imaging.PixelFormat.Format32bppArgb);

                        NSE_Framework.Draw.uDrawSprite(ref previewBitmap, Sprite);
                        Preview.Image = previewBitmap;

                        DrawPalette();
                        LabelSize.Text = "Size: ( " + Sprite.Width.ToString() + ", " + Sprite.Height.ToString() + ")";

                        if (Sprite.Palette.Type == NSE_Framework.Data.SpritePalette.PaletteType.Color16)
                        {
                            LabelColors.Text = "Colors: 16";
                        }
                        else if (Sprite.Palette.Type == NSE_Framework.Data.SpritePalette.PaletteType.Color256)
                        {
                            LabelColors.Text = "Colors: 256";
                        }
                        ButtonSave.Enabled         = true;
                        ComboBoxMode.Enabled       = true;
                        ComboBoxMode.SelectedIndex = 0;
                        ButtonSave.Focus();
                    }
                    catch (Exception ex)
                    {
                        MessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    }
                }
                else if (extension == "nslx")
                {
                    LibraryTree.Nodes.Clear();

                    Library   = NSE_Framework.IO.Import.ImportSpriteLibrary(iDialog.FileName);
                    this.Text = "Import - " + this.Library.Origin;

                    foreach (NSE_Framework.IO.SpriteSet sSet in Library.Sprites)
                    {
                        TreeNode node = new TreeNode(sSet.Name);
                        foreach (NSE_Framework.IO.SpriteData sDat in sSet.SpriteData)
                        {
                            node.Nodes.Add(new TreeNode(sDat.Name));
                        }
                        LibraryTree.Nodes.Add(node);
                    }

                    LibraryTree.SelectedNode   = LibraryTree.Nodes[0].Nodes[0];
                    ButtonSave.Enabled         = true;
                    ComboBoxMode.Enabled       = true;
                    ComboBoxMode.SelectedIndex = 0;
                    ButtonSave.Focus();
                }
            }
        }
 //button save
 public DeliveryAddressPage ClickButtonSave()
 {
     ButtonSave.Click();
     return(new DeliveryAddressPage());
 }
Esempio n. 23
0
 private void Localize()
 {
     ButtonSave.SetTitle(Strings.SAVE, UIControlState.Normal);
 }
Esempio n. 24
0
 private void SaveButton_Click(object sender, RoutedEventArgs e)
 {
     ButtonSave?.Invoke();
 }
Esempio n. 25
0
 public void SaveSetting()
 {
     ButtonSave.Click();
 }
Esempio n. 26
0
 private void Localize()
 {
     Title = Strings.CATEGORY;
     LabelSelectPlaceCategory.Text = Strings.SELECT_PLACE_CATEGORY;
     ButtonSave.SetTitle(Strings.SAVE, UIControlState.Normal);
 }
Esempio n. 27
0
 private void ComboBoxStatus_SelectedIndexChanged(object sender, EventArgs e)
 {
     ButtonSave.Focus();
 }
        /// <summary>
        /// Handles the Load event of the Page control.
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/>Instance containing the event data.</param>
        /// <remarks>
        /// Sequence Diagram:<br/>
        ///     <img src="SequenceDiagrams/SD_PrintRoverWeb.Administration.CardConfiguration.Page_Load.jpg"/>
        /// </remarks>
        protected void Page_Load(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(Session["UserRole"] as string))
            {
                Response.Redirect("../Web/LogOn.aspx", true);
                return;
            }
            else if (Session["UserRole"] as string != "admin")
            {
                Response.Redirect("~/Administration/UnAuthorisedAccess.aspx");
            }

            ButtonSave.Attributes.Add("onClick", "return CheckDDR()");
            ImageButtonSave.Attributes.Add("onClick", "return CheckDDR()");
            LocalizeThisPage();
            if (!IsPostBack)
            {
                BinddropdownValues();
                if (Session["SelectedCardType"] != null)
                {
                    DropDownListCardType.SelectedIndex = DropDownListCardType.Items.IndexOf(DropDownListCardType.Items.FindByValue(Convert.ToString(Session["SelectedCardType"], CultureInfo.CurrentCulture)));
                }
                DisplayCardSettings();
            }

            string displayCardTestingPanel = ConfigurationManager.AppSettings["DisplayCardTestingPanel"];

            if (displayCardTestingPanel.ToLower() == "true")
            {
                PanelTestCardConfiguration.Visible = true;
            }
            else
            {
                PanelTestCardConfiguration.Visible = false;
            }

            CheckBoxEnableFsc.Attributes.Add("onclick", "javascript:EnableandDisableCheckBox()");

            string queryID = Request.Params["cid"];

            if (!string.IsNullOrEmpty(queryID))
            {
                if (queryID == "mdv")
                {
                    Tablecellback.Visible  = true;
                    Tablecellimage.Visible = true;
                    pageResponse           = true;
                }
                else
                {
                    pageResponse = false;
                }
            }
            ButtonSave.Focus();
            LinkButton CardConfiguration = (LinkButton)Master.FindControl("LinkButtonCardConfiguration");

            if (CardConfiguration != null)
            {
                CardConfiguration.CssClass = "linkButtonSelect_Selected";
            }
            string    labelResourceIDs   = "PROXIMITY_CARD";
            Hashtable localizedResources = AppLibrary.Localization.Resources("", Session["selectedCulture"] as string, labelResourceIDs, "", "");

            if (!DropDownListCardType.Items.Contains(new ListItem(localizedResources["L_PROXIMITY_CARD"].ToString(), "PC")))
            {
                BinddropdownValues();
            }
        }