private void OnEditResource(object sender, EventArgs e)
        {
            Resource resource = schedulerControl1.SelectedResource;

            using (ResourceForm form = new ResourceForm(resource, this.schedulerStorage1)) {
                form.ShowDialog(this);
            }
        }
        private void OnAddResource(object sender, EventArgs e)
        {
            Resource resource = schedulerStorage1.CreateResource(-1);

            using (ResourceForm form = new ResourceForm(resource, schedulerStorage1)) {
                if (form.ShowDialog(this) == DialogResult.OK)
                {
                    schedulerStorage1.Resources.Add(resource);
                    schedulerStorage1.RefreshData();
                    ScrollToLastResource();
                }
                else
                {
                    resource.Dispose();
                }
            }
        }