private void            tsButton_Setup_Click(object aSender, EventArgs aEventArgs)
        {
            int lCount = dataGridView_Records.SelectedRows.Count;

            if (lCount > 0)
            {
                try
                {
                    var lItemName = dataGridView_Records.SelectedRows[0].Cells[0].Value.ToString();
                    using (var lSetupFrom = new AddEditRecordForm(mSnapshot.ItemBrowser,
                                                                  mSnapshot.ItemBrowser.getItemHandleByName(lItemName), mSnapshot.getRecordValue(lItemName)))
                    {
                        lSetupFrom.ShowDialog(this);
                        if (lSetupFrom.DialogResult == DialogResult.OK)
                        {
                            mSnapshot.changeRecord(lItemName, lSetupFrom.ItemName, lSetupFrom.Value);

                            mSelectedItem = lSetupFrom.ItemName;
                            updateForm();
                        }
                    }
                }
                catch (Exception lExc)
                {
                    Log.Error("Error while user was configuring record of snapshot '"
                              + mSnapshot.Name + "'. " + lExc.Message, lExc.ToString());
                    MessageForm.showMessage(lExc.Message, this);
                }
            }
        }
        private void            tsButton_Add_Click(object aSender, EventArgs aEventArgs)
        {
            try
            {
                int lItemHandle = mSnapshot.ItemBrowser.getItemHandleByForm(-1, this);
                if (lItemHandle != -1)
                {
                    object lValue = mSnapshot.ItemBrowser.readItemOrInitValue(lItemHandle);

                    using (var lSetupFrom = new AddEditRecordForm(mSnapshot.ItemBrowser, lItemHandle, lValue))
                    {
                        lSetupFrom.ShowDialog(this);
                        if (lSetupFrom.DialogResult == DialogResult.OK)
                        {
                            lItemHandle = lSetupFrom.ItemHandle;
                            lValue      = lSetupFrom.Value;
                            mSnapshot.addRecord(lItemHandle, lValue);

                            mSelectedItem = mSnapshot.ItemBrowser.getItemNameByHandle(lItemHandle);
                            updateForm();
                        }
                    }
                }
            }
            catch (Exception lExc)
            {
                Log.Error("Error while user was adding new record to snapshot '"
                          + mSnapshot.Name + "'. " + lExc.Message, lExc.ToString());
                MessageForm.showMessage(lExc.Message, this);
            }
        }