uwt: Change access modifiers to protected for event handler functions
This commit is contained in:
parent
9bc4b56dec
commit
7c497d6df0
@ -54,7 +54,7 @@ namespace UniversalEditor.UserInterface.Dialogs
|
||||
private CustomOption.CustomOptionCollection mvarCustomOptions = new CustomOption.CustomOptionCollection();
|
||||
public CustomOption.CustomOptionCollection CustomOptions { get { return mvarCustomOptions; } set { mvarCustomOptions = value; } }
|
||||
|
||||
public override void OnCreating(EventArgs e)
|
||||
protected override void OnCreating(EventArgs e)
|
||||
{
|
||||
base.OnCreating(e);
|
||||
|
||||
|
||||
@ -50,7 +50,7 @@ namespace UniversalEditor.UserInterface.Dialogs
|
||||
private TextBox txtAccessor = null;
|
||||
// **********************************************************
|
||||
|
||||
public override void OnCreating(EventArgs e)
|
||||
protected override void OnCreating(EventArgs e)
|
||||
{
|
||||
base.OnCreating(e);
|
||||
|
||||
|
||||
@ -59,7 +59,7 @@ namespace UniversalEditor.UserInterface.Dialogs
|
||||
}
|
||||
*/
|
||||
|
||||
public override void OnCreated(EventArgs e)
|
||||
protected override void OnCreated(EventArgs e)
|
||||
{
|
||||
base.OnCreated(e);
|
||||
UpdateSearch();
|
||||
|
||||
@ -154,7 +154,7 @@ namespace UniversalEditor.UserInterface.Dialogs
|
||||
public string SolutionTitle { get; set; }
|
||||
public string ProjectTitle { get; set; }
|
||||
|
||||
public override void OnCreating(EventArgs e)
|
||||
protected override void OnCreating(EventArgs e)
|
||||
{
|
||||
base.OnCreating(e);
|
||||
|
||||
|
||||
@ -475,7 +475,7 @@ namespace UniversalEditor.UserInterface
|
||||
return base.ProcessKeyPreview(ref m);
|
||||
}
|
||||
*/
|
||||
public override void OnKeyDown(KeyEventArgs e)
|
||||
protected override void OnKeyDown(KeyEventArgs e)
|
||||
{
|
||||
base.OnKeyDown(e);
|
||||
|
||||
|
||||
@ -37,6 +37,7 @@ namespace UniversalEditor.Editors.FileSystem
|
||||
this.tmTreeView = new DefaultTreeModel(new Type[] { typeof(string), typeof(string), typeof(string), typeof(string) });
|
||||
|
||||
this.tv = new ListView();
|
||||
this.tv.Mode = ListViewMode.Detail;
|
||||
this.tv.SelectionMode = SelectionMode.Multiple;
|
||||
this.tv.Model = this.tmTreeView;
|
||||
|
||||
|
||||
@ -37,18 +37,24 @@ namespace UniversalEditor.Editors.FileSystem
|
||||
this.InitializeComponent();
|
||||
}
|
||||
|
||||
public override void OnCreated(EventArgs e)
|
||||
protected override void OnCreated(EventArgs e)
|
||||
{
|
||||
this.tv.RegisterDragSource(new DragDropTarget[]
|
||||
{
|
||||
new DragDropTarget("text/uri-list", DragDropTargetFlags.SameApplication | DragDropTargetFlags.OtherApplication, 0x1)
|
||||
new DragDropTarget("STRING", DragDropTargetFlags.SameApplication | DragDropTargetFlags.OtherApplication, 0x0)
|
||||
}, DragDropEffect.Copy, MouseButtons.Primary | MouseButtons.Secondary, KeyboardModifierKey.None);
|
||||
|
||||
this.tv.DragDropDataRequest += tv_DragDropDataRequest;
|
||||
}
|
||||
private void tv_DragDropDataRequest(object sender, DragDropDataRequestEventArgs e)
|
||||
{
|
||||
e.Data = "file:///tmp/test/" + tv.SelectedRows[0].RowColumns[0].Value.ToString() + "\r\n";
|
||||
if (tv.SelectedRows.Count == 0) return;
|
||||
System.Text.StringBuilder sb = new System.Text.StringBuilder();
|
||||
for (int i = 0; i < tv.SelectedRows.Count; i++)
|
||||
{
|
||||
sb.AppendLine("file:///tmp/test/" + tv.SelectedRows[i].RowColumns[0].Value.ToString());
|
||||
}
|
||||
e.Data = sb.ToString();
|
||||
}
|
||||
|
||||
public override void Copy()
|
||||
|
||||
@ -287,11 +287,11 @@ namespace UniversalEditor.UserInterface
|
||||
cmd.Execute();
|
||||
}
|
||||
|
||||
public override void OnClosed(EventArgs e)
|
||||
protected override void OnClosed(EventArgs e)
|
||||
{
|
||||
UniversalWidgetToolkit.Application.Stop();
|
||||
}
|
||||
public override void OnCreated(EventArgs e)
|
||||
protected override void OnCreated(EventArgs e)
|
||||
{
|
||||
this.RegisterDropTarget(new DragDropTarget[]
|
||||
{
|
||||
|
||||
@ -74,7 +74,7 @@ namespace UniversalEditor.UserInterface.Panels
|
||||
this.Controls.Add(tvErrorList, new BoxLayout.Constraints(true, true));
|
||||
}
|
||||
|
||||
public override void OnCreated(EventArgs e)
|
||||
protected override void OnCreated(EventArgs e)
|
||||
{
|
||||
base.OnCreated(e);
|
||||
|
||||
|
||||
@ -38,7 +38,7 @@ namespace UniversalEditor.Controls.DrawingArea
|
||||
this.Refresh();
|
||||
}
|
||||
}
|
||||
public override void OnPaint(PaintEventArgs e)
|
||||
protected override void OnPaint(PaintEventArgs e)
|
||||
{
|
||||
base.OnPaint(e);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user