private TextWriter textwriter;
private XmlTextWriter writer;
private bool written;
+#if NET_2_0
private string base_path;
+#endif
#endregion // Local Variables
#region Static Fields
// Make sure all our children are properly parented to us
Control [] controls = child_controls.GetAllControls ();
- bool parented = false;
+// bool parented = false;
for (int i=0; i<controls.Length; i++) {
if (controls [i].is_visible && controls[i].IsHandleCreated)
if (XplatUI.GetParent (controls[i].Handle) != window.Handle) {
XplatUI.SetParent(controls[i].Handle, window.Handle);
- parented = true;
+// parented = true;
}
}
#if NET_2_0
protected internal override void Edit (CurrencyManager source, int rowNum, Rectangle bounds, bool readOnly, string displayText, bool cellIsVisible)
{
- string instantText = displayText;
#else
protected internal override void Edit (CurrencyManager source, int rowNum, Rectangle bounds, bool readOnly, string instantText, bool cellIsVisible)
{
int rows_displayed = 0;
int first_row_height = Rows.Count > 0 ? Rows[Math.Min (Rows.Count - 1, first_row_index)].Height : 0;
- int room_left = this.Height;
+// int room_left = this.Height;
// Reset all columns to !Displayed
for (int i = 0; i < Columns.Count; i++)
private object indeterminateValue;
private bool threeState;
private object trueValue;
- private Type valueType;
+// private Type valueType;
private PushButtonState check_state;
public DataGridViewCheckBoxCell ()
public string Prompt (string message, string defaultInputValue)
{
WebBrowserDialogs.Prompt prompt = new WebBrowserDialogs.Prompt ("Prompt", message, defaultInputValue);
- DialogResult ret = prompt.Show ();
+ prompt.Show ();
return prompt.Text;
}
public class LinkCollection : IList, ICollection, IEnumerable
{
private LinkLabel owner;
- private bool links_added = false;
+#if NET_2_0
+ private bool links_added;
+#endif
public LinkCollection (LinkLabel owner)
{
}
int idx = owner.links.Add (value);
+#if NET_2_0
links_added = true;
+#endif
owner.sorted_links = null;
owner.CheckLinks ();
ListViewItem item = items [i];
item.Layout ();
item.DisplayIndex = display_index;
+#if NET_2_0
item.SetPosition (new Point (x, y));
+#endif
}
{
display_index = i;
SetItemLocation (i, 0, y, 0, 0);
+#if NET_2_0
item.SetPosition (new Point (0, y));
+#endif
y += item_height;
}
#if NET_2_0
private string image_key = String.Empty;
string tooltip_text = String.Empty;
int indent_count;
+ Point position = new Point (-1, -1); // cached to mimic .Net behaviour
#endif
- Point position = new Point (-1, -1); // cached to mimic .Net behaviour
Rectangle bounds = Rectangle.Empty;
Rectangle checkbox_rect; // calculated by CalcListViewItem method
Rectangle icon_rect;
this.group = group;
}
-#endif
internal void SetPosition (Point position)
{
this.position = position;
}
+#endif
// When focus changed, we need to invalidate area
// with previous layout and with the new one
#if NET_2_0
public static bool IsPresent (SystemParameter enumVal)
{
+#pragma warning disable 219
object o;
+#pragma warning restore 219
switch (enumVal) {
case SystemParameter.DropShadow:
}
#if NET_2_0
+/*
private void Hide (Control sender)
{
timer.Stop();
if (last_control == sender)
last_control = null;
}
+*/
#endif
private void control_MouseMove(object sender, MouseEventArgs e) {
return true;
}
}
- return false;
}
internal override bool PostMessage (IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam) {
} else {
HitTest ht;
IntPtr dummy;
- int screen_x;
- int screen_y;
#if DriverDebugExtra
Console.WriteLine("GetMessage(): non-client area {0:X} MotionNotify x={1} y={2}", client ? hwnd.client_window.ToInt32() : hwnd.whole_window.ToInt32(), xevent.MotionEvent.x, xevent.MotionEvent.y);