SchedulerMultipleResourcesEditDialog
This commit is contained in:
Родитель
601b4fcd2c
Коммит
9ef810977b
|
@ -0,0 +1,26 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||
# Visual Studio 2008
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SchedulerMultipleResourcesEditDialog", "SchedulerMultipleResourcesEditDialog\SchedulerMultipleResourcesEditDialog.csproj", "{6CD18A44-B25C-4BFC-AC2C-2DF02FD39EEE}"
|
||||
EndProject
|
||||
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "SchedulerMultipleResourcesEditDialogVB", "SchedulerMultipleResourcesEditDialogVB\SchedulerMultipleResourcesEditDialogVB.vbproj", "{F6323CDF-1862-46A7-AB9D-ED4D6AF23782}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{6CD18A44-B25C-4BFC-AC2C-2DF02FD39EEE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{6CD18A44-B25C-4BFC-AC2C-2DF02FD39EEE}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{6CD18A44-B25C-4BFC-AC2C-2DF02FD39EEE}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6CD18A44-B25C-4BFC-AC2C-2DF02FD39EEE}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{F6323CDF-1862-46A7-AB9D-ED4D6AF23782}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{F6323CDF-1862-46A7-AB9D-ED4D6AF23782}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{F6323CDF-1862-46A7-AB9D-ED4D6AF23782}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F6323CDF-1862-46A7-AB9D-ED4D6AF23782}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
94
Scheduler/SchedulerMultipleResourcesEditDialog/SchedulerMultipleResourcesEditDialog/Form1.Designer.cs
сгенерированный
Normal file
94
Scheduler/SchedulerMultipleResourcesEditDialog/SchedulerMultipleResourcesEditDialog/Form1.Designer.cs
сгенерированный
Normal file
|
@ -0,0 +1,94 @@
|
|||
namespace SchedulerMultipleResourcesEditDialog
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
Telerik.WinControls.UI.DateTimeInterval dateTimeInterval1 = new Telerik.WinControls.UI.DateTimeInterval();
|
||||
this.radScheduler1 = new Telerik.WinControls.UI.RadScheduler();
|
||||
this.radSchedulerNavigator1 = new Telerik.WinControls.UI.RadSchedulerNavigator();
|
||||
((System.ComponentModel.ISupportInitialize)(this.radScheduler1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.radSchedulerNavigator1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// radScheduler1
|
||||
//
|
||||
dateTimeInterval1.End = new System.DateTime(((long)(0)));
|
||||
dateTimeInterval1.Start = new System.DateTime(((long)(0)));
|
||||
this.radScheduler1.AccessibleInterval = dateTimeInterval1;
|
||||
this.radScheduler1.AppointmentTitleFormat = null;
|
||||
this.radScheduler1.Culture = new System.Globalization.CultureInfo("en-US");
|
||||
this.radScheduler1.DataSource = null;
|
||||
this.radScheduler1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.radScheduler1.GroupType = Telerik.WinControls.UI.GroupType.None;
|
||||
this.radScheduler1.HeaderFormat = "dd dddd";
|
||||
this.radScheduler1.Location = new System.Drawing.Point(0, 77);
|
||||
this.radScheduler1.Name = "radScheduler1";
|
||||
this.radScheduler1.Size = new System.Drawing.Size(587, 368);
|
||||
this.radScheduler1.TabIndex = 0;
|
||||
this.radScheduler1.Text = "radScheduler1";
|
||||
this.radScheduler1.AppointmentEditDialogShowing += new System.EventHandler<Telerik.WinControls.UI.AppointmentEditDialogShowingEventArgs>(this.radScheduler1_AppointmentEditDialogShowing);
|
||||
//
|
||||
// radSchedulerNavigator1
|
||||
//
|
||||
this.radSchedulerNavigator1.AssociatedScheduler = null;
|
||||
this.radSchedulerNavigator1.DateFormat = "yyyy/MM/dd";
|
||||
this.radSchedulerNavigator1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.radSchedulerNavigator1.Location = new System.Drawing.Point(0, 0);
|
||||
this.radSchedulerNavigator1.Name = "radSchedulerNavigator1";
|
||||
this.radSchedulerNavigator1.NavigationStepType = Telerik.WinControls.UI.NavigationStepTypes.Day;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.radSchedulerNavigator1.RootElement.StretchVertically = false;
|
||||
this.radSchedulerNavigator1.Size = new System.Drawing.Size(587, 77);
|
||||
this.radSchedulerNavigator1.TabIndex = 1;
|
||||
this.radSchedulerNavigator1.Text = "radSchedulerNavigator1";
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(587, 445);
|
||||
this.Controls.Add(this.radScheduler1);
|
||||
this.Controls.Add(this.radSchedulerNavigator1);
|
||||
this.Name = "Form1";
|
||||
this.Text = "Form1";
|
||||
((System.ComponentModel.ISupportInitialize)(this.radScheduler1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.radSchedulerNavigator1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private Telerik.WinControls.UI.RadScheduler radScheduler1;
|
||||
private Telerik.WinControls.UI.RadSchedulerNavigator radSchedulerNavigator1;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Telerik.WinControls.UI;
|
||||
|
||||
namespace SchedulerMultipleResourcesEditDialog
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
Color[] colors = new Color[]{Color.LightBlue, Color.LightGreen, Color.LightYellow,
|
||||
Color.Red, Color.Orange, Color.Pink, Color.Purple, Color.Peru, Color.PowderBlue};
|
||||
|
||||
string[] names = new string[]{"Alan Smith", "Anne Dodsworth",
|
||||
"Boyan Mastoni", "Richard Duncan", "Maria Shnaider"};
|
||||
|
||||
for (int i = 0; i < names.Length; i++)
|
||||
{
|
||||
Resource resource = new Resource();
|
||||
resource.Id = new EventId(i);
|
||||
resource.Name = names[i];
|
||||
resource.Color = colors[i];
|
||||
|
||||
this.radScheduler1.Resources.Add(resource);
|
||||
}
|
||||
|
||||
radScheduler1.GroupType = GroupType.Resource;
|
||||
}
|
||||
|
||||
private void radScheduler1_AppointmentEditDialogShowing(object sender, AppointmentEditDialogShowingEventArgs e)
|
||||
{
|
||||
e.AppointmentEditDialog = new MultipleResourcesDialog();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,120 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
|
@ -0,0 +1,299 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Telerik.WinControls.UI.Scheduler.Dialogs;
|
||||
using Telerik.WinControls.UI;
|
||||
|
||||
namespace SchedulerMultipleResourcesEditDialog
|
||||
{
|
||||
public class MultipleResourcesDialog : EditAppointmentDialog
|
||||
{
|
||||
private Telerik.WinControls.UI.RadListControl listResources;
|
||||
|
||||
public MultipleResourcesDialog()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
protected override void LoadSettingsFromEvent(IEvent sourceEvent)
|
||||
{
|
||||
base.LoadSettingsFromEvent(sourceEvent);
|
||||
|
||||
if (sourceEvent.ResourceId != null)
|
||||
{
|
||||
foreach (RadListDataItem item in this.listResources.Items)
|
||||
{
|
||||
if (sourceEvent.ResourceIds.Contains(item.Value as EventId))
|
||||
{
|
||||
item.Selected = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
item.Selected = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (this.schedulerData.GroupType == GroupType.None && sourceEvent.ResourceIds.Count > 1)
|
||||
{
|
||||
this.listResources.SelectedIndex = 1;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
protected override void LoadResources()
|
||||
{
|
||||
base.LoadResources();
|
||||
|
||||
if (this.schedulerData == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
ISchedulerStorage<IResource> resourceStorage = this.schedulerData.GetResourceStorage();
|
||||
this.listResources.Items.Clear();
|
||||
|
||||
if (this.schedulerData.GroupType == GroupType.None)
|
||||
{
|
||||
RadListDataItem item = new RadListDataItem("None");
|
||||
item.Value = -1;
|
||||
this.listResources.Items.Add(item);
|
||||
}
|
||||
|
||||
foreach (IResource resource in resourceStorage)
|
||||
{
|
||||
if (resource.Visible)
|
||||
{
|
||||
RadListDataItem item = new RadListDataItem(resource.Name);
|
||||
item.Value = resource.Id;
|
||||
this.listResources.Items.Add(item);
|
||||
}
|
||||
}
|
||||
|
||||
if (this.listResources.Items.Count > 0)
|
||||
{
|
||||
this.listResources.SelectedIndex = 0;
|
||||
}
|
||||
}
|
||||
|
||||
protected override void ApplySettingsToEvent(IEvent targetEvent)
|
||||
{
|
||||
base.ApplySettingsToEvent(targetEvent);
|
||||
|
||||
if (this.listResources.SelectedIndex >= 0)
|
||||
{
|
||||
RadListDataItem selectedItem = listResources.Items[this.listResources.SelectedIndex];
|
||||
|
||||
if (selectedItem.Text.Equals("None"))
|
||||
{
|
||||
if (targetEvent.ResourceIds.Count > 0)
|
||||
{
|
||||
targetEvent.ResourceIds.Clear();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
targetEvent.ResourceIds.Clear();
|
||||
|
||||
foreach (RadListDataItem item in listResources.SelectedItems)
|
||||
{
|
||||
EventId resourceId = item.Value as EventId;
|
||||
if (!targetEvent.ResourceIds.Contains(resourceId))
|
||||
{
|
||||
targetEvent.ResourceIds.Add(resourceId);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.listResources = new Telerik.WinControls.UI.RadListControl();
|
||||
((System.ComponentModel.ISupportInitialize)(this.labelSubject)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.labelLocation)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.labelBackground)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtSubject)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtLocation)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.cmbBackground)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.labelStartTime)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.labelEndTime)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dateStart)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.timeStart)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dateEnd)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.timeEnd)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.chkAllDay)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.labelResource)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.cmbResource)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.labelStatus)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.cmbShowTimeAs)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.textBoxDescription)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.buttonOK)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.buttonCancel)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.buttonDelete)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.buttonRecurrence)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.radSeparator1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.radSeparator2)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.radSeparator3)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.listResources)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// cmbBackground
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.cmbBackground.RootElement.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.WrapAroundChildren;
|
||||
this.cmbBackground.Size = new System.Drawing.Size(180, 20);
|
||||
//
|
||||
// dateStart
|
||||
//
|
||||
this.dateStart.Value = new System.DateTime(2011, 5, 17, 11, 22, 29, 614);
|
||||
//
|
||||
// timeStart
|
||||
//
|
||||
this.timeStart.Value = new System.DateTime(2011, 5, 17, 11, 22, 29, 614);
|
||||
//
|
||||
// dateEnd
|
||||
//
|
||||
this.dateEnd.Value = new System.DateTime(2011, 5, 17, 11, 22, 29, 614);
|
||||
//
|
||||
// timeEnd
|
||||
//
|
||||
this.timeEnd.Value = new System.DateTime(2011, 5, 17, 11, 22, 29, 614);
|
||||
//
|
||||
// chkAllDay
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.chkAllDay.RootElement.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(5)))), ((int)(((byte)(5)))), ((int)(((byte)(5)))));
|
||||
//
|
||||
// cmbResource
|
||||
//
|
||||
this.cmbResource.Location = new System.Drawing.Point(345, 169);
|
||||
this.cmbResource.Size = new System.Drawing.Size(180, 20);
|
||||
this.cmbResource.Visible = false;
|
||||
//
|
||||
// cmbShowTimeAs
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.cmbShowTimeAs.RootElement.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.WrapAroundChildren;
|
||||
this.cmbShowTimeAs.Size = new System.Drawing.Size(178, 20);
|
||||
//
|
||||
// textBoxDescription
|
||||
//
|
||||
this.textBoxDescription.Location = new System.Drawing.Point(7, 322);
|
||||
//
|
||||
//
|
||||
//
|
||||
this.textBoxDescription.RootElement.StretchVertically = true;
|
||||
this.textBoxDescription.Size = new System.Drawing.Size(519, 116);
|
||||
//
|
||||
// buttonOK
|
||||
//
|
||||
this.buttonOK.Location = new System.Drawing.Point(6, 444);
|
||||
//
|
||||
// buttonCancel
|
||||
//
|
||||
this.buttonCancel.Location = new System.Drawing.Point(87, 444);
|
||||
//
|
||||
// buttonDelete
|
||||
//
|
||||
this.buttonDelete.Location = new System.Drawing.Point(168, 444);
|
||||
//
|
||||
// buttonRecurrence
|
||||
//
|
||||
this.buttonRecurrence.Location = new System.Drawing.Point(249, 444);
|
||||
//
|
||||
// radSeparator3
|
||||
//
|
||||
this.radSeparator3.Location = new System.Drawing.Point(6, 306);
|
||||
//
|
||||
// listResources
|
||||
//
|
||||
this.listResources.CaseSensitiveSort = true;
|
||||
this.listResources.ItemHeight = 18;
|
||||
this.listResources.Location = new System.Drawing.Point(79, 169);
|
||||
this.listResources.Name = "listResources";
|
||||
this.listResources.SelectionMode = System.Windows.Forms.SelectionMode.MultiSimple;
|
||||
this.listResources.Size = new System.Drawing.Size(180, 131);
|
||||
this.listResources.TabIndex = 25;
|
||||
this.listResources.Text = "radListControl1";
|
||||
//
|
||||
// MultipleResourcesDialog
|
||||
//
|
||||
this.ClientSize = new System.Drawing.Size(537, 472);
|
||||
this.Controls.Add(this.listResources);
|
||||
this.Name = "MultipleResourcesDialog";
|
||||
//
|
||||
//
|
||||
//
|
||||
this.RootElement.ApplyShapeToControl = true;
|
||||
this.RootElement.MinSize = new System.Drawing.Size(539, 365);
|
||||
this.Text = "Edit Appointment";
|
||||
this.Controls.SetChildIndex(this.listResources, 0);
|
||||
this.Controls.SetChildIndex(this.radSeparator3, 0);
|
||||
this.Controls.SetChildIndex(this.cmbResource, 0);
|
||||
this.Controls.SetChildIndex(this.labelSubject, 0);
|
||||
this.Controls.SetChildIndex(this.labelLocation, 0);
|
||||
this.Controls.SetChildIndex(this.labelBackground, 0);
|
||||
this.Controls.SetChildIndex(this.txtSubject, 0);
|
||||
this.Controls.SetChildIndex(this.txtLocation, 0);
|
||||
this.Controls.SetChildIndex(this.cmbBackground, 0);
|
||||
this.Controls.SetChildIndex(this.labelStartTime, 0);
|
||||
this.Controls.SetChildIndex(this.labelEndTime, 0);
|
||||
this.Controls.SetChildIndex(this.dateStart, 0);
|
||||
this.Controls.SetChildIndex(this.timeStart, 0);
|
||||
this.Controls.SetChildIndex(this.dateEnd, 0);
|
||||
this.Controls.SetChildIndex(this.timeEnd, 0);
|
||||
this.Controls.SetChildIndex(this.chkAllDay, 0);
|
||||
this.Controls.SetChildIndex(this.labelResource, 0);
|
||||
this.Controls.SetChildIndex(this.labelStatus, 0);
|
||||
this.Controls.SetChildIndex(this.cmbShowTimeAs, 0);
|
||||
this.Controls.SetChildIndex(this.textBoxDescription, 0);
|
||||
this.Controls.SetChildIndex(this.buttonOK, 0);
|
||||
this.Controls.SetChildIndex(this.buttonCancel, 0);
|
||||
this.Controls.SetChildIndex(this.buttonDelete, 0);
|
||||
this.Controls.SetChildIndex(this.buttonRecurrence, 0);
|
||||
this.Controls.SetChildIndex(this.radSeparator1, 0);
|
||||
this.Controls.SetChildIndex(this.radSeparator2, 0);
|
||||
((System.ComponentModel.ISupportInitialize)(this.labelSubject)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.labelLocation)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.labelBackground)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtSubject)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtLocation)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.cmbBackground)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.labelStartTime)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.labelEndTime)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dateStart)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.timeStart)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dateEnd)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.timeEnd)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.chkAllDay)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.labelResource)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.cmbResource)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.labelStatus)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.cmbShowTimeAs)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.textBoxDescription)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.buttonOK)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.buttonCancel)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.buttonDelete)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.buttonRecurrence)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.radSeparator1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.radSeparator2)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.radSeparator3)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.listResources)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,123 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="errorProvider.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
|
@ -0,0 +1,21 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace SchedulerMultipleResourcesEditDialog
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new Form1());
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("SchedulerMultipleResourcesEditDialog")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Microsoft")]
|
||||
[assembly: AssemblyProduct("SchedulerMultipleResourcesEditDialog")]
|
||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("f7c4f7ec-199b-46e2-9489-1847ec0a879d")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
71
Scheduler/SchedulerMultipleResourcesEditDialog/SchedulerMultipleResourcesEditDialog/Properties/Resources.Designer.cs
сгенерированный
Normal file
71
Scheduler/SchedulerMultipleResourcesEditDialog/SchedulerMultipleResourcesEditDialog/Properties/Resources.Designer.cs
сгенерированный
Normal file
|
@ -0,0 +1,71 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.4959
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace SchedulerMultipleResourcesEditDialog.Properties
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources
|
||||
{
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if ((resourceMan == null))
|
||||
{
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SchedulerMultipleResourcesEditDialog.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,117 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
30
Scheduler/SchedulerMultipleResourcesEditDialog/SchedulerMultipleResourcesEditDialog/Properties/Settings.Designer.cs
сгенерированный
Normal file
30
Scheduler/SchedulerMultipleResourcesEditDialog/SchedulerMultipleResourcesEditDialog/Properties/Settings.Designer.cs
сгенерированный
Normal file
|
@ -0,0 +1,30 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.4959
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace SchedulerMultipleResourcesEditDialog.Properties
|
||||
{
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
|
||||
{
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default
|
||||
{
|
||||
get
|
||||
{
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
|
@ -0,0 +1,111 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.30729</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{6CD18A44-B25C-4BFC-AC2C-2DF02FD39EEE}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>SchedulerMultipleResourcesEditDialog</RootNamespace>
|
||||
<AssemblyName>SchedulerMultipleResourcesEditDialog</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.Linq">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data.DataSetExtensions">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="Telerik.WinControls, Version=2011.1.11.419, Culture=neutral, PublicKeyToken=5bb2a467cbec794e, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\..\..\work\Development\bin\Debug\Telerik.WinControls.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Telerik.WinControls.Scheduler, Version=2011.1.11.419, Culture=neutral, PublicKeyToken=5bb2a467cbec794e, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\..\..\work\Development\bin\Debug\Telerik.WinControls.Scheduler.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Telerik.WinControls.UI, Version=2011.1.11.419, Culture=neutral, PublicKeyToken=5bb2a467cbec794e, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\..\..\work\Development\bin\Debug\Telerik.WinControls.UI.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="TelerikCommon, Version=2011.1.11.419, Culture=neutral, PublicKeyToken=5bb2a467cbec794e, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\..\..\work\Development\bin\Debug\TelerikCommon.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Form1.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form1.Designer.cs">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="MultipleResourcesDialog.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="Form1.resx">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="MultipleResourcesDialog.resx">
|
||||
<DependentUpon>MultipleResourcesDialog.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
83
Scheduler/SchedulerMultipleResourcesEditDialog/SchedulerMultipleResourcesEditDialogVB/Form1.Designer.vb
сгенерированный
Normal file
83
Scheduler/SchedulerMultipleResourcesEditDialog/SchedulerMultipleResourcesEditDialogVB/Form1.Designer.vb
сгенерированный
Normal file
|
@ -0,0 +1,83 @@
|
|||
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
|
||||
Partial Class Form1
|
||||
Inherits System.Windows.Forms.Form
|
||||
|
||||
'Form overrides dispose to clean up the component list.
|
||||
<System.Diagnostics.DebuggerNonUserCode()> _
|
||||
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||
Try
|
||||
If disposing AndAlso components IsNot Nothing Then
|
||||
components.Dispose()
|
||||
End If
|
||||
Finally
|
||||
MyBase.Dispose(disposing)
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
'Required by the Windows Form Designer
|
||||
Private components As System.ComponentModel.IContainer
|
||||
|
||||
'NOTE: The following procedure is required by the Windows Form Designer
|
||||
'It can be modified using the Windows Form Designer.
|
||||
'Do not modify it using the code editor.
|
||||
<System.Diagnostics.DebuggerStepThrough()> _
|
||||
Private Sub InitializeComponent()
|
||||
Dim DateTimeInterval1 As Telerik.WinControls.UI.DateTimeInterval = New Telerik.WinControls.UI.DateTimeInterval
|
||||
Me.RadScheduler1 = New Telerik.WinControls.UI.RadScheduler
|
||||
Me.RadSchedulerNavigator1 = New Telerik.WinControls.UI.RadSchedulerNavigator
|
||||
CType(Me.RadScheduler1, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
CType(Me.RadSchedulerNavigator1, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
Me.SuspendLayout()
|
||||
'
|
||||
'RadScheduler1
|
||||
'
|
||||
DateTimeInterval1.End = New Date(CType(0, Long))
|
||||
DateTimeInterval1.Start = New Date(CType(0, Long))
|
||||
Me.RadScheduler1.AccessibleInterval = DateTimeInterval1
|
||||
Me.RadScheduler1.AppointmentTitleFormat = Nothing
|
||||
Me.RadScheduler1.Culture = New System.Globalization.CultureInfo("en-US")
|
||||
Me.RadScheduler1.DataSource = Nothing
|
||||
Me.RadScheduler1.Dock = System.Windows.Forms.DockStyle.Fill
|
||||
Me.RadScheduler1.GroupType = Telerik.WinControls.UI.GroupType.None
|
||||
Me.RadScheduler1.HeaderFormat = "dd dddd"
|
||||
Me.RadScheduler1.Location = New System.Drawing.Point(0, 77)
|
||||
Me.RadScheduler1.Name = "RadScheduler1"
|
||||
Me.RadScheduler1.Size = New System.Drawing.Size(596, 409)
|
||||
Me.RadScheduler1.TabIndex = 0
|
||||
Me.RadScheduler1.Text = "RadScheduler1"
|
||||
'
|
||||
'RadSchedulerNavigator1
|
||||
'
|
||||
Me.RadSchedulerNavigator1.AssociatedScheduler = Nothing
|
||||
Me.RadSchedulerNavigator1.DateFormat = "yyyy/MM/dd"
|
||||
Me.RadSchedulerNavigator1.Dock = System.Windows.Forms.DockStyle.Top
|
||||
Me.RadSchedulerNavigator1.Location = New System.Drawing.Point(0, 0)
|
||||
Me.RadSchedulerNavigator1.Name = "RadSchedulerNavigator1"
|
||||
Me.RadSchedulerNavigator1.NavigationStepType = Telerik.WinControls.UI.NavigationStepTypes.Day
|
||||
'
|
||||
'
|
||||
'
|
||||
Me.RadSchedulerNavigator1.RootElement.StretchVertically = False
|
||||
Me.RadSchedulerNavigator1.Size = New System.Drawing.Size(596, 77)
|
||||
Me.RadSchedulerNavigator1.TabIndex = 1
|
||||
Me.RadSchedulerNavigator1.Text = "RadSchedulerNavigator1"
|
||||
'
|
||||
'Form1
|
||||
'
|
||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||
Me.ClientSize = New System.Drawing.Size(596, 486)
|
||||
Me.Controls.Add(Me.RadScheduler1)
|
||||
Me.Controls.Add(Me.RadSchedulerNavigator1)
|
||||
Me.Name = "Form1"
|
||||
Me.Text = "Form1"
|
||||
CType(Me.RadScheduler1, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
CType(Me.RadSchedulerNavigator1, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
Me.ResumeLayout(False)
|
||||
Me.PerformLayout()
|
||||
|
||||
End Sub
|
||||
Friend WithEvents RadScheduler1 As Telerik.WinControls.UI.RadScheduler
|
||||
Friend WithEvents RadSchedulerNavigator1 As Telerik.WinControls.UI.RadSchedulerNavigator
|
||||
|
||||
End Class
|
|
@ -0,0 +1,120 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
|
@ -0,0 +1,30 @@
|
|||
Imports Telerik.WinControls.UI
|
||||
|
||||
Public Class Form1
|
||||
|
||||
Public Sub New()
|
||||
InitializeComponent()
|
||||
|
||||
Dim colors As Color() = New Color() {Color.LightBlue, Color.LightGreen, Color.LightYellow, Color.Red, Color.Orange, Color.Pink, _
|
||||
Color.Purple, Color.Peru, Color.PowderBlue}
|
||||
|
||||
Dim names As String() = New String() {"Alan Smith", "Anne Dodsworth", "Boyan Mastoni", "Richard Duncan", "Maria Shnaider"}
|
||||
|
||||
For i As Integer = 0 To names.Length - 1
|
||||
Dim resource As New Resource()
|
||||
resource.Id = New EventId(i)
|
||||
resource.Name = names(i)
|
||||
resource.Color = colors(i)
|
||||
|
||||
Me.RadScheduler1.Resources.Add(resource)
|
||||
Next
|
||||
|
||||
RadScheduler1.GroupType = GroupType.Resource
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub RadScheduler1_AppointmentEditDialogShowing(ByVal sender As System.Object, ByVal e As Telerik.WinControls.UI.AppointmentEditDialogShowingEventArgs) Handles RadScheduler1.AppointmentEditDialogShowing
|
||||
e.AppointmentEditDialog = New MultipleResourcesDialog()
|
||||
End Sub
|
||||
|
||||
End Class
|
|
@ -0,0 +1,277 @@
|
|||
Imports System
|
||||
Imports System.Collections.Generic
|
||||
Imports System.Linq
|
||||
Imports System.Text
|
||||
Imports Telerik.WinControls.UI.Scheduler.Dialogs
|
||||
Imports Telerik.WinControls.UI
|
||||
|
||||
Public Class MultipleResourcesDialog
|
||||
Inherits EditAppointmentDialog
|
||||
Private listResources As Telerik.WinControls.UI.RadListControl
|
||||
|
||||
Public Sub New()
|
||||
InitializeComponent()
|
||||
End Sub
|
||||
|
||||
Protected Overrides Sub LoadSettingsFromEvent(ByVal sourceEvent As IEvent)
|
||||
MyBase.LoadSettingsFromEvent(sourceEvent)
|
||||
|
||||
If sourceEvent.ResourceId IsNot Nothing Then
|
||||
For Each item As RadListDataItem In Me.listResources.Items
|
||||
If sourceEvent.ResourceIds.Contains(TryCast(item.Value, EventId)) Then
|
||||
item.Selected = True
|
||||
Else
|
||||
item.Selected = False
|
||||
End If
|
||||
Next
|
||||
|
||||
If Me.SchedulerData.GroupType = GroupType.None AndAlso sourceEvent.ResourceIds.Count > 1 Then
|
||||
Me.listResources.SelectedIndex = 1
|
||||
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Protected Overrides Sub LoadResources()
|
||||
MyBase.LoadResources()
|
||||
|
||||
If Me.SchedulerData Is Nothing Then
|
||||
Return
|
||||
End If
|
||||
|
||||
Dim resourceStorage As ISchedulerStorage(Of IResource) = Me.SchedulerData.GetResourceStorage()
|
||||
Me.listResources.Items.Clear()
|
||||
|
||||
If Me.SchedulerData.GroupType = GroupType.None Then
|
||||
Dim item As New RadListDataItem("None")
|
||||
item.Value = -1
|
||||
Me.listResources.Items.Add(item)
|
||||
End If
|
||||
|
||||
For Each resource As IResource In resourceStorage
|
||||
If resource.Visible Then
|
||||
Dim item As New RadListDataItem(resource.Name)
|
||||
item.Value = resource.Id
|
||||
Me.listResources.Items.Add(item)
|
||||
End If
|
||||
Next
|
||||
|
||||
If Me.listResources.Items.Count > 0 Then
|
||||
Me.listResources.SelectedIndex = 0
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Protected Overrides Sub ApplySettingsToEvent(ByVal targetEvent As IEvent)
|
||||
MyBase.ApplySettingsToEvent(targetEvent)
|
||||
|
||||
If Me.listResources.SelectedIndex >= 0 Then
|
||||
Dim selectedItem As RadListDataItem = listResources.Items(Me.listResources.SelectedIndex)
|
||||
|
||||
If selectedItem.Text.Equals("None") Then
|
||||
If targetEvent.ResourceIds.Count > 0 Then
|
||||
targetEvent.ResourceIds.Clear()
|
||||
End If
|
||||
Else
|
||||
targetEvent.ResourceIds.Clear()
|
||||
|
||||
For Each item As RadListDataItem In listResources.SelectedItems
|
||||
Dim resourceId As EventId = TryCast(item.Value, EventId)
|
||||
If Not targetEvent.ResourceIds.Contains(resourceId) Then
|
||||
targetEvent.ResourceIds.Add(resourceId)
|
||||
End If
|
||||
Next
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub InitializeComponent()
|
||||
Me.listResources = New Telerik.WinControls.UI.RadListControl()
|
||||
DirectCast(Me.labelSubject, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.labelLocation, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.labelBackground, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.txtSubject, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.txtLocation, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.cmbBackground, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.labelStartTime, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.labelEndTime, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.dateStart, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.timeStart, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.dateEnd, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.timeEnd, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.chkAllDay, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.labelResource, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.cmbResource, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.labelStatus, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.cmbShowTimeAs, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.textBoxDescription, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.buttonOK, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.buttonCancel, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.buttonDelete, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.buttonRecurrence, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.errorProvider, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.radSeparator1, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.radSeparator2, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.radSeparator3, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me.listResources, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
DirectCast(Me, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
Me.SuspendLayout()
|
||||
'
|
||||
' cmbBackground
|
||||
'
|
||||
'
|
||||
'
|
||||
'
|
||||
Me.cmbBackground.RootElement.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.WrapAroundChildren
|
||||
Me.cmbBackground.Size = New System.Drawing.Size(180, 20)
|
||||
'
|
||||
' dateStart
|
||||
'
|
||||
Me.dateStart.Value = New System.DateTime(2011, 5, 17, 11, 22, 29, _
|
||||
614)
|
||||
'
|
||||
' timeStart
|
||||
'
|
||||
Me.timeStart.Value = New System.DateTime(2011, 5, 17, 11, 22, 29, _
|
||||
614)
|
||||
'
|
||||
' dateEnd
|
||||
'
|
||||
Me.dateEnd.Value = New System.DateTime(2011, 5, 17, 11, 22, 29, _
|
||||
614)
|
||||
'
|
||||
' timeEnd
|
||||
'
|
||||
Me.timeEnd.Value = New System.DateTime(2011, 5, 17, 11, 22, 29, _
|
||||
614)
|
||||
'
|
||||
' chkAllDay
|
||||
'
|
||||
'
|
||||
'
|
||||
'
|
||||
Me.chkAllDay.RootElement.ForeColor = System.Drawing.Color.FromArgb(CInt(CByte(5)), CInt(CByte(5)), CInt(CByte(5)))
|
||||
'
|
||||
' cmbResource
|
||||
'
|
||||
Me.cmbResource.Location = New System.Drawing.Point(345, 169)
|
||||
Me.cmbResource.Size = New System.Drawing.Size(180, 20)
|
||||
Me.cmbResource.Visible = False
|
||||
'
|
||||
' cmbShowTimeAs
|
||||
'
|
||||
'
|
||||
'
|
||||
'
|
||||
Me.cmbShowTimeAs.RootElement.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.WrapAroundChildren
|
||||
Me.cmbShowTimeAs.Size = New System.Drawing.Size(178, 20)
|
||||
'
|
||||
' textBoxDescription
|
||||
'
|
||||
Me.textBoxDescription.Location = New System.Drawing.Point(7, 322)
|
||||
'
|
||||
'
|
||||
'
|
||||
Me.textBoxDescription.RootElement.StretchVertically = True
|
||||
Me.textBoxDescription.Size = New System.Drawing.Size(519, 116)
|
||||
'
|
||||
' buttonOK
|
||||
'
|
||||
Me.buttonOK.Location = New System.Drawing.Point(6, 444)
|
||||
'
|
||||
' buttonCancel
|
||||
'
|
||||
Me.buttonCancel.Location = New System.Drawing.Point(87, 444)
|
||||
'
|
||||
' buttonDelete
|
||||
'
|
||||
Me.buttonDelete.Location = New System.Drawing.Point(168, 444)
|
||||
'
|
||||
' buttonRecurrence
|
||||
'
|
||||
Me.buttonRecurrence.Location = New System.Drawing.Point(249, 444)
|
||||
'
|
||||
' radSeparator3
|
||||
'
|
||||
Me.radSeparator3.Location = New System.Drawing.Point(6, 306)
|
||||
'
|
||||
' listResources
|
||||
'
|
||||
Me.listResources.CaseSensitiveSort = True
|
||||
Me.listResources.ItemHeight = 18
|
||||
Me.listResources.Location = New System.Drawing.Point(79, 169)
|
||||
Me.listResources.Name = "listResources"
|
||||
Me.listResources.SelectionMode = System.Windows.Forms.SelectionMode.MultiSimple
|
||||
Me.listResources.Size = New System.Drawing.Size(180, 131)
|
||||
Me.listResources.TabIndex = 25
|
||||
Me.listResources.Text = "radListControl1"
|
||||
'
|
||||
' MultipleResourcesDialog
|
||||
'
|
||||
Me.ClientSize = New System.Drawing.Size(537, 472)
|
||||
Me.Controls.Add(Me.listResources)
|
||||
Me.Name = "MultipleResourcesDialog"
|
||||
'
|
||||
'
|
||||
'
|
||||
Me.RootElement.ApplyShapeToControl = True
|
||||
Me.RootElement.MinSize = New System.Drawing.Size(539, 365)
|
||||
Me.Text = "Edit Appointment"
|
||||
Me.Controls.SetChildIndex(Me.listResources, 0)
|
||||
Me.Controls.SetChildIndex(Me.radSeparator3, 0)
|
||||
Me.Controls.SetChildIndex(Me.cmbResource, 0)
|
||||
Me.Controls.SetChildIndex(Me.labelSubject, 0)
|
||||
Me.Controls.SetChildIndex(Me.labelLocation, 0)
|
||||
Me.Controls.SetChildIndex(Me.labelBackground, 0)
|
||||
Me.Controls.SetChildIndex(Me.txtSubject, 0)
|
||||
Me.Controls.SetChildIndex(Me.txtLocation, 0)
|
||||
Me.Controls.SetChildIndex(Me.cmbBackground, 0)
|
||||
Me.Controls.SetChildIndex(Me.labelStartTime, 0)
|
||||
Me.Controls.SetChildIndex(Me.labelEndTime, 0)
|
||||
Me.Controls.SetChildIndex(Me.dateStart, 0)
|
||||
Me.Controls.SetChildIndex(Me.timeStart, 0)
|
||||
Me.Controls.SetChildIndex(Me.dateEnd, 0)
|
||||
Me.Controls.SetChildIndex(Me.timeEnd, 0)
|
||||
Me.Controls.SetChildIndex(Me.chkAllDay, 0)
|
||||
Me.Controls.SetChildIndex(Me.labelResource, 0)
|
||||
Me.Controls.SetChildIndex(Me.labelStatus, 0)
|
||||
Me.Controls.SetChildIndex(Me.cmbShowTimeAs, 0)
|
||||
Me.Controls.SetChildIndex(Me.textBoxDescription, 0)
|
||||
Me.Controls.SetChildIndex(Me.buttonOK, 0)
|
||||
Me.Controls.SetChildIndex(Me.buttonCancel, 0)
|
||||
Me.Controls.SetChildIndex(Me.buttonDelete, 0)
|
||||
Me.Controls.SetChildIndex(Me.buttonRecurrence, 0)
|
||||
Me.Controls.SetChildIndex(Me.radSeparator1, 0)
|
||||
Me.Controls.SetChildIndex(Me.radSeparator2, 0)
|
||||
DirectCast(Me.labelSubject, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.labelLocation, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.labelBackground, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.txtSubject, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.txtLocation, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.cmbBackground, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.labelStartTime, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.labelEndTime, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.dateStart, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.timeStart, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.dateEnd, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.timeEnd, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.chkAllDay, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.labelResource, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.cmbResource, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.labelStatus, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.cmbShowTimeAs, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.textBoxDescription, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.buttonOK, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.buttonCancel, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.buttonDelete, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.buttonRecurrence, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.errorProvider, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.radSeparator1, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.radSeparator2, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.radSeparator3, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me.listResources, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
DirectCast(Me, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
Me.ResumeLayout(False)
|
||||
Me.PerformLayout()
|
||||
|
||||
End Sub
|
||||
End Class
|
38
Scheduler/SchedulerMultipleResourcesEditDialog/SchedulerMultipleResourcesEditDialogVB/My Project/Application.Designer.vb
сгенерированный
Normal file
38
Scheduler/SchedulerMultipleResourcesEditDialog/SchedulerMultipleResourcesEditDialogVB/My Project/Application.Designer.vb
сгенерированный
Normal file
|
@ -0,0 +1,38 @@
|
|||
'------------------------------------------------------------------------------
|
||||
' <auto-generated>
|
||||
' This code was generated by a tool.
|
||||
' Runtime Version:2.0.50727.4959
|
||||
'
|
||||
' Changes to this file may cause incorrect behavior and will be lost if
|
||||
' the code is regenerated.
|
||||
' </auto-generated>
|
||||
'------------------------------------------------------------------------------
|
||||
|
||||
Option Strict On
|
||||
Option Explicit On
|
||||
|
||||
|
||||
Namespace My
|
||||
|
||||
'NOTE: This file is auto-generated; do not modify it directly. To make changes,
|
||||
' or if you encounter build errors in this file, go to the Project Designer
|
||||
' (go to Project Properties or double-click the My Project node in
|
||||
' Solution Explorer), and make changes on the Application tab.
|
||||
'
|
||||
Partial Friend Class MyApplication
|
||||
|
||||
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
|
||||
Public Sub New()
|
||||
MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
|
||||
Me.IsSingleInstance = false
|
||||
Me.EnableVisualStyles = true
|
||||
Me.SaveMySettingsOnExit = true
|
||||
Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses
|
||||
End Sub
|
||||
|
||||
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
|
||||
Protected Overrides Sub OnCreateMainForm()
|
||||
Me.MainForm = Global.SchedulerMultipleResourcesEditDialogVB.Form1
|
||||
End Sub
|
||||
End Class
|
||||
End Namespace
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<MySubMain>true</MySubMain>
|
||||
<MainForm>Form1</MainForm>
|
||||
<SingleInstance>false</SingleInstance>
|
||||
<ShutdownMode>0</ShutdownMode>
|
||||
<EnableVisualStyles>true</EnableVisualStyles>
|
||||
<AuthenticationMode>0</AuthenticationMode>
|
||||
<ApplicationType>0</ApplicationType>
|
||||
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
|
||||
</MyApplicationData>
|
|
@ -0,0 +1,35 @@
|
|||
Imports System
|
||||
Imports System.Reflection
|
||||
Imports System.Runtime.InteropServices
|
||||
|
||||
' General Information about an assembly is controlled through the following
|
||||
' set of attributes. Change these attribute values to modify the information
|
||||
' associated with an assembly.
|
||||
|
||||
' Review the values of the assembly attributes
|
||||
|
||||
<Assembly: AssemblyTitle("SchedulerMultipleResourcesEditDialogVB")>
|
||||
<Assembly: AssemblyDescription("")>
|
||||
<Assembly: AssemblyCompany("Microsoft")>
|
||||
<Assembly: AssemblyProduct("SchedulerMultipleResourcesEditDialogVB")>
|
||||
<Assembly: AssemblyCopyright("Copyright © Microsoft 2011")>
|
||||
<Assembly: AssemblyTrademark("")>
|
||||
|
||||
<Assembly: ComVisible(False)>
|
||||
|
||||
'The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
<Assembly: Guid("d31af961-4eac-4b4c-96b7-396c29fe9cfe")>
|
||||
|
||||
' Version information for an assembly consists of the following four values:
|
||||
'
|
||||
' Major Version
|
||||
' Minor Version
|
||||
' Build Number
|
||||
' Revision
|
||||
'
|
||||
' You can specify all the values or you can default the Build and Revision Numbers
|
||||
' by using the '*' as shown below:
|
||||
' <Assembly: AssemblyVersion("1.0.*")>
|
||||
|
||||
<Assembly: AssemblyVersion("1.0.0.0")>
|
||||
<Assembly: AssemblyFileVersion("1.0.0.0")>
|
62
Scheduler/SchedulerMultipleResourcesEditDialog/SchedulerMultipleResourcesEditDialogVB/My Project/Resources.Designer.vb
сгенерированный
Normal file
62
Scheduler/SchedulerMultipleResourcesEditDialog/SchedulerMultipleResourcesEditDialogVB/My Project/Resources.Designer.vb
сгенерированный
Normal file
|
@ -0,0 +1,62 @@
|
|||
'------------------------------------------------------------------------------
|
||||
' <auto-generated>
|
||||
' This code was generated by a tool.
|
||||
' Runtime Version:2.0.50727.4959
|
||||
'
|
||||
' Changes to this file may cause incorrect behavior and will be lost if
|
||||
' the code is regenerated.
|
||||
' </auto-generated>
|
||||
'------------------------------------------------------------------------------
|
||||
|
||||
Option Strict On
|
||||
Option Explicit On
|
||||
|
||||
|
||||
Namespace My.Resources
|
||||
|
||||
'This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
'class via a tool like ResGen or Visual Studio.
|
||||
'To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
'with the /str option, or rebuild your VS project.
|
||||
'<summary>
|
||||
' A strongly-typed resource class, for looking up localized strings, etc.
|
||||
'</summary>
|
||||
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0"), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
|
||||
Friend Module Resources
|
||||
|
||||
Private resourceMan As Global.System.Resources.ResourceManager
|
||||
|
||||
Private resourceCulture As Global.System.Globalization.CultureInfo
|
||||
|
||||
'<summary>
|
||||
' Returns the cached ResourceManager instance used by this class.
|
||||
'</summary>
|
||||
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
|
||||
Get
|
||||
If Object.ReferenceEquals(resourceMan, Nothing) Then
|
||||
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("SchedulerMultipleResourcesEditDialogVB.Resources", GetType(Resources).Assembly)
|
||||
resourceMan = temp
|
||||
End If
|
||||
Return resourceMan
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'<summary>
|
||||
' Overrides the current thread's CurrentUICulture property for all
|
||||
' resource lookups using this strongly typed resource class.
|
||||
'</summary>
|
||||
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Friend Property Culture() As Global.System.Globalization.CultureInfo
|
||||
Get
|
||||
Return resourceCulture
|
||||
End Get
|
||||
Set(ByVal value As Global.System.Globalization.CultureInfo)
|
||||
resourceCulture = value
|
||||
End Set
|
||||
End Property
|
||||
End Module
|
||||
End Namespace
|
|
@ -0,0 +1,117 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
73
Scheduler/SchedulerMultipleResourcesEditDialog/SchedulerMultipleResourcesEditDialogVB/My Project/Settings.Designer.vb
сгенерированный
Normal file
73
Scheduler/SchedulerMultipleResourcesEditDialog/SchedulerMultipleResourcesEditDialogVB/My Project/Settings.Designer.vb
сгенерированный
Normal file
|
@ -0,0 +1,73 @@
|
|||
'------------------------------------------------------------------------------
|
||||
' <auto-generated>
|
||||
' This code was generated by a tool.
|
||||
' Runtime Version:2.0.50727.4959
|
||||
'
|
||||
' Changes to this file may cause incorrect behavior and will be lost if
|
||||
' the code is regenerated.
|
||||
' </auto-generated>
|
||||
'------------------------------------------------------------------------------
|
||||
|
||||
Option Strict On
|
||||
Option Explicit On
|
||||
|
||||
|
||||
Namespace My
|
||||
|
||||
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0"), _
|
||||
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Partial Friend NotInheritable Class MySettings
|
||||
Inherits Global.System.Configuration.ApplicationSettingsBase
|
||||
|
||||
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings)
|
||||
|
||||
#Region "My.Settings Auto-Save Functionality"
|
||||
#If _MyType = "WindowsForms" Then
|
||||
Private Shared addedHandler As Boolean
|
||||
|
||||
Private Shared addedHandlerLockObject As New Object
|
||||
|
||||
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
|
||||
If My.Application.SaveMySettingsOnExit Then
|
||||
My.Settings.Save()
|
||||
End If
|
||||
End Sub
|
||||
#End If
|
||||
#End Region
|
||||
|
||||
Public Shared ReadOnly Property [Default]() As MySettings
|
||||
Get
|
||||
|
||||
#If _MyType = "WindowsForms" Then
|
||||
If Not addedHandler Then
|
||||
SyncLock addedHandlerLockObject
|
||||
If Not addedHandler Then
|
||||
AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
|
||||
addedHandler = True
|
||||
End If
|
||||
End SyncLock
|
||||
End If
|
||||
#End If
|
||||
Return defaultInstance
|
||||
End Get
|
||||
End Property
|
||||
End Class
|
||||
End Namespace
|
||||
|
||||
Namespace My
|
||||
|
||||
<Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
|
||||
Friend Module MySettingsProperty
|
||||
|
||||
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
|
||||
Friend ReadOnly Property Settings() As Global.SchedulerMultipleResourcesEditDialogVB.My.MySettings
|
||||
Get
|
||||
Return Global.SchedulerMultipleResourcesEditDialogVB.My.MySettings.Default
|
||||
End Get
|
||||
End Property
|
||||
End Module
|
||||
End Namespace
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
|
@ -0,0 +1,141 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.30729</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{F6323CDF-1862-46A7-AB9D-ED4D6AF23782}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<StartupObject>SchedulerMultipleResourcesEditDialogVB.My.MyApplication</StartupObject>
|
||||
<RootNamespace>SchedulerMultipleResourcesEditDialogVB</RootNamespace>
|
||||
<AssemblyName>SchedulerMultipleResourcesEditDialogVB</AssemblyName>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<MyType>WindowsForms</MyType>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<OptionExplicit>On</OptionExplicit>
|
||||
<OptionCompare>Binary</OptionCompare>
|
||||
<OptionStrict>Off</OptionStrict>
|
||||
<OptionInfer>On</OptionInfer>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<DefineDebug>true</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DocumentationFile>SchedulerMultipleResourcesEditDialogVB.xml</DocumentationFile>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<DefineDebug>false</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DocumentationFile>SchedulerMultipleResourcesEditDialogVB.xml</DocumentationFile>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Core">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.Linq">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data.DataSetExtensions">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="Telerik.WinControls, Version=2011.1.11.419, Culture=neutral, PublicKeyToken=5bb2a467cbec794e, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\..\..\work\Development\bin\Debug\Telerik.WinControls.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Telerik.WinControls.Scheduler, Version=2011.1.11.419, Culture=neutral, PublicKeyToken=5bb2a467cbec794e, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\..\..\work\Development\bin\Debug\Telerik.WinControls.Scheduler.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Telerik.WinControls.UI, Version=2011.1.11.419, Culture=neutral, PublicKeyToken=5bb2a467cbec794e, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\..\..\work\Development\bin\Debug\Telerik.WinControls.UI.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="TelerikCommon, Version=2011.1.11.419, Culture=neutral, PublicKeyToken=5bb2a467cbec794e, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\..\..\work\Development\bin\Debug\TelerikCommon.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Import Include="Microsoft.VisualBasic" />
|
||||
<Import Include="System" />
|
||||
<Import Include="System.Collections" />
|
||||
<Import Include="System.Collections.Generic" />
|
||||
<Import Include="System.Data" />
|
||||
<Import Include="System.Drawing" />
|
||||
<Import Include="System.Diagnostics" />
|
||||
<Import Include="System.Windows.Forms" />
|
||||
<Import Include="System.Linq" />
|
||||
<Import Include="System.Xml.Linq" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="MultipleResourcesDialog.vb">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form1.vb">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form1.Designer.vb">
|
||||
<DependentUpon>Form1.vb</DependentUpon>
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="My Project\AssemblyInfo.vb" />
|
||||
<Compile Include="My Project\Application.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Application.myapp</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="My Project\Resources.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="My Project\Settings.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Form1.resx">
|
||||
<DependentUpon>Form1.vb</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="My Project\Resources.resx">
|
||||
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
|
||||
<CustomToolNamespace>My.Resources</CustomToolNamespace>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="My Project\Application.myapp">
|
||||
<Generator>MyApplicationCodeGenerator</Generator>
|
||||
<LastGenOutput>Application.Designer.vb</LastGenOutput>
|
||||
</None>
|
||||
<None Include="My Project\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<CustomToolNamespace>My</CustomToolNamespace>
|
||||
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
Загрузка…
Ссылка в новой задаче