Пример #1
0
        /**********************************************************************************************//**
        * Event handler. Called by Button_Save for click events.
        *
        * \author  Ilan Hindy
        * \date    29/09/2016
        *
        * \param   sender  Source of the event.
        * \param   e       Routed event information.
        *
        **************************************************************************************************/

        private void Button_Save_Click(object sender, RoutedEventArgs e)
        {
            if (!EditableCheck())
            {
                return;
            }
            TypesUtility.CopyList(list, listForResetToSaved);
            ListBox_Elements.UpdateLayout();
            CustomizedMessageBox.Show("Finished Saving", "List Input Message", Icons.Success);
        }
Пример #2
0
        /**********************************************************************************************//**
        * Event handler. Called by Button_ResetToSaved for click events.
        *
        * \author  Ilan Hindy
        * \date    29/09/2016
        *
        * \param   sender  Source of the event.
        * \param   e       Routed event information.
        *
        **************************************************************************************************/

        private void Button_ResetToSaved_Click(object sender, RoutedEventArgs e)
        {
            if (!EditableCheck())
            {
                return;
            }
            TypesUtility.CopyList(listForResetToSaved, list);
            FillListBox(list, IndexCreatingOperation.Start);
            ListBox_Elements.UpdateLayout();
            CustomizedMessageBox.Show("Finished Reset to Saved", "List Input Message", Icons.Success);
        }